/* ══════════════════════════════════════════════════════════════
   VIE INTIME — Boudoir contemporain haut de gamme
   CSS Custom — Zéro framework
   ══════════════════════════════════════════════════════════════ */

/* Fonts système — pas de requête Google Fonts */
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400 700; font-style: normal; font-display: swap; src: local('Cormorant Garamond'); }
@font-face { font-family: 'Allura'; font-weight: 400; font-style: normal; font-display: swap; src: local('Allura'); }

:root {
  --prune: #160D14;
  --bordeaux: #5A172D;
  --cerise: #8E2747;
  --rose-poudre: #D7A6B3;
  --nude: #E9D3CE;
  --champagne: #D4B27A;
  --ivoire: #F8F0EE;
  --blanc: #fff;
  --texte-clair: rgba(248,240,238,0.85);
  --texte-sombre: #3a2a2f;
  --texte-body: #5a4a4f;
  --border-light: rgba(90,23,45,0.12);
  --border-dark: rgba(248,240,238,0.1);
  --max: 1200px;
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--texte-body);
  background: var(--ivoire);
  line-height: 1.8;
  font-weight: 400;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--cerise);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--bordeaux); }

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--prune);
  font-weight: 600;
  line-height: 1.2;
}

p { font-size: 0.95rem; margin-bottom: 1.3em; }

.script {
  font-family: 'Allura', cursive;
  font-weight: 400;
}

/* ══ TOP BAR ══ */
.top-bar {
  background: var(--bordeaux);
  padding: 0.4rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.top-bar a {
  color: var(--bordeaux);
  font-size: 0.7rem;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.top-bar a:hover { opacity: 1; color: var(--bordeaux); }

/* ══ HEADER ══ */
.site-header {
  background: var(--ivoire);
  padding: 1.5rem 2rem 0;
  text-align: center;
  position: relative;
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-bottom: 1rem;
}

.header-search {
  position: absolute;
  left: 0;
  font-size: 1.1rem;
  color: var(--texte-body);
  cursor: pointer;
  opacity: 0.5;
}

.header-icon {
  position: absolute;
  right: 0;
  font-size: 1.1rem;
  color: var(--texte-body);
  opacity: 0.5;
}

.logo-area {
  text-align: center;
}

.logo-monogram {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--prune);
  letter-spacing: 0.15em;
  line-height: 1;
}

.logo-script {
  font-family: 'Allura', cursive;
  font-size: 1.8rem;
  color: var(--cerise);
  margin-top: -0.8rem;
  display: block;
}

/* Navigation */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.8rem 0;
  border-top: 1px solid var(--border-light);
}

.main-nav a {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--texte-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--transition);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: var(--cerise);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.main-nav a:hover { color: var(--cerise); }
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--prune); margin: 5px 0; }

/* ══ HERO ══ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  background: linear-gradient(135deg, var(--nude) 0%, var(--ivoire) 50%, var(--rose-poudre) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Portrait fantôme en fond + dégradé */
.hero-ghost {
  position: absolute;
  inset: 0;
  background-image: url('/img/hero-portrait.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  filter: blur(12px);
  z-index: 0;
}

.hero-ghost::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--nude) 80%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Portrait central — intégré au hero, texte superposé */
.hero-portrait {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-portrait img {
  width: 420px;
  height: 560px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  opacity: 0.85;
}

/* Polaroids */
.hero-polaroids {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.polaroid {
  position: absolute;
  background: var(--blanc);
  padding: 6px 6px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  transition: transform 0.6s ease;
}

.polaroid img {
  width: 220px;
  height: 260px;
  object-fit: cover;
}

.polaroid:nth-child(1) { top: 5%; left: 5%; transform: rotate(-7deg); }
.polaroid:nth-child(2) { top: 8%; right: 5%; transform: rotate(5deg); }
.polaroid:nth-child(3) { bottom: 12%; left: 6%; transform: rotate(3deg); }
.polaroid:nth-child(4) { bottom: 8%; right: 6%; transform: rotate(-4deg); }

.polaroid:hover { transform: rotate(0deg) scale(1.05); }

/* Texte hero */
.hero-text {
  position: absolute;
  z-index: 4;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 650px;
  padding: 2.5rem 3rem;
  background: rgba(248,240,238,0.75);
  backdrop-filter: blur(6px);
  border-radius: 4px;
}

.hero-title {
  color: var(--blanc);
  margin-bottom: 1rem;
}

.hero-title .script {
  font-size: 3rem;
  color: var(--cerise);
  display: block;
  margin-bottom: -0.3rem;
}

.hero-title .caps {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--prune);
}

.hero-sub {
  color: var(--texte-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.hero-links {
  color: var(--texte-body);
  font-size: 0.88rem;
  font-weight: 300;
  opacity: 0.7;
}

.hero-links a {
  color: var(--bordeaux);
  border-bottom: 1px solid rgba(215,166,179,0.3);
}

.hero-links a:hover { color: var(--blanc); border-bottom-color: var(--blanc); }

/* ══ CONTENEUR ══ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ══ SECTION INTRO ══ */
.intro-section {
  background: var(--ivoire);
  padding: 5rem 2rem;
}

.intro-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
}

.intro-label {
  font-family: 'Allura', cursive;
  font-size: 2rem;
  color: var(--cerise);
  flex-shrink: 0;
  padding-top: 0.3rem;
}

.intro-content { flex: 1; }

.intro-content h2 {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.intro-content p {
  font-size: 1rem;
  line-height: 1.9;
}

.intro-content a {
  color: var(--cerise);
  border-bottom: 1px solid var(--border-light);
}

.intro-content a:hover { border-bottom-color: var(--cerise); }

/* ══ BLOCS CATÉGORIES ══ */

/* Bloc clair (Accessoires, Santé) */
.cat-block {
  padding: 5rem 2rem;
}

.cat-block-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: center;
}

.cat-block.reverse .cat-block-inner { flex-direction: row-reverse; }

.cat-block-img {
  flex: 0 0 45%;
  position: relative;
}

.cat-block-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 3px;
}

.cat-block-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 7rem;
  font-weight: 300;
  color: var(--bordeaux);
  opacity: 0.5;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.cat-block-content { flex: 1; }

.cat-block-content h2 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}

.cat-block-content p {
  font-size: 1rem;
  line-height: 1.9;
}

.cat-block-content a {
  color: var(--cerise);
  border-bottom: 1px solid var(--border-light);
  font-weight: 500;
}

/* Fond ivoire */
.cat-light { background: var(--ivoire); }
.cat-light .cat-block-content { color: var(--texte-body); }

/* Fond prune */
.cat-dark {
  background: var(--prune);
}

.cat-dark .cat-block-num { color: var(--champagne); opacity: 0.6; }
.cat-dark .cat-block-content h2 { color: var(--ivoire); }
.cat-dark .cat-block-content p { color: var(--texte-clair); }
.cat-dark .cat-block-content a { color: var(--champagne); border-bottom-color: rgba(212,178,122,0.3); }
.cat-dark .cat-block-content a:hover { color: var(--blanc); }

/* Fond nude */
.cat-nude { background: var(--nude); }

/* ══ ARTICLES ══ */
.articles-section {
  background: var(--ivoire);
  padding: 5rem 2rem;
}

.articles-section h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 3rem;
}

.article-list {
  max-width: var(--max);
  margin: 0 auto;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

@media (max-width: 1100px) {
  .article-list { grid-template-columns: repeat(3, 1fr); }
}

.article-list-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.article-list-item a {
  display: block;
  text-decoration: none;
  position: relative;
}

.article-list-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
  border-radius: 12px;
}

.article-list-item:hover img {
  transform: scale(1.04);
}

.article-list-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(22,13,20,0.85));
}

.article-list-cat {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--champagne);
  margin-bottom: 0.4rem;
}

.article-list-overlay h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blanc);
  line-height: 1.35;
  margin: 0;
}

.article-list-num, .article-list-date, .article-list-content { display: none; }

@media (max-width: 900px) {
  .article-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .article-list { grid-template-columns: 1fr; }
}

/* ══ FOOTER ══ */
.site-footer {
  background: var(--prune);
  color: var(--texte-clair);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ivoire);
  letter-spacing: 0.1em;
}

.footer-brand p {
  font-size: 0.8rem;
  margin-top: 0.6rem;
  color: rgba(248,240,238,0.65);
  max-width: 280px;
}

.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(248,240,238,0.5);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: rgba(248,240,238,0.7);
  padding: 0.2rem 0;
}

.footer-col a:hover { color: var(--champagne); }

.footer-bottom {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(248,240,238,0.06);
  text-align: center;
  font-size: 0.7rem;
  color: rgba(248,240,238,0.55);
}

.footer-adult {
  font-size: 0.68rem;
  color: rgba(248,240,238,0.6);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ══ PAGES STATIQUES ══ */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.page-content h1 { margin-bottom: 2rem; }

.breadcrumb {
  font-size: 0.75rem;
  color: var(--bordeaux);
  padding: 1rem 0;
  max-width: var(--max);
  margin: 0 auto;
}

.breadcrumb a { color: var(--bordeaux); opacity: 0.5; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb span { margin: 0 0.3rem; }

/* ══ ARTICLE PAGE ══ */
.article-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 2rem 1rem;
}

.article-meta {
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cerise);
  margin-bottom: 0.6rem;
}

.article-date { font-size: 0.78rem; color: var(--bordeaux); }

.article-featured-img {
  max-width: var(--max);
  margin: 1.5rem auto 2.5rem;
}

.article-featured-img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 3px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}

.article-content {
  min-width: 0;
  padding: 0 0 3rem;
}

.article-content p { font-size: 1rem; line-height: 1.85; color: var(--prune); }
.article-content strong { color: var(--prune); }
.article-content h2 { font-size: 1.8rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--prune); border-bottom: 1px solid var(--border-light); padding-bottom: 0.4rem; }
.article-content h3 { font-size: 1.3rem; margin-top: 2rem; color: var(--prune); }

.article-content a { color: var(--cerise); border-bottom: 1px solid var(--border-light); }
.article-content a:hover { border-bottom-color: var(--cerise); }

.article-content ul, .article-content ol { margin: 1rem 0 1.5rem 1.5rem; font-size: 0.93rem; }
.article-content li { margin-bottom: 0.4rem; }

.article-content table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.88rem; }
.article-content th { background: var(--nude); padding: 0.7rem 1rem; text-align: left; font-size: 0.8rem; }
.article-content td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border-light); }

/* Sidebar */
.article-sidebar { padding-top: 1rem; }

.sidebar-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--prune);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-articles { list-style: none; }
.sidebar-articles li { margin-bottom: 1rem; }

.sidebar-articles a {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 0.7rem;
  align-items: center;
  text-decoration: none;
}

.sidebar-articles img { width: 60px; height: 45px; object-fit: cover; border-radius: 2px; }
.sidebar-articles span { font-size: 0.78rem; font-weight: 500; color: var(--prune); line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sidebar-articles a:hover span { color: var(--cerise); }

/* Author */
.author-box {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  margin: 2rem auto;
  max-width: var(--max);
}

/* Related */
.related-posts { max-width: var(--max); margin: 0 auto 3rem; padding: 0 2rem; }
.related-posts h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
  .hero { height: 70vh; min-height: 500px; }
  .hero-portrait img { width: 240px; height: 340px; }
  .polaroid img { width: 100px; height: 120px; }
  .hero-title .caps { font-size: 2.5rem; }
  .intro-inner { flex-direction: column; gap: 1rem; }
  .cat-block-inner, .cat-block.reverse .cat-block-inner { flex-direction: column; }
  .cat-block-img { flex: none; }
  .cat-block-img img { height: 300px; }
  .article-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-list-img { display: none; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero { height: 90vh; }
  .hero-portrait img { width: 200px; height: 280px; }
  .polaroid { display: none; }
  .hero-title .caps { font-size: 2rem; letter-spacing: 0.1em; }
  .main-nav { display: none; flex-direction: column; padding: 0.5rem 1rem; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
  .top-bar { display: none; }
}
