/* SHDB.fr - Média Local Indépendant - CSS System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,800;1,600&display=swap');

:root {
  --primary: #0077B6;
  --primary-dark: #005f92;
  --secondary: #90E0EF;
  --secondary-light: #caf0f8;
  --accent: #e63946;
  --accent-gold: #d4a373;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,119,182,0.12);
  --radius: 12px;
  --transition: all 0.25s ease-in-out;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-editorial {
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Nav */
.top-bar {
  background-color: var(--text-main);
  color: #f1f5f9;
  font-size: 0.85rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.indie-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255,255,255,0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  color: var(--secondary);
  font-size: 0.78rem;
}

.header-main {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), #00b4d8);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
}

.brand-titles h1.site-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin: 0;
}

.brand-titles .tagline {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-main);
  padding: 0.5rem 0.2rem;
  position: relative;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

/* Nav Dropdown Styling */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 240px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.5rem 0;
  z-index: 1050;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-menu a {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.2rem !important;
  font-size: 0.88rem !important;
  color: var(--text-main);
  white-space: nowrap;
  font-weight: 500 !important;
  border-bottom: 1px solid #f1f5f9;
}

.nav-dropdown-menu a:last-child {
  border-bottom: none;
}

.nav-dropdown-menu a:hover {
  background: var(--secondary-light);
  color: var(--primary-dark) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(0,119,182,0.92), rgba(15,23,42,0.85)), url('https://images.pexels.com/photos/32122005/pexels-photo-32122005.jpeg?auto=compress&cs=tinysrgb&fit=crop&h=627&w=1200') center/cover no-repeat;
  color: #ffffff;
  padding: 4rem 0 5rem;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero p {
  font-size: 1.15rem;
  color: #e2e8f0;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Search Box */
.search-card {
  background: #ffffff;
  padding: 0.8rem;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 0.5rem;
  max-width: 650px;
  margin: 0 auto;
}

.search-card input {
  flex: 1;
  border: 1px solid var(--border-color);
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-size: 1rem;
  outline: none;
}

.search-card button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.search-card button:hover {
  background: var(--primary-dark);
}

/* Section Common */
.section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.8rem;
  position: relative;
}

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

.section-title {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

/* Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
}

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

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-badge {
  display: inline-block;
  background: var(--secondary-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  align-self: flex-start;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  color: var(--text-main);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff !important;
}

/* Feature Banners & Widgets */
.widget-box {
  background: #ffffff;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.widget-box h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--primary-dark);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

/* Scroll Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Footer Disclaimer & Layout */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.6rem;
}

.footer ul a {
  color: #cbd5e1;
}

.footer ul a:hover {
  color: var(--secondary);
}

.disclaimer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.25rem;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 0.92rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.disclaimer-box strong {
  color: var(--secondary);
  display: block;
  margin-bottom: 0.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

/* Responsiveness */
@media (max-width: 992px) {
  .hero h2 {
    font-size: 2rem;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .top-bar-tagline {
    display: none;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 1.2rem;
    box-shadow: var(--shadow-md);
    align-items: flex-start;
  }
  .main-nav.active {
    display: flex;
  }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-main);
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.5rem;
  }
  .nav-toggle {
    display: block;
  }
}