/* ELYOS & NAYLA — Souffle & Structure — elyos.css v20260212 */

/* ===== VARIABLES ===== */
:root {
  --bg: #EDE5D5;
  --bg-light: #F5F0E6;
  --text: #2C2C2C;
  --text-muted: #6B6355;
  --vert-sapin: #1A4D2E;
  --vert-sapin-light: #2F5947;
  --vert-sapin-hover: #0D3B1E;
  --or-doux: #C8A96E;
  --or-doux-light: #D4BC8A;
  --border: #C9BFAB;
  --border-light: #DDD6C8;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', 'Helvetica Neue', sans-serif;
  --max-width: 820px;
  --transition: 0.3s ease;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
  --bg: #1A1A18;
  --bg-light: #242420;
  --text: #E0D8C8;
  --text-muted: #9A9080;
  --vert-sapin: #5DA67A;
  --vert-sapin-light: #7ABF95;
  --vert-sapin-hover: #8DD4A6;
  --or-doux: #D4BC8A;
  --border: #3A3830;
  --border-light: #2E2C26;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--vert-sapin);
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2.2rem; margin-bottom: 1rem; }
h2 { font-size: 1.7rem; margin: 2rem 0 0.8rem; }
h3 { font-size: 1.3rem; margin: 1.5rem 0 0.6rem; }

p { margin-bottom: 1.2rem; }

a {
  color: var(--vert-sapin);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
a:hover { border-bottom-color: var(--or-doux); }

blockquote {
  border-left: 3px solid var(--or-doux);
  padding: 0.8rem 1.2rem;
  margin: 1.5rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-muted);
  background: var(--bg-light);
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5rem auto;
  max-width: 200px;
}

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== HEADER ===== */
.site-header {
  text-align: center;
  padding: 2.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.site-header.compact {
  padding: 1.2rem 1rem;
}

.header-logo {
  width: 260px;
  height: auto;
  margin-bottom: 1.5rem;
  border-radius: 14px;
}
.compact .header-logo {
  width: 55px;
  margin-bottom: 0.4rem;
}
.site-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--vert-sapin);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.compact .site-title { font-size: 1.3rem; }

.site-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.compact .site-subtitle { font-size: 0.9rem; margin-bottom: 0.6rem; }

/* ===== NAVIGATION ===== */
.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  padding: 0.5rem 0;
}

.main-nav a {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--vert-sapin);
  padding: 0.3rem 0.5rem;
  border-bottom: none;
  transition: color var(--transition);
}

.main-nav a:hover { color: var(--or-doux); }

.main-nav a.cta {
  border: 1px solid var(--vert-sapin);
  border-radius: 4px;
  padding: 0.3rem 0.8rem;
  font-style: normal;
  font-weight: 500;
}

.main-nav a.cta:hover {
  background: var(--vert-sapin);
  color: var(--bg);
}

/* ===== SIGILS BAR ===== */
.sigils-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 1rem;
  flex-wrap: wrap;
}

.sigil-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  border-bottom: none;
  transition: transform var(--transition);
}

.sigil-item:hover { transform: translateY(-3px); }

.sigil-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border-radius: 8px;
}

.sigil-item span {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== MAIN CONTENT ===== */
main {
  padding: 2.5rem 0;
}

.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Welcome block */
.welcome-block {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-bottom: 2rem;
}

.welcome-block h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.welcome-block p {
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 1rem;
  color: var(--text-muted);
}

/* ===== ARTICLE LIST ===== */
.article-list { list-style: none; }

.article-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.article-item:last-child { border-bottom: none; }

.article-item h3 { margin-bottom: 0.3rem; }

.article-item h3 a {
  color: var(--vert-sapin);
  border-bottom: none;
}

.article-item h3 a:hover { color: var(--or-doux); }

.article-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.article-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ===== PORTES (LA VOIE) ===== */
.portes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.porte-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.porte-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-bottom: none;
}

.porte-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.porte-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.porte-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== SINGLE PAGE ===== */
.single-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.single-header .sigil-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 1.2rem;
}

.single-content {
  font-size: 1rem;
  line-height: 1.8;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 1.5rem 0;
}

/* ===== NAVIGATION PORTES ===== */
.portes-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 8px;
  flex-wrap: wrap;
}

.portes-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: none;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.portes-nav a:hover, .portes-nav a.active { opacity: 1; }

.portes-nav img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.3rem;
}

.portes-nav span {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== CTA BUTTON ===== */
.btn {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--vert-sapin);
  border-radius: 4px;
  color: var(--vert-sapin);
  transition: all var(--transition);
  border-bottom: 1px solid var(--vert-sapin);
}

.btn:hover {
  background: var(--vert-sapin);
  color: var(--bg);
  border-bottom-color: var(--vert-sapin);
}

/* ===== FOOTER ===== */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
}

.footer-nav a { font-size: 0.8rem; }

/* ===== DARK MODE TOGGLE ===== */
.theme-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all var(--transition);
  z-index: 100;
}

.theme-toggle:hover {
  background: var(--vert-sapin);
  color: var(--bg);
  border-color: var(--vert-sapin);
}

/* ===== LA VOIE ===== */
.voie-intro {
  text-align: left;
  margin-bottom: 2rem;
}

.voie-breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
}

.voie-breadcrumb a { color: var(--vert-sapin); }

.voie-intro h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.voie-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
}

.portes-grid-voie {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem auto;
  max-width: 600px;
}

.portes-grid-voie-center {
  display: flex;
  justify-content: center;
  margin: 0 auto 2.5rem;
  max-width: 600px;
}

.portes-grid-voie-center .porte-card-voie {
  width: calc(50% - 0.75rem);
}

.porte-card-voie {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.porte-card-voie:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-bottom: none;
}

.porte-sigil-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  background: var(--bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
}

.porte-sigil-wrap img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.porte-card-voie h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.porte-card-voie p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 480px) {
  .portes-grid-voie { grid-template-columns: 1fr; }
  .portes-grid-voie-center .porte-card-voie { width: 100%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html { font-size: 16px; }
  .site-title { font-size: 1.6rem; }
  .sigils-bar { gap: 1.2rem; }
  .sigil-item img { width: 64px; height: 64px; }
  .portes-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 0.2rem 0.8rem; }
}

@media (max-width: 480px) {
  .sigils-bar { gap: 0.8rem; }
  .sigil-item img { width: 56px; height: 56px; }
  .sigil-item span { font-size: 0.7rem; }
}

/* Texte d’accueil */
.welcome-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0.8rem 0 1.2rem;
  text-align: center;
}

.welcome-text strong {
  color: var(--vert-sapin);
  font-style: normal;
}
/* ===== BIBLIOTHÈQUE ===== */
.biblio-section {
  margin: 3rem 0;
}

.biblio-section-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--vert-sapin);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.covers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.covers-grid--single {
  grid-template-columns: repeat(1, 1fr);
  max-width: 220px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  border-bottom: none;
}

.cover-card a {
  border-bottom: none;
  text-decoration: none;
}

.cover-card a:hover .cover-img-wrap {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.cover-img-wrap {
  width: 100%;
  aspect-ratio: 2 / 3;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.cover-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-title {
  margin-top: 0.7rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--vert-sapin);
  line-height: 1.3;
}

.cover-desc {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .covers-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .covers-grid {
    grid-template-columns: 1fr;
  }
  .covers-grid--single {
    max-width: 100%;
  }
}
/* ===== PAGE DE VENTE ===== */
.vente-page {
  max-width: 820px;
  margin: 0 auto;
}

.vente-header {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
}

.vente-cover img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.vente-header-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.vente-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.vente-prix {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.prix-lancement {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--vert-sapin);
}

.prix-barre {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.prix-label {
  font-size: 0.8rem;
  color: var(--or-doux);
  font-style: italic;
}

.btn-achat {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1rem;
  padding: 0.8rem 2rem;
  background: var(--vert-sapin);
  color: var(--bg);
  border-radius: 4px;
  border: none;
  transition: background var(--transition);
  text-decoration: none;
}

.btn-achat:hover {
  background: var(--vert-sapin-hover);
  border-bottom: none;
  color: var(--bg);
}

.vente-content {
  margin-bottom: 3rem;
}

.vente-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .vente-header {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .vente-cover img {
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }
}
/* ===== TRESORS ===== */
.tresors-section {
  margin: 3rem 0;
}
.tresors-intro {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--vert-sapin);
  text-align: center;
  margin: 2rem 0;
}
.tresors-section-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--vert-sapin);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.tresors-beaute-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.tresors-beaute-card {
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 3rem 1rem;
  text-align: center;
  text-decoration: none;
  border-bottom: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.tresors-beaute-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.tresors-beaute-label {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--vert-sapin);
  font-style: italic;
}

@media (max-width: 480px) {
  .tresors-beaute-grid {
    grid-template-columns: 1fr;
  }
}
/* ===== NAVIGATION BAS DE PAGE ===== */
.top-link {
  display: block;
  text-align: center;
  margin: 2rem auto 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: none;
  transition: color var(--transition);
}

.top-link:hover {
  color: var(--vert-sapin);
  border-bottom: none;
}

.bottom-nav {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.bottom-nav-link {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--vert-sapin);
  border-bottom: none;
  transition: color var(--transition);
}

.bottom-nav-link:hover {
  color: var(--or-doux);
  border-bottom: none;
}
/* ===== RETOUR HAUT DE PAGE GLOBAL ===== */
#top-btn {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--vert-sapin);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  text-decoration: none;
  border-bottom: none;
  z-index: 99;
}

#top-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

#top-btn:hover {
  background: var(--vert-sapin);
  color: var(--bg);
  border-bottom: none;
}
/* ===== TEXTES REPERES ===== */
.label-textes-reperes {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: #1F3D2B;
  letter-spacing: 0.05em;
  margin: 2.5rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}
/* Beaute du monde - Grid */
.beaute-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.beaute-card {
  text-align: center;
  transition: transform 0.2s;
}

.beaute-card:hover {
  transform: translateY(-4px);
}

.beaute-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.beaute-card h3 {
  margin-top: 1rem;
  color: var(--vert-sapin, #2F5947);
  font-size: 1.2rem;
}

/* DEBUG beaute-du-monde */
.beaute-card img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border: 2px solid red !important;
}

/* Oeuvres et creations - Images */
.single-content img {
  max-width: 360px;
  height: auto;
  display: block;
  margin: 1.5rem auto;
  border-radius: 8px;
}

/* Forcer la police Cormorant Garamond partout */
body, .single-content, .single-content p, .single-content h1, .single-content h2, .single-content h3 {
  font-family: 'Cormorant Garamond', serif !important;
}

/* Navigation inter-sections */
.section-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid #d4cfc0;
}

.section-nav a {
  color: var(--vert-sapin, #2F5947);
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.2s;
}

.section-nav a:hover {
  opacity: 0.7;
}

.section-nav .nav-prev::before {
  content: "← ";
}

.section-nav .nav-next::after {
  content: " →";
}
