/* ═══════════════════════════════════════════
   SCOOP DE LAVAL
   ═══════════════════════════════════════════ */

:root {
  --black: #000000;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-300: #d4d4d8;
  --gray-400: #a1a1aa;
  --gray-500: #71717a;
  --gray-600: #52525b;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --accent: #2563eb;
  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--gray-50);
  color: var(--black);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--black); color: var(--white); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ═══ HEADER ═══ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link { display: flex; align-items: center; }
.logo { height: 32px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-400);
}

.nav a { transition: color 0.15s; }
.nav a:hover { color: var(--white); }

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-socials a {
  color: var(--gray-500);
  display: flex;
  transition: color 0.15s;
}

.nav-socials a:hover { color: var(--white); }

.nav-cta {
  color: var(--black) !important;
  background: var(--white);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: opacity 0.15s !important;
}

.nav-cta:hover { opacity: 0.85 !important; }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.35) 0%,
    rgba(0,0,0,0.55) 50%,
    rgba(0,0,0,0.88) 100%
  );
}

.hero-credit {
  position: absolute;
  bottom: 0.75rem;
  right: 1rem;
  z-index: 2;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.35);
  transition: color 0.2s;
}

.hero-credit:hover { color: rgba(255,255,255,0.7); }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin: 0 auto;
  padding: 10rem 1.5rem 7rem;
  text-align: center;
}

.hero-logo {
  height: 48px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Hero form */
.hero-form { max-width: 440px; margin: 0 auto; }

.hero-form-row {
  display: flex;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 5px;
}

.hero-input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 100px;
  background: transparent;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
}

.hero-input::placeholder { color: rgba(255,255,255,0.45); }

.hero-btn {
  padding: 0.75rem 1.5rem;
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.1s;
}

.hero-btn:hover { background: var(--gray-200); }
.hero-btn:active { transform: scale(0.97); }

.hero-fine {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  border-radius: 6px;
  text-align: center;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

/* ═══ CATEGORIES BAR ═══ */
.categories-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.categories-bar::-webkit-scrollbar { display: none; }

.categories-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-600);
  white-space: nowrap;
}

/* ═══ POSTS SECTION ═══ */
.posts-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  transition: opacity 0.15s;
}

.section-link:hover { opacity: 0.7; }

.posts-loading {
  display: flex;
  justify-content: center;
  padding: 4rem 0;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.posts-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* Featured post */
.featured { margin-bottom: 2rem; }

.featured a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.featured a:hover {
  border-color: var(--gray-300);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.featured-img-wrap { overflow: hidden; }

.featured-img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured a:hover .featured-img { transform: scale(1.03); }

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 1.5rem 1.5rem;
}

.featured-date {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.featured-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.featured a:hover .featured-title { color: var(--accent); }

.featured-excerpt {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Posts grid */
.posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.post-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, border-color 0.2s;
  animation: fade-in 0.4s ease both;
}

.post-card:hover {
  border-color: var(--gray-300);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.post-card-img {
  width: 88px;
  height: 66px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--gray-100);
}

.post-card-body { flex: 1; min-width: 0; }

.post-card-date {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.post-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s;
}

.post-card:hover .post-card-title { color: var(--accent); }

.post-card-excerpt {
  font-size: 0.78rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* ═══ BOTTOM CTA ═══ */
.bottom-cta {
  background: var(--black);
  padding: 4rem 1.25rem;
}

.bottom-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.bottom-cta-title {
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.bottom-cta-sub {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.bottom-cta .hero-form-row {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.bottom-cta .form-status.success { color: #4ade80; }
.bottom-cta .form-status.error { color: #f87171; }

/* ═══ FOOTER ═══ */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-logo {
  height: 24px;
  width: auto;
  opacity: 0.5;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--gray-600);
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.7rem;
  color: var(--gray-600);
}

.footer-links a:hover { color: var(--gray-400); transition: color 0.15s; }

/* ═══ RESPONSIVE ═══ */
@media (min-width: 640px) {
  .hero-content { padding: 12rem 1.5rem 8rem; }
  .hero-logo { height: 56px; }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .post-card-img { width: 120px; height: 84px; }
}

@media (min-width: 768px) {
  .featured a { grid-template-columns: 1fr; }
  .featured-img { aspect-ratio: 2.5 / 1; }
  .hero-content { padding: 14rem 1.5rem 9rem; }
}

@media (min-width: 1024px) {
  .post-card-img { width: 140px; height: 96px; }
}
