/*
Theme Name: BlankSlate Child
Theme URI: https://wrap.unikom.cloud/
Description: Child theme de BlankSlate — pour développer sans toucher au parent.
Author: Yan
Template: blankslate
Version: 0.1.0
Text Domain: blankslate-child
*/

:root {
  --color-bg: #f5f5f5;
  --color-fg: #1a1a1a;
  --color-accent: #2563eb;
  --color-header-bg: #ffffff;
  --max-width: 72rem;
  --header-gap: 1rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-fg);
  background: var(--color-bg);
  line-height: 1.6;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

#wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--header-gap);
}

/* ---------- Header rectangulaire flottant ---------- */
#header {
  position: sticky;
  top: var(--header-gap);
  z-index: 100;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

  background: var(--color-header-bg);
  border: 1px solid #e5e5e5;
  border-radius: 0;                       /* rectangulaire net */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
}

#branding { display: flex; flex-direction: column; }

#site-title { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
#site-title h1 { margin: 0; font-size: inherit; font-weight: inherit; }
#site-title a { color: var(--color-fg); }
#site-title a:hover { text-decoration: none; color: var(--color-accent); }

#site-description {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.15rem;
}

#menu { display: flex; align-items: center; gap: 1.25rem; }
#menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; }
#menu a { color: var(--color-fg); font-size: 0.95rem; }
#menu a:hover { color: var(--color-accent); text-decoration: none; }

#search input[type="search"] {
  border: 1px solid #ddd;
  padding: 0.4rem 0.6rem;
  font-size: 0.9rem;
  border-radius: 0;
  background: #fafafa;
}
#search input[type="submit"] { display: none; }

@media (max-width: 720px) {
  #header { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 0.85rem 1rem; }
  #menu { width: 100%; flex-wrap: wrap; }
  #menu ul { flex-wrap: wrap; gap: 0.75rem 1rem; }
}

/* ---------- Footer ---------- */
#footer {
  background: var(--color-header-bg);
  border: 1px solid #e5e5e5;
  border-radius: 0;
  padding: 1.25rem 1.5rem;
  margin-top: 3rem;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
}
