/* ============================================================
   RUSSIANCONCEPTS.COM — Design System "Imperial Dusk"
   2026-06-24
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..700&family=Inter:wght@400;600;700&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --primary:      #C9A84C;  /* or impérial */
  --primary-dark: #A8872A;  /* or foncé hover */
  --accent:       #8B1A1A;  /* rouge tsariste */
  --bg:           #0C1B33;  /* bleu nuit impérial */
  --bg-card:      #162240;  /* bleu nuit carte */
  --bg-light:     #1E2E4A;  /* bleu nuit clair */
  --text:         #E8E4DC;  /* ivoire patiné */
  --text-muted:   #A89B8C;  /* ivoire estompé */
  --border:       #2A3D5C;  /* bordure subtile */

  --ff-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;

  --measure-article: 720px;
  --measure-wide:    1280px;
  --gutter:          clamp(1rem, 4vw, 2rem);

  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur:      360ms;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ── RESET IMAGES (anti-distorsion) ── */
img { max-width: 100%; height: auto; display: block; }

/* ── WRAPPERS ANTI-DISTORSION ── */
.img-hero     { aspect-ratio: 16/9; overflow: hidden; }
.img-card     { aspect-ratio: 3/2;  overflow: hidden; }
.img-body     { aspect-ratio: 3/2;  overflow: hidden; border-radius: 8px; margin: 2rem 0; }
.img-portrait { aspect-ratio: 1/1;  overflow: hidden; border-radius: 50%; }
.img-hero img, .img-card img, .img-body img, .img-portrait img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}

/* ── LIENS ── */
a { color: var(--primary); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: #fff; text-decoration: underline; }

/* ── TYPOGRAPHIE ── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin: 2.5rem 0 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); margin: 2rem 0 0.75rem; }
p  { margin-bottom: 1.25rem; color: var(--text); }
ul, ol { margin: 1rem 0 1.5rem 1.5rem; }
li { margin-bottom: 0.5rem; color: var(--text); }
blockquote {
  border-left: 4px solid var(--primary);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-muted);
}

/* ── LAYOUT UTILS ── */
.container  { max-width: var(--measure-wide); margin: 0 auto; padding: 0 var(--gutter); }
.container--article { max-width: var(--measure-article); margin: 0 auto; padding: 0 var(--gutter); }
.section    { padding: 4rem 0; }
.section--dark { background: var(--bg-card); }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 27, 51, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-fast) var(--ease);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.header-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.site-logo:hover { color: var(--primary); text-decoration: none; }
.logo-accent { color: var(--primary); }
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease);
  text-decoration: none;
}
.main-nav a:hover { color: var(--primary); text-decoration: none; }
.lang-switcher {
  display: flex;
  gap: 0.4rem;
  margin-left: 1rem;
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}
.lang-switcher a {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--text-muted);
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease);
}
.lang-switcher a.active,
.lang-switcher a:hover {
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--dur-fast) var(--ease);
}

/* ── HERO ── */
.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
}
.page-hero .img-hero {
  position: absolute;
  inset: 0;
  aspect-ratio: unset;
  width: 100%;
  height: 100%;
}
.page-hero .img-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,27,51,0.95) 0%, rgba(12,27,51,0.6) 50%, rgba(12,27,51,0.3) 100%);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 3rem var(--gutter);
}
.page-hero__badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero__lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0;
}

/* ── HOMEPAGE HERO ── */
.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.home-hero .img-hero {
  position: absolute;
  inset: 0;
  aspect-ratio: unset;
  width: 100%;
  height: 100%;
}
.home-hero .img-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(12,27,51,0.92) 0%, rgba(12,27,51,0.5) 60%, rgba(139,26,26,0.2) 100%);
}
.home-hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 4rem var(--gutter);
}
.home-hero h1 { color: #fff; max-width: 700px; }
.home-hero__subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 1rem 0 2rem;
  max-width: 580px;
}
.home-hero__langs {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--primary);
  color: var(--bg);
}
.btn--primary:hover { background: var(--primary-dark); color: var(--bg); text-decoration: none; }
.btn--outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}
.btn--outline:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ── GRILLE PILIERS ── */
.piliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.pilier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
}
.pilier-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  text-decoration: none;
}
.pilier-card__img { aspect-ratio: 16/9; overflow: hidden; }
.pilier-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.pilier-card:hover .pilier-card__img img { transform: scale(1.04); }
.pilier-card__body { padding: 1.25rem; }
.pilier-card__cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.pilier-card__title {
  font-family: var(--ff-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.pilier-card__summary {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── SECTION TITRES ── */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { color: #fff; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0.75rem auto 0; }
.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--accent));
  margin: 1rem auto;
  border-radius: 2px;
}

/* ── BLOG CARDS ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  text-decoration: none;
}
.blog-card__img { aspect-ratio: 3/2; overflow: hidden; }
.blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur) var(--ease); }
.blog-card:hover .blog-card__img img { transform: scale(1.04); }
.blog-card__body { padding: 1.25rem; }
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.blog-card__cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
}
.blog-card__date { font-size: 0.78rem; color: var(--text-muted); }
.blog-card__title {
  font-family: var(--ff-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.blog-card__summary { font-size: 0.87rem; color: var(--text-muted); line-height: 1.5; }

/* ── FILTRES CATÉGORIE ── */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: var(--bg); border-color: var(--primary); }

/* ── ARTICLE LAYOUT ── */
.article-body {
  max-width: var(--measure-article);
  margin: 0 auto;
  padding: 3rem var(--gutter);
}
.article-body h2 { color: var(--primary); }
.article-body h3 { color: #fff; }
.article-body a { color: var(--primary); text-decoration: underline; }
.article-body a:hover { color: #fff; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem var(--gutter);
  max-width: var(--measure-article);
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.article-meta__cat {
  padding: 3px 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── TOC ── */
.article-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}
.article-toc h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.article-toc ol { margin: 0; padding-left: 1.2rem; }
.article-toc li { margin-bottom: 0.4rem; }
.article-toc a { color: var(--text-muted); font-size: 0.9rem; text-decoration: none; }
.article-toc a:hover { color: var(--primary); }

/* ── FAQ ── */
.faq-section { margin: 3rem 0; }
.faq-section h2 { margin-bottom: 1.5rem; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  gap: 1rem;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 1rem;
}
.faq-item__question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
}
.faq-item.open .faq-item__question::after { transform: rotate(45deg); }
.faq-item__answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.faq-item.open .faq-item__answer { display: block; }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand { }
.footer-brand__logo {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  display: block;
  text-decoration: none;
}
.footer-brand__logo:hover { color: var(--primary); text-decoration: none; }
.footer-brand p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: var(--ff-body);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-size: 0.88rem; color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  max-width: var(--measure-wide);
  margin: 2rem auto 0;
  padding: 1.5rem var(--gutter) 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }

/* ── ABOUT BANNER ── */
.about-banner {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2rem 0;
}
.about-banner__text h2 { margin-top: 0; }

/* ── PARTNERS ── */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 0;
}
.partner-link {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--dur-fast) var(--ease);
  text-decoration: none;
}
.partner-link:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem var(--gutter);
  max-width: var(--measure-wide);
  margin: 0 auto;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--border); }

/* ── 404 ── */
.not-found {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--gutter);
}
.not-found__code {
  font-family: var(--ff-display);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-banner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; flex-direction: column; position: fixed; inset: 0; top: 64px; background: var(--bg); padding: 2rem; z-index: 200; }
  .hamburger { display: flex; }
  body.nav-open .main-nav { display: flex; }
  body.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
