/*
Theme Name: Caesdaele CWV
Theme URI: https://caesdaele.be
Description: Thème minimaliste optimisé Core Web Vitals
Version: 1.0
Author: WillyMarkson
*/

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

:root {
  --color-primary: #1a1a2e;
  --color-accent: #e94560;
  --color-bg: #ffffff;
  --color-text: #333333;
  --color-muted: #666666;
  --color-border: #e0e0e0;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
  --radius: 8px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
#site-header {
  background: var(--color-primary);
  color: #fff;
  padding: 1rem 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
#site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
#site-header .logo { font-size: 1.4rem; font-weight: 700; color: #fff; letter-spacing: -.5px; }
#site-header .logo:hover { text-decoration: none; opacity: .85; }
nav ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav a { color: rgba(255,255,255,.85); font-size: .95rem; transition: color .2s; }
nav a:hover { color: #fff; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, #16213e 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 2rem; }
.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  transition: opacity .2s, transform .1s;
}
.btn:hover { opacity: .9; text-decoration: none; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.6);
  margin-left: .75rem;
}
.btn-outline:hover { background: rgba(255,255,255,.1); }

/* Cards grid */
.cards-section { padding: 3rem 0; }
.cards-section h2 { text-align: center; font-size: 1.8rem; margin-bottom: .5rem; color: var(--color-primary); }
.section-subtitle { text-align: center; color: var(--color-muted); margin-bottom: 2rem; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
  background: #fff;
}
.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: .75rem; }
.card h3 { font-size: 1.1rem; margin-bottom: .5rem; color: var(--color-primary); }
.card p { font-size: .9rem; color: var(--color-muted); line-height: 1.5; }

/* Content area */
.content-section { padding: 3rem 0; }
.content-section.alt { background: #f8f9fa; }
.content-inner { max-width: 800px; margin: 0 auto; }
.content-inner h2 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--color-primary); }
.content-inner p { margin-bottom: 1rem; color: var(--color-text); }

/* Entry content (pages/posts) */
.entry-content { max-width: 800px; margin: 2rem auto; padding: 0 1.25rem; }
.entry-content h1 { font-size: 2rem; margin-bottom: 1rem; color: var(--color-primary); }
.entry-content h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; color: var(--color-primary); }
.entry-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1rem 1.5rem; }
.entry-content li { margin-bottom: .4rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.entry-content th, .entry-content td { border: 1px solid var(--color-border); padding: .6rem .9rem; text-align: left; font-size: .9rem; }
.entry-content th { background: var(--color-primary); color: #fff; }

/* Footer */
#site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.7);
  padding: 2rem 0;
  text-align: center;
  font-size: .85rem;
  margin-top: 3rem;
}
#site-footer a { color: rgba(255,255,255,.6); }
#site-footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: .75rem; }

/* Responsive */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 0; }
  nav ul { gap: .75rem; }
  .btn-outline { display: none; }
}
