/*
Theme Name: Valtory-UO
Theme URI: https://example.com/valtory
Author: Ricki
Author URI: https://example.com
Description: Thème fantasy élégant inspiré de l'univers Valtory, avec héraldique, vert forêt et typographie immersive.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: valtory
*/

/* Reset léger */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Palette Valtory */
:root {
  --valtory-green: #14512f;      /* Vert forêt proche de ton blason */
  --valtory-gold: #c9a24b;       /* Or doux */
  --valtory-cream: #f4efe3;      /* Fond parchemin */
  --valtory-dark: #14110f;       /* Texte sombre */
  --valtory-accent: #2b7a4b;     /* Vert accent */
  --valtory-border: #d2c3a0;
}

/* Base */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Cinzel", "Times New Roman", serif;
  background-color: var(--valtory-cream);
  color: var(--valtory-dark);
  line-height: 1.6;
}

/* Liens */
a {
  color: var(--valtory-green);
  text-decoration: none;
}

a:hover {
  color: var(--valtory-accent);
  text-decoration: underline;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Conteneur principal */
.site {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Zones principales */
.site-header,
.site-footer {
  padding: 1rem 0;
}

.site-main {
  padding: 1.5rem 0;
}

/* Header global */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--valtory-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

/* Logo + titre */
.site-branding {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Bannière (ton image Valtory) */
.site-logo img {
  height: 70px;
  width: auto;
}

/* Titre du site */
.site-title {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--valtory-green);
}

.site-description {
  font-size: 0.9rem;
  color: #6b5b3a;
}

/* Menu principal */
.main-navigation {
  margin-left: auto;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.main-navigation a {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--valtory-dark);
  position: relative;
}

/* Petite ligne dorée au survol */
.main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background-color: var(--valtory-gold);
  transition: width 0.2s ease-out;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item > a::after {
  width: 100%;
}

/* Titres */
h1, h2, h3, h4, h5, h6 {
  font-family: "Cinzel", "Times New Roman", serif;
  color: var(--valtory-green);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.2rem;
  border-bottom: 2px solid var(--valtory-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.7rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.2rem;
}

/* Paragraphes */
p {
  margin-bottom: 1rem;
}

/* Listes */
ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Citations */
blockquote {
  border-left: 4px solid var(--valtory-gold);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
  background: rgba(201, 162, 75, 0.08);
}

/* Cartes de lore / sections importantes */
.lore-card,
.entry-content .card {
  border: 1px solid var(--valtory-border);
  background: rgba(244, 239, 227, 0.9);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Titre de carte */
.lore-card h2,
.lore-card h3 {
  border-bottom: 1px solid var(--valtory-border);
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
}

.button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border-radius: 3px;
  border: 1px solid var(--valtory-green);
  background: var(--valtory-green);
  color: #fff;
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease-out, transform 0.1s ease-out;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--valtory-accent);
  transform: translateY(-1px);
}

/* Articles */
.post,
.page {
  margin-bottom: 2rem;
}

/* Métadonnées */
.entry-meta {
  font-size: 0.85rem;
  color: #7a6a4a;
  margin-bottom: 0.5rem;
}

/* Sidebar */
.widget-area {
  border-left: 1px solid var(--valtory-border);
  padding-left: 1.5rem;
}

.widget {
  margin-bottom: 1.5rem;
}

.widget-title {
  font-family: "Cinzel", "Times New Roman", serif;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--valtory-border);
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
}

.site-footer {
  border-top: 2px solid var(--valtory-border);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  color: #7a6a4a;
  text-align: center;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .site {
    padding: 1rem;
  }
}

.site-header {
    padding-left: 120px;
    padding-right: 120px;
}