/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@600;700&display=swap');

:root {
  --wh-ink: #2c3340;
  --wh-accent: #2a5f9e;
  --wh-wood: #6b5344;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--wh-ink);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #1e2a38;
  background-image:
    linear-gradient(
      180deg,
      rgba(18, 28, 40, 0.55) 0%,
      rgba(28, 40, 55, 0.45) 35%,
      rgba(36, 48, 62, 0.55) 100%
    ),
    url('/walhall/images/walhall-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Laisser le fond visible à travers le template Cassiopeia */
.site-grid,
.com-content,
.container-component,
#system-message-container,
main,
.wrapper,
body > .site {
  background: transparent !important;
}

header.header,
.header,
.grid-child.container-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--wh-accent);
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  margin-top: 2rem;
  color: #f4f1eb;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
  margin: 1rem auto;
  max-width: 800px;
  text-align: center;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

nav {
  background-color: transparent;
  padding: 1rem;
  text-align: center;
}

nav a {
  text-decoration: none;
  color: var(--wh-wood);
  margin: 0 1rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--wh-accent);
}

button, .btn {
  background-color: var(--wh-accent);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
  background-color: #1e4a7a;
}

.card,
.wh-home .card {
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 2rem;
  margin: 2rem auto;
  max-width: 900px;
}

ul {
  list-style: disc;
  padding-left: 1.2rem;
}

ul li::before {
  content: none;
}

footer,
.footer,
.grid-child.container-footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem;
  color: rgba(244, 241, 235, 0.85);
  margin-top: 2rem;
  background: transparent !important;
}

/* Page d'accueil : tagline lisible sur le fond */
.wh-home .wh-tagline {
  color: #f4f1eb !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.wh-home footer,
.wh-home footer p,
.wh-home footer strong {
  color: rgba(244, 241, 235, 0.92) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.wh-home footer a {
  color: #d6e6f7 !important;
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    padding: 0 1rem;
  }

  nav a {
    display: block;
    margin: 0.5rem 0;
  }
}
