/*
Theme Name: Les Éternels Éditions
Theme URI: https://editions.leclubdeseternels.fr
Description: Thème officiel de Les Éternels Éditions — Diffusion internationale de littérature tunisienne. Design navy/or/crème.
Version: 1.0.0
Author: La Plume Éternelle
Author URI: https://editions.leclubdeseternels.fr
Text Domain: les-eternels
*/

:root {
  --bleu-marine:      #1A2E40;
  --bleu-marine-deep: #0D1B2A;
  --or:               #C9A84C;
  --or-light:         #E8C97A;
  --creme:            #F7F3EE;
  --creme-dark:       #EDE6DC;
  --encre:            #1C1410;
  --gris:             #7A6E66;
  --blanc:            #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--creme);
  color: var(--encre);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* NAV */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bleu-marine-deep);
  border-bottom: 2px solid var(--or);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 64px;
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 600;
  color: var(--or-light); text-decoration: none; letter-spacing: 0.02em;
}
.main-navigation ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.main-navigation a {
  color: var(--creme-dark); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500; transition: color 0.2s;
}
.main-navigation a:hover { color: var(--or-light); }

/* HERO */
.hero {
  background: var(--bleu-marine-deep); color: var(--blanc);
  padding: 7rem 5vw 5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  align-items: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 380px; height: 380px;
  border: 1px solid rgba(201,168,76,0.15); border-radius: 50%; pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 280px; height: 280px;
  border: 1px solid rgba(201,168,76,0.08); border-radius: 50%; pointer-events: none;
}
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--or); margin-bottom: 1.2rem; font-weight: 500;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 600;
  line-height: 1.15; color: var(--blanc); margin-bottom: 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--or-light); }
.hero-desc {
  font-size: 1rem; color: rgba(247,243,238,0.75);
  line-height: 1.7; max-width: 440px; margin-bottom: 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--or); color: var(--bleu-marine-deep);
  padding: 0.75rem 1.8rem; border-radius: 3px; text-decoration: none;
  font-weight: 500; font-size: 0.88rem; letter-spacing: 0.04em; transition: background 0.2s;
}
.btn-primary:hover { background: var(--or-light); }
.btn-outline {
  border: 1px solid rgba(201,168,76,0.5); color: var(--or-light);
  padding: 0.75rem 1.8rem; border-radius: 3px; text-decoration: none;
  font-weight: 400; font-size: 0.88rem; letter-spacing: 0.04em; transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--or-light); }
.hero-stats {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 2.5rem; border: 1px solid rgba(201,168,76,0.2);
  border-radius: 4px; background: rgba(255,255,255,0.04); backdrop-filter: blur(4px);
}
.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 600; color: var(--or-light); line-height: 1;
}
.stat-label { font-size: 0.78rem; color: rgba(247,243,238,0.55); letter-spacing: 0.06em; margin-top: 0.3rem; }
.stat-divider { border: none; border-top: 1px solid rgba(201,168,76,0.15); }

/* SECTIONS */
.site-main section { padding: 5rem 5vw; }
.section-label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--or); margin-bottom: 0.8rem; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600;
  color: var(--bleu-marine-deep); margin-bottom: 0.5rem; line-height: 1.2;
}
.section-sub { font-size: 0.95rem; color: var(--gris); max-width: 560px; margin-bottom: 3rem; line-height: 1.7; }
.section-line { width: 48px; height: 2px; background: var(--or); margin-bottom: 2.5rem; }

/* CATALOGUE */
#catalogue { background: var(--creme); }
.catalogue-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem; }
.filter-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-tab {
  padding: 0.4rem 1rem; border: 1px solid var(--creme-dark); border-radius: 2px;
  font-size: 0.78rem; cursor: pointer; background: var(--blanc); color: var(--gris);
  letter-spacing: 0.04em; transition: all 0.15s;
}
.filter-tab.active, .filter-tab:hover { background: var(--bleu-marine); color: var(--blanc); border-color: var(--bleu-marine); }
.books-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.book-card {
  background: var(--blanc); border: 1px solid var(--creme-dark); border-radius: 4px;
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column;
}
.book-card:hover { box-shadow: 0 8px 32px rgba(26,46,64,0.12); transform: translateY(-3px); }
.book-cover { aspect-ratio: 3/4; background: var(--creme-dark); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.book-cover-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.cover-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--bleu-marine); opacity: 0.7; }
.cover-title-display { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--bleu-marine-deep); line-height: 1.3; margin-bottom: 0.5rem; }
.cover-author-display { font-size: 0.7rem; color: var(--gris); letter-spacing: 0.08em; text-transform: uppercase; }
.cover-ornament { width: 32px; height: 1px; background: var(--or); margin: 0.8rem auto; }
.theme-noir { background: #1C1410; }
.theme-noir .cover-title-display { color: var(--or-light); }
.theme-noir .cover-author-display { color: rgba(232,201,122,0.6); }
.theme-bleu-marine { background: var(--bleu-marine); }
.theme-bleu-marine .cover-title-display { color: var(--blanc); }
.theme-bleu-marine .cover-author-display { color: rgba(255,255,255,0.65); }
.theme-sable { background: #E8DCC8; }
.theme-sable .cover-title-display { color: var(--bleu-marine-deep); }
.theme-slate { background: #2D3748; }
.theme-slate .cover-title-display { color: var(--or-light); }
.theme-slate .cover-author-display { color: rgba(232,201,122,0.6); }
.theme-vert { background: #1A3A2A; }
.theme-vert .cover-title-display { color: var(--creme); }
.theme-vert .cover-author-display { color: rgba(247,243,238,0.6); }
.book-badge { position: absolute; top: 12px; right: 12px; background: var(--or); color: var(--bleu-marine-deep); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.2rem 0.5rem; border-radius: 2px; }
.book-lang-badge { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.5); color: rgba(255,255,255,0.9); font-size: 0.62rem; padding: 0.2rem 0.5rem; border-radius: 2px; }
.book-info { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.book-publisher { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--or); margin-bottom: 0.4rem; font-weight: 500; }
.book-title { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; color: var(--encre); line-height: 1.3; margin-bottom: 0.3rem; }
.book-author { font-size: 0.8rem; color: var(--gris); margin-bottom: 0.6rem; }
.book-genre { font-size: 0.72rem; color: var(--bleu-marine); background: rgba(26,46,64,0.07); display: inline-block; padding: 0.15rem 0.5rem; border-radius: 2px; margin-bottom: 0.8rem; }
.book-excerpt { font-size: 0.8rem; color: var(--gris); line-height: 1.6; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.book-footer { padding: 0.8rem 1.2rem 1.2rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--creme-dark); margin-top: 1rem; gap: 0.5rem; }
.book-price { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--bleu-marine); }
.book-isbn { font-size: 0.62rem; color: var(--gris); letter-spacing: 0.04em; }
.amazon-btn { display: inline-flex; align-items: center; gap: 0.4rem; background: #FF9900; color: #111; padding: 0.5rem 0.9rem; border-radius: 3px; text-decoration: none; font-size: 0.75rem; font-weight: 600; transition: background 0.15s; white-space: nowrap; }
.amazon-btn:hover { background: #e88a00; }
.amazon-btn svg { width: 14px; height: 14px; }

/* PARTENAIRES */
#partenaires { background: var(--bleu-marine-deep); color: var(--blanc); }
#partenaires .section-title { color: var(--or-light); }
#partenaires .section-sub { color: rgba(247,243,238,0.65); }
.partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; }
.partner-card { border: 1px solid rgba(201,168,76,0.25); padding: 2rem; border-radius: 4px; background: rgba(255,255,255,0.04); display: flex; flex-direction: column; justify-content: flex-start; }
.partner-name { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; color: var(--or-light); margin-bottom: 0.3rem; }
.partner-location { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(201,168,76,0.6); margin-bottom: 1rem; }
.partner-tagline { font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: rgba(247,243,238,0.6); border-left: 2px solid var(--or); padding-left: 0.8rem; margin-bottom: 1rem; }
.partner-desc { font-size: 0.85rem; color: rgba(247,243,238,0.65); line-height: 1.7; margin-bottom: 1.2rem; }
.partner-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: auto; }
.partner-tag { font-size: 0.68rem; padding: 0.2rem 0.6rem; border: 1px solid rgba(201,168,76,0.3); border-radius: 2px; color: rgba(201,168,76,0.8); letter-spacing: 0.04em; }

/* À PROPOS */
#apropos { background: var(--creme-dark); }
.apropos-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.apropos-quote { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-style: italic; color: var(--bleu-marine); line-height: 1.4; border-left: 3px solid var(--or); padding-left: 1.5rem; margin: 2rem 0; }
.apropos-text { font-size: 0.9rem; color: var(--gris); line-height: 1.8; margin-bottom: 1rem; }
.values-list { list-style: none; margin-top: 1.5rem; }
.values-list li { padding: 0.6rem 0; border-bottom: 1px solid var(--creme-dark); font-size: 0.88rem; color: var(--encre); display: flex; align-items: baseline; gap: 0.8rem; }
.values-list li::before { content: '—'; color: var(--or); flex-shrink: 0; }
.diffusion-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.diffusion-card { background: var(--blanc); border: 1px solid var(--creme-dark); padding: 1.2rem; border-radius: 3px; }
.diffusion-card-title { font-weight: 500; font-size: 0.85rem; color: var(--encre); margin-bottom: 0.3rem; }
.diffusion-card-desc { font-size: 0.75rem; color: var(--gris); line-height: 1.5; }

/* BLOG */
#blog { background: var(--creme); }
.blog-container { margin-top: 3rem; }
.blog-subsection-title { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 600; color: var(--bleu-marine-deep); margin: 3rem 0 1.5rem 0; display: flex; align-items: center; gap: 0.5rem; }
.blog-subsection-title::after { content: ''; flex: 1; height: 1px; background: var(--creme-dark); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.blog-card { background: var(--blanc); border: 1px solid var(--creme-dark); border-radius: 4px; padding: 1.8rem; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,0.05); }
.blog-meta { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--or); margin-bottom: 0.6rem; font-weight: 500; }
.blog-title { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: var(--encre); line-height: 1.3; margin-bottom: 0.8rem; }
.blog-excerpt { font-size: 0.85rem; color: var(--gris); line-height: 1.6; margin-bottom: 1.5rem; flex: 1; }
.blog-link { font-size: 0.8rem; text-decoration: none; color: var(--bleu-marine); font-weight: 500; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 0.4rem; margin-top: auto; cursor: pointer; transition: color 0.15s; }
.blog-link:hover { color: var(--or); }

/* MODALE */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(13,27,42,0.75); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 20px; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-wrapper { background: var(--creme); border: 1px solid var(--or); max-width: 700px; width: 100%; max-height: 85vh; border-radius: 4px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); display: flex; flex-direction: column; transform: translateY(20px); transition: transform 0.3s ease; }
.modal-overlay.active .modal-wrapper { transform: translateY(0); }
.modal-header { padding: 1.5rem 2rem; border-bottom: 1px solid var(--creme-dark); display: flex; justify-content: space-between; align-items: flex-start; background: var(--blanc); }
.modal-header-text { flex: 1; }
.modal-close-btn { background: none; border: none; font-size: 1.8rem; color: var(--gris); cursor: pointer; line-height: 1; margin-left: 1rem; transition: color 0.15s; }
.modal-close-btn:hover { color: var(--encre); }
.modal-body { padding: 2rem; overflow-y: auto; font-size: 0.95rem; line-height: 1.8; color: var(--encre); background: var(--blanc); }
.modal-body p { margin-bottom: 1.2rem; }
.modal-body h5 { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin: 1.5rem 0 0.5rem; color: var(--bleu-marine-deep); }

/* CONTACT */
#contact { background: var(--encre); color: var(--blanc); text-align: center; }
#contact .section-title { color: var(--or-light); }
#contact .section-sub { color: rgba(247,243,238,0.55); margin-left: auto; margin-right: auto; }
.contact-grid { display: flex; justify-content: center; gap: 3rem; margin-top: 3rem; flex-wrap: wrap; }
.contact-item { text-align: center; }
.contact-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--or); margin-bottom: 0.3rem; }
.contact-value { font-size: 0.9rem; color: rgba(247,243,238,0.8); }
.contact-value a { color: var(--or-light); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* FOOTER */
.site-footer { background: var(--bleu-marine-deep); border-top: 1px solid rgba(201,168,76,0.2); padding: 2rem 5vw; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-brand { font-family: 'Cormorant Garamond', serif; color: var(--or-light); font-size: 1rem; font-weight: 600; }
.footer-copy { font-size: 0.72rem; color: rgba(247,243,238,0.35); }

/* FILTER */
.book-card[data-hidden="true"] { display: none; }

/* RESPONSIVE */
@media (max-width: 1024px) { .partners-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-stats { display: none; }
  .partners-grid, .apropos-inner, .blog-grid { grid-template-columns: 1fr; }
  .main-navigation { display: none; }
  .diffusion-cards { grid-template-columns: 1fr; }
  .contact-grid { flex-direction: column; align-items: center; }
}

.diffusion-card-icon { font-size: 1.4rem; margin-bottom: 0.5rem; }
.featured-band { background: var(--bleu-marine); padding: 0.5rem 1rem; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--or-light); text-align: center; }
