/* === RESET ET BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-text: #1a1a1a;
  --color-text-light: #555;
  --color-text-muted: #888;
  --color-bg: #f5f5f5;
  --color-bg-alt: #fff;
  --color-border: #e0e0e0;
  --color-accent: #6b5b4f;
  --color-accent-light: #a08060;
  --color-accent-hover: #574a40;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Georgia', 'Times New Roman', serif;
  --max-width: 820px;
  --spacing: 2rem;
  --radius: 12px;
}

html {
  font-size: 16px;
  line-height: 1.7;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === HEADER === */
.site-header {
  padding: 1rem 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-title::before {
  content: '\2696';
  font-size: 1.25rem;
  opacity: 0.8;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
}

.site-nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-text);
  background: var(--color-bg);
}

/* === MAIN === */
.site-content {
  flex: 1;
  padding: var(--spacing) 0;
}

/* === HERO === */
.hero {
  position: relative;
  margin: -2rem -1.25rem 2rem;
  padding: 3.5rem 1.5rem;
  background: linear-gradient(145deg, var(--color-accent), var(--color-accent-hover));
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('/images/blog/20240112-001.jpg') center/cover;
  opacity: 0.15;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-decoration {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.hero-decoration span {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
}

/* === HOME === */
.home-intro {
  text-align: center;
  padding: 1.5rem 0 2rem;
}

.home-quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-light);
  max-width: 550px;
  margin: 0 auto;
  position: relative;
  padding: 0 1.5rem;
  line-height: 1.8;
}

.home-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--color-accent-light);
  opacity: 0.4;
  position: absolute;
  left: 0;
  top: -0.5rem;
  font-family: Georgia, serif;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.view-all {
  text-align: center;
  margin-top: 2rem;
}

.btn-view-all {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--color-accent);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-view-all:hover {
  background: var(--color-accent);
  color: #fff;
}

/* === ARTICLE === */
.post {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
}

.post-header {
  margin-bottom: 1.75rem;
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.post-date {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  background: var(--color-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.post-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 1rem;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.post-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-accent);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  border: 1px solid var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-image {
  margin: 0 -2rem 1.75rem;
  overflow: hidden;
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.post-content p {
  margin-bottom: 1.5rem;
}

.post-content p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.25rem;
  float: left;
  line-height: 1;
  margin-right: 0.5rem;
  margin-top: 0.1rem;
  color: var(--color-accent);
  font-weight: 400;
}

.post-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.post-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.post-nav a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--color-bg);
  transition: all 0.2s ease;
  max-width: 45%;
}

.post-nav a:hover {
  color: #fff;
  background: var(--color-accent);
}

.post-nav-prev {
  text-align: left;
}

.post-nav-next {
  text-align: right;
  margin-left: auto;
}

/* === LISTE D'ARTICLES === */
.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.post-list-item {
  padding: 1.5rem;
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}

.post-list-item:hover {
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.post-list-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
  border-radius: var(--radius) 0 0 var(--radius);
  opacity: 0;
  transition: opacity 0.25s;
}

.post-list-item:hover::before {
  opacity: 1;
}

.post-list-date {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-list-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  margin: 0.5rem 0;
  line-height: 1.4;
}

.post-list-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

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

.post-list-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* === PAGINATION === */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
}

.pagination a {
  color: var(--color-text);
  text-decoration: none;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: all 0.2s;
}

.pagination a:hover {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.pagination span {
  color: var(--color-text-muted);
}

/* === GALERIE === */
.deco-section {
  margin-top: 3rem;
}

.deco-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.deco-gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
  filter: saturate(0.9);
  transition: all 0.3s ease;
}

.deco-gallery img:hover {
  filter: saturate(1.1);
  transform: scale(1.03);
}

/* === À PROPOS === */
.about-content {
  background: var(--color-bg-alt);
  padding: 2rem;
  border-radius: var(--radius);
}

.about-content h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.about-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

/* === FOOTER === */
.site-footer {
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.8rem;
  background: var(--color-text);
  color: rgba(255,255,255,0.6);
  margin-top: auto;
}

.footer-decoration {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.footer-decoration span {
  width: 5px;
  height: 5px;
  background: var(--color-accent-light);
  border-radius: 50%;
  opacity: 0.5;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .site-header .container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 2.5rem 1rem;
    margin: -2rem -1.25rem 1.5rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .post {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .post-image {
    margin: 0 -1.5rem 1.5rem;
  }

  .post-title {
    font-size: 1.4rem;
  }

  .post-content {
    font-size: 1rem;
  }

  .post-content p:first-of-type::first-letter {
    font-size: 2.5rem;
  }

  .post-nav a {
    max-width: 100%;
    font-size: 0.8rem;
  }

  .post-list-item {
    padding: 1.25rem;
  }

  .post-list-title {
    font-size: 1.1rem;
  }

  .deco-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .home-quote {
    font-size: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 400px) {
  .deco-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .deco-gallery img:nth-child(5),
  .deco-gallery img:nth-child(6) {
    display: none;
  }
}
