/* =====================================================
   Studio Eos — Custom Stylesheet
   Transition Énergétique & Performance Énergétique
   ===================================================== */

/* --- Base & Reset --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: rgba(5, 150, 105, 0.15);
  color: #064e3b;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(6, 78, 59, 0.92) 0%,
    rgba(5, 150, 105, 0.75) 40%,
    rgba(99, 102, 241, 0.55) 100%
  );
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* --- Prose (Article Body) --- */
.prose {
  max-width: 68ch;
}

.prose h2 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
  scroll-margin-top: 5rem;
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.15rem;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  margin-bottom: 1.15rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose blockquote {
  border-left: 3px solid #059669;
  padding-left: 1.25rem;
  margin: 1.75rem 0;
  font-style: italic;
  color: #44403c;
}

.prose img {
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.prose table {
  font-size: 0.925rem;
}

/* --- Article Card --- */
.article-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.article-card-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

/* --- Section Reveal (subtle fade-in on scroll) --- */
.reveal-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Navigation --- */
.nav-link {
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #059669;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- CTA button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: #059669;
  color: white;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  background-color: transparent;
  color: white;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 0.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-secondary:hover {
  border-color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- Tag Chips --- */
.tag-chip {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: 9999px;
  border: 1px solid #d6d3d1;
  color: #57534e;
  transition: border-color 0.2s, color 0.2s;
}

.tag-chip:hover {
  border-color: #059669;
  color: #059669;
}

/* --- Line Clamp --- */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Focus & Accessibility --- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Separator --- */
.separator {
  width: 3rem;
  height: 3px;
  background: linear-gradient(90deg, #059669, #6366f1);
  border-radius: 2px;
}

/* --- Print --- */
@media print {
  header, footer, nav, .hero-section {
    display: none !important;
  }
  .prose {
    max-width: 100%;
  }
}
