/* ========================================
   Heure Miroir — Editorial Magazine Design
   ======================================== */

:root {
  --navy: #0F1A2E;
  --navy-mid: #1B2A4A;
  --navy-light: #2C3E6B;
  --cream: #FAF8F5;
  --cream-dark: #F0EDE8;
  --bronze: #B8860B;
  --bronze-light: #D4A843;
  --bronze-glow: rgba(184, 134, 11, 0.15);
  --text: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-light: #7A7A7A;
  --white: #FFFFFF;
  --border: #E2DED6;
  --max-width: 820px;
  --header-height: 64px;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  font-size: 16px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Header & Navigation
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.85;
}

.logo-dot {
  color: var(--bronze);
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.is-open .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--bronze);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* ========================================
   Mobile Navigation
   ======================================== */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.3);
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    font-size: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
  }

  .nav-links a::after {
    display: none;
  }
}

/* ========================================
   Main Content
   ======================================== */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
  min-height: 60vh;
}

/* ========================================
   Typography
   ======================================== */
h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--bronze);
  margin-bottom: 0.75rem;
  border-radius: 2px;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-mid);
  margin: 2rem 0 0.6rem;
  font-style: italic;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-mid);
}

a {
  color: var(--navy-light);
  text-decoration-color: var(--bronze-light);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover {
  color: var(--bronze);
  text-decoration-color: var(--bronze);
}

strong {
  font-weight: 600;
  color: var(--text);
}

/* ========================================
   Intro & Author
   ======================================== */
.intro {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 2rem;
  font-weight: 300;
}

.intro strong {
  font-weight: 600;
  color: var(--navy);
}

.author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  width: 100%;
}

.author::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  flex-shrink: 0;
}

/* ========================================
   Article List (Homepage)
   ======================================== */
.article-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2.5rem;
}

.article-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  margin: 0;
}

.article-list li:first-child {
  border-top: 1px solid var(--border);
}

.article-list li:hover {
  background: var(--bronze-glow);
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  border-radius: 4px;
}

.article-list a {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.article-list a:hover {
  color: var(--bronze);
}

.article-meta {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ========================================
   Lists (in-content)
   ======================================== */
ul, ol {
  margin: 0.75rem 0 1.5rem 1.2rem;
  color: var(--text-mid);
}

li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

/* Make sure article-list overrides */
.article-list,
.article-list li {
  padding-left: 0;
}

/* ========================================
   Blockquotes
   ======================================== */
blockquote {
  position: relative;
  border: none;
  border-left: 3px solid var(--bronze);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  background: var(--white);
  border-radius: 0 6px 6px 0;
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--navy-mid);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

blockquote p {
  color: inherit;
  margin-bottom: 0;
}

blockquote p + p {
  margin-top: 0.75rem;
}

/* ========================================
   Hour Grid (Guide complet)
   ======================================== */
.hour-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.hour-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.1rem 0.8rem;
  text-align: center;
  background: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hour-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15, 26, 46, 0.08);
  border-color: var(--bronze-light);
}

.hour-card a {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  transition: color 0.2s;
}

.hour-card:hover a {
  color: var(--bronze);
}

.hour-card p {
  font-size: 0.78rem;
  color: var(--text-light);
  margin: 0.35rem 0 0;
  line-height: 1.4;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  margin-top: 2rem;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  grid-column: 1;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-logo:hover {
  opacity: 0.8;
  color: var(--white);
}

.footer-tagline {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.35rem;
  margin-bottom: 0;
  font-style: italic;
}

.footer-author {
  grid-column: 2;
  text-align: right;
}

.footer-author p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.15rem;
}

.footer-author strong {
  color: var(--bronze-light);
  font-weight: 600;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--bronze-light);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 768px) {
  .site-main {
    padding: 2rem 1.25rem 3rem;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .article-list a {
    font-size: 1.05rem;
  }

  .hour-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.7rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.25rem 1.5rem;
    gap: 1.5rem;
  }

  .footer-author {
    grid-column: 1;
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.6rem;
  }

  .nav-container {
    padding: 0 1.25rem;
  }

  .article-list li:hover {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* ========================================
   Selection
   ======================================== */
::selection {
  background: var(--bronze-glow);
  color: var(--navy);
}

/* ========================================
   Scrollbar (subtle)
   ======================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}
