/*
Theme Name: Jonathan B Child
Template: twentytwentyfour
Author: Jonathan B-
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,400;0,500;1,400&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

body {
  margin: 0;
  padding: 0;
  font-family: 'Spectral', serif;
  background-color: #f8f5ed;
  color: #1c1c1c;
  font-size: 18px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container { display: flex; flex: 1; width: 100%; }
.left-column { width: 200px; padding: 3rem 1rem; background: #f8f5ed; font-size: 0.9rem; color: #999;
  position: sticky; top: 8rem; align-self: flex-start; opacity: 0.3; pointer-events: none; }
.content { flex: 2; padding: 3rem 2rem 5rem; }
.sidebar { width: 200px; padding: 3rem 1rem; background: #f1eee8; font-size: 0.95rem;
  line-height: 1.5; position: sticky; top: 8rem; align-self: flex-start; }
.sidebar p { margin-bottom: 1.5rem; font-style: italic; }
header { text-align: center; padding: 4rem 1rem 2rem; border-bottom: 1px solid #ddd; }
header h1 { margin: 0; font-size: 3.25rem; font-weight: 500; letter-spacing: -0.015em; }
header h1 a { text-decoration: none; color: inherit; }
nav { position: sticky; top: 0; background: rgba(248, 245, 237, 0.92); backdrop-filter: blur(2px); 
  z-index: 1000; display: flex; justify-content: center; padding: 1rem 0; border-bottom: 1px solid #ddd; 
  transition: background-color 0.3s ease; }
nav ul { list-style: none; padding: 0; margin: 0; font-size: 1.1rem; letter-spacing: 0.02em; }
nav > ul { display: flex; gap: 3rem; }
nav li { position: relative; }
nav li ul { display: none; position: absolute; top: 100%; left: 0; background: white; border: 1px solid #ccc;
  padding: 0.5rem 1rem; z-index: 10; white-space: nowrap; }
nav li:hover > ul { display: block; }
nav li ul li { position: relative; }
nav li ul li ul { top: 0; left: 100%; margin-left: 0; }
article { margin-bottom: 5rem; padding-bottom: 3rem; border-bottom: 1px solid #e0ded8; }
article h2 { font-size: 1.5rem; font-weight: 500; margin-bottom: 0.4rem; letter-spacing: -0.01em; }
article time { display: block; font-size: 0.85rem; font-variant: small-caps; color: #555; margin-bottom: 0.8rem; }
footer { background: #f2f0ea; border-top: 1px solid #dcd9d2; padding: 2rem 1.5rem; font-size: 0.95rem; }
.footer-section { max-width: 680px; margin: 0 auto; }
.footer-section h3 { margin-top: 0; font-size: 1.1rem; font-weight: 500; }
.footer-section ul { list-style: none; padding: 0; display: flex; gap: 1.5rem; align-items: center; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a { color: #222; text-decoration: none; font-size: 1.2rem; }
.footer-section a:hover { text-decoration: underline; }


/* Styles pour les menus déroulants dynamiques WordPress */

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
  display: inline-block;
}

nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f8f5ed;
  border: 1px solid #ccc;
  z-index: 1000;
  min-width: 180px;
  padding: 0.5rem 0;
}

nav ul li:hover > ul {
  display: block;
}

nav ul li ul li {
  display: block;
  padding: 0.3rem 1rem;
}

nav ul li ul li a {
  display: block;
  text-decoration: none;
  color: #333;
}

nav ul li ul li a:hover {
  background: #eae6dd;
}

