/* ============================================
   CUSTOM CSS - Pico.css Compatible
   ============================================ */

/* Theme Colors */
:root {
  --primary: #900da1;
  --background: #f3f9ee;
  --text: #212121;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}


@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ffb300;
    --background: #212121;
    --text: #dcdcdc;
  }
}

/* Full-Width Background */
body {
  background-image: url('/images/bgtealdropslight.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

@media (prefers-color-scheme: dark) {
  body {
    background-image: url('/images/bgclouddark.jpg');
  }
}

/* Header & Footer Full Width */
header, footer {
  background-image: url('/images/headerlight.jpg');
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  padding: 2rem 1rem !important;
}

/* Main Content Container */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Corps de texte */
body, p, a, li, span {
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
}

/* Navigation */
nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.02em;
}

nav a {
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

nav a:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Images */
.profile-image {
  max-width: 300px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

.index-art {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
}

/* Blog Posts */
article {
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
}

article h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

article p {
  font-size: 1rem;
  color: var(--text-light);
}

@media (prefers-color-scheme: dark) {
  article {
    background-color: rgba(0, 0, 0, 0.5);
  }
}

/* Force header visibility */
header {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Ensure nav is visible */
nav {
  display: flex !important;
  visibility: visible !important;
}