/* blog.css - feuille unique partagee par les articles et l'index du blog.
   Reprise de la charte L2J Carrelage : jaune-700 primaire, gris-50 fond,
   gris-900 footer, coins arrondis, ombres douces. */

@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&display=swap');

:root {
  --yellow-50: #FFFEF0;
  --yellow-100: #FFFBE0;
  --yellow-500: #FFED00;
  --yellow-700: #CCC000;
  --yellow-800: #B3AA00;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --white: #FFFFFF;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  line-height: 1.6;
}

/* --- Header --- */
.blog-header {
  background: var(--gray-900);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.blog-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.blog-header .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.blog-header .logo img {
  height: 3.5rem;
  width: auto;
}
.blog-header .logo span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--yellow-700);
}
.blog-header nav a {
  color: var(--gray-300);
  text-decoration: none;
  font-weight: 500;
  margin-left: 1.5rem;
  transition: color 0.2s;
}
.blog-header nav a:hover {
  color: var(--white);
}

/* --- Fil d'Ariane --- */
.breadcrumb {
  max-width: 800px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}
.breadcrumb a {
  color: var(--yellow-700);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 0.5rem; }

/* --- Article --- */
article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}
article h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

/* --- Hero image --- */
.hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  margin-bottom: 2rem;
}

/* --- Body content --- */
article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
article h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
article p {
  margin-bottom: 1.25rem;
  color: var(--gray-700);
}
article ul, article ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
article li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}
article a {
  color: var(--yellow-700);
  text-decoration: underline;
  font-weight: 500;
}
article a:hover {
  color: var(--yellow-800);
}

/* --- Figure interieure --- */
figure {
  margin: 2rem 0;
}
figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 0.5rem;
  font-style: italic;
}

/* --- Conclusion --- */
article .conclusion {
  background: var(--yellow-50);
  border-left: 4px solid var(--yellow-700);
  padding: 1.5rem;
  border-radius: 0 0.5rem 0.5rem 0;
  margin: 2rem 0;
}

/* --- Articles similaires --- */
.similar {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.similar h2 {
  font-size: 1.25rem;
  margin-top: 0;
}
.similar ul {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.similar li {
  margin-bottom: 0.75rem;
}
.similar a {
  color: var(--yellow-700);
  text-decoration: none;
  font-weight: 500;
}
.similar a:hover { text-decoration: underline; }

/* --- Footer --- */
.blog-footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 2rem 0;
  text-align: center;
}
.blog-footer a {
  color: var(--yellow-700);
  text-decoration: none;
}
.blog-footer a:hover { text-decoration: underline; }

/* --- Page index /blog/ --- */
.blog-index {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}
.blog-index h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2rem;
}
.blog-index h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--yellow-700);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--yellow-100);
  padding-bottom: 0.5rem;
}
.blog-index ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.blog-index li {
  margin-bottom: 0.75rem;
}
.blog-index a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.2s;
}
.blog-index a:hover {
  color: var(--yellow-700);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  article h1 { font-size: 1.75rem; }
  article h2 { font-size: 1.25rem; }
  .blog-header nav a { margin-left: 0.75rem; font-size: 0.875rem; }
  .blog-index h1 { font-size: 2rem; }
}
