
/* Quand Brazza danse — design fidèle à l'original WordPress 2009 */
@import url('https://fonts.googleapis.com/css2?family=Georgia&family=Trebuchet+MS&display=swap');

:root {
  --bg: #f5f0e0;
  --paper: #fdfcf3;
  --ink: #2a2820;
  --olive-dark: #4a5d2a;
  --olive: #6b8540;
  --olive-light: #a3b86b;
  --accent: #8a3a1e;
  --muted: #7c6f50;
  --sidebar-bg: #f0e8d0;
  --border: #c9b88c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.site-wrap {
  max-width: 980px;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 20px rgba(0,0,0,0.08);
  min-height: 100vh;
}

.masthead {
  background-color: #1a1612;
  position: relative;
  height: 220px;
  overflow: hidden;
  background-image: url('wp-content/uploads/cropped-dsc015051.jpg');
  background-size: cover;
  background-position: center 40%;
}



.masthead .site-title {
  position: relative;
  z-index: 1;
  padding: 60px 40px 0;
  color: #f5e9c8;
  font-size: 2.6em;
  font-weight: normal;
  font-style: italic;
  font-family: Georgia, serif;
  letter-spacing: 1px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.6);
}

.masthead .site-tagline {
  position: relative;
  z-index: 1;
  padding: 0 40px;
  color: #e8d49a;
  font-size: 1em;
  font-style: italic;
  margin-top: 8px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

nav.main-menu {
  background: var(--olive-dark);
  padding: 0;
  position: relative;
}

nav.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

nav.main-menu li {
  position: relative;
}

nav.main-menu a {
  display: block;
  color: #f0e6c8;
  text-decoration: none;
  padding: 12px 18px;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 0.92em;
  letter-spacing: 0.5px;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.15s ease;
}

nav.main-menu a:hover,
nav.main-menu li.current a {
  background: var(--olive);
  color: #fff;
}

nav.main-menu li.has-children:hover .submenu {
  display: block;
}

nav.main-menu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--olive);
  min-width: 220px;
  z-index: 10;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

nav.main-menu .submenu li {
  display: block;
}

nav.main-menu .submenu a {
  border-right: none;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 10px 18px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 30px;
  padding: 30px 40px 50px;
}

article.entry {
  font-size: 1em;
}

article.entry h1.entry-title {
  font-family: Georgia, serif;
  font-size: 1.7em;
  color: var(--olive-dark);
  font-weight: normal;
  margin: 0 0 4px;
  padding-bottom: 4px;
  border-bottom: 1px dotted var(--border);
}

article.entry .entry-meta {
  font-size: 0.82em;
  color: var(--muted);
  font-family: 'Trebuchet MS', sans-serif;
  margin-bottom: 18px;
}

article.entry .entry-content {
  text-align: justify;
}

article.entry .entry-content p {
  margin: 0 0 1em;
}

article.entry .entry-content strong {
  color: var(--accent);
}

article.entry .entry-content em {
  color: var(--olive-dark);
}

article.entry .entry-content img {
  max-width: 100%;
  height: auto;
  border: 4px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

article.entry .entry-content a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

article.entry .entry-content a:hover {
  color: var(--olive-dark);
  border-bottom-color: var(--olive-dark);
}

article.entry .entry-content figure.wp-caption {
  display: inline-block;
  margin: 12px;
  max-width: 100%;
}

article.entry .entry-content figure.wp-caption img {
  display: block;
}

article.entry .entry-content figure.wp-caption figcaption {
  font-size: 0.82em;
  color: var(--muted);
  font-style: italic;
  padding: 6px 4px;
  text-align: center;
}

article.entry .entry-content blockquote {
  margin: 1em 0;
  padding: 6px 18px;
  border-left: 3px solid var(--olive);
  color: var(--ink);
  font-style: italic;
  background: rgba(107, 133, 64, 0.05);
}

aside.sidebar {
  font-size: 0.92em;
}

aside.sidebar h3 {
  font-family: Georgia, serif;
  font-size: 1.1em;
  font-weight: normal;
  color: var(--olive-dark);
  border-bottom: 1px dotted var(--border);
  padding-bottom: 4px;
  margin: 0 0 8px;
  font-style: italic;
}

aside.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

aside.sidebar li {
  border-bottom: 1px dotted var(--border);
  padding: 4px 0;
}

aside.sidebar li.depth-1 {
  padding-left: 14px;
  font-size: 0.92em;
}

aside.sidebar a {
  color: var(--ink);
  text-decoration: none;
}

aside.sidebar a:hover {
  color: var(--accent);
}

aside.sidebar .widget {
  margin-bottom: 24px;
}

aside.sidebar .tagline {
  font-style: italic;
  color: var(--muted);
  font-size: 0.95em;
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 12px;
  background: var(--sidebar-bg);
  border-left: 3px solid var(--olive);
}

footer.site-footer {
  background: var(--olive-dark);
  color: #f0e6c8;
  text-align: center;
  padding: 16px 40px;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 0.82em;
}

footer.site-footer a {
  color: #f5e9c8;
}

/* Homepage / index latest articles */
.posts-list article.entry {
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px dotted var(--border);
}

.posts-list article.entry:last-child {
  border-bottom: none;
}

.posts-list article.entry h2.entry-title {
  font-family: Georgia, serif;
  font-size: 1.4em;
  color: var(--olive-dark);
  font-weight: normal;
  margin: 0 0 4px;
}

.posts-list article.entry h2.entry-title a {
  color: var(--olive-dark);
  text-decoration: none;
}

.posts-list article.entry h2.entry-title a:hover {
  color: var(--accent);
}

/* Welcome banner on home */
.welcome {
  background: var(--sidebar-bg);
  border-left: 4px solid var(--olive);
  padding: 20px;
  margin-bottom: 30px;
  font-style: italic;
  color: var(--muted);
}

.welcome h2 {
  font-style: normal;
  color: var(--olive-dark);
  margin: 0 0 8px;
}

/* ===========================================================
   RESPONSIVE IFRAMES / VIDEOS
   =========================================================== */
iframe, video { max-width: 100%; }

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 1em 0;
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===========================================================
   HAMBURGER BUTTON (caché en desktop, visible en mobile)
   =========================================================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 18px;
  flex-direction: column;
  justify-content: center;
  width: 52px;
  height: 44px;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: #f0e6c8;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
nav.main-menu.open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
nav.main-menu.open .menu-toggle span:nth-child(2) { opacity: 0; }
nav.main-menu.open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===========================================================
   MOBILE BREAKPOINT
   =========================================================== */
@media (max-width: 740px) {
  .masthead { height: 180px; }
  .masthead .site-title { padding: 50px 20px 0; font-size: 1.8em; }
  .masthead .site-tagline { padding: 0 20px; font-size: 0.9em; }

  .menu-toggle { display: flex; }

  nav.main-menu ul {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  nav.main-menu.open ul { display: flex; }
  nav.main-menu li { width: 100%; }
  nav.main-menu a {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Sous-menus inline sur mobile (pas de hover sur tactile) */
  nav.main-menu .submenu {
    display: block;
    position: static;
    background: rgba(0,0,0,0.15);
    box-shadow: none;
    min-width: 0;
  }
  nav.main-menu .submenu a {
    padding-left: 36px;
    font-size: 0.9em;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  footer.site-footer { padding: 16px 20px; }
}
