/*
 * CHEVAUX.INFO — CSS CORRECTIF V5
 * Alignement sur style EQLiving
 * ========================================
 */

/* ========================================
   GOOGLE FONTS — Typographie EQLiving Style
   ======================================== */

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

/* Alternative plus moderne (décommenter si préféré) :
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@400;500;600;700&display=swap');
*/

/* ========================================
   VARIABLES CSS — Design System V5
   ======================================== */

:root {
  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Alternative :
  --font-display: 'Libre Baskerville', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  */
  
  /* Colors - Palette EQLiving */
  --color-bg: #FAFAF8;
  --color-bg-dark: #1A1815;
  --color-text: #1A1815;
  --color-text-light: #6B6560;
  --color-accent: #B8976A;
  --color-accent-dark: #96784D;
  --color-border: #E8E4DE;
  
  /* Spacing */
  --header-height: 60px;
  --container-max: 1400px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
}

/* ========================================
   RESET & BASE
   ======================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADER — Style EQLiving
   ======================================== */

/* Header transparent sur hero */
.site-header,
header.site-header,
#masthead,
.header,
.main-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

/* Container header */
.site-header .container,
.header-inner,
.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Logo / Site Title */
.site-title,
.site-branding,
.logo,
.custom-logo-link {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: #fff !important;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.site-title a,
.site-branding a {
  color: #fff !important;
  text-decoration: none;
}

/* Navigation principale */
.main-navigation,
.primary-menu,
.nav-menu,
#primary-menu,
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-navigation ul,
.primary-menu ul,
.nav-menu > ul,
#primary-menu > ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation li,
.primary-menu li,
.nav-menu li {
  margin: 0;
  padding: 0;
}

.main-navigation a,
.primary-menu a,
.nav-menu a,
#primary-menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff !important;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.main-navigation a:hover,
.primary-menu a:hover,
.nav-menu a:hover {
  color: var(--color-accent) !important;
  opacity: 0.9;
}

/* Active state */
.current-menu-item a,
.current_page_item a {
  color: var(--color-accent) !important;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero,
.hero-section,
.home-hero,
.featured-hero,
section.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-xl) var(--spacing-md);
  padding-top: calc(var(--header-height) + var(--spacing-xl));
  overflow: hidden;
}

/* Hero background image */
.hero-image,
.hero-bg,
.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Hero overlay gradient */
.hero::before,
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 24, 21, 0.85) 0%,
    rgba(26, 24, 21, 0.4) 40%,
    rgba(26, 24, 21, 0.1) 70%,
    transparent 100%
  );
  z-index: 1;
}

/* Hero content */
.hero-content,
.hero__content,
.hero-text {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: #fff;
}

/* Category label */
.hero-label,
.category-label,
.hero-category,
.entry-category {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-bg-dark);
  background: var(--color-accent);
}

/* Hero title — NOUVELLE TYPO */
.hero-title,
.hero h1,
.hero__title,
.entry-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 var(--spacing-sm);
}

/* Hero excerpt */
.hero-excerpt,
.hero p,
.hero__excerpt {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 var(--spacing-md);
  max-width: 500px;
}

/* Hero CTA */
.hero-cta,
.hero a.button,
.read-story {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent) !important;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--color-accent);
  transition: all 0.2s ease;
}

.hero-cta:hover {
  color: #fff !important;
  border-bottom-color: #fff;
}

/* ========================================
   TYPOGRAPHY — Titres Articles
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

/* Section titles */
.section-title,
.archive-title,
.widget-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: var(--spacing-md);
}

/* Card titles */
.card-title,
.entry-title,
.post-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.card-title a,
.entry-title a,
.post-title a {
  color: inherit;
  text-decoration: none;
}

.card-title a:hover,
.entry-title a:hover {
  color: var(--color-accent);
}

/* ========================================
   CARDS — Style Magazine
   ======================================== */

.card,
.post-card,
article.post {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.card-image,
.post-thumbnail {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.card-image img,
.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-image img,
.card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.card-content,
.entry-content {
  padding: var(--spacing-sm);
}

/* Category labels on cards */
.card-category,
.cat-links a,
.entry-categories a {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  text-decoration: none;
}

/* ========================================
   CATEGORY GRID — Homepage
   ======================================== */

.categories-grid,
.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

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

@media (max-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.category-card,
.cat-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 24, 21, 0.7) 0%,
    rgba(26, 24, 21, 0.2) 50%,
    transparent 100%
  );
}

.category-card-title {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: #fff;
}

/* ========================================
   LABELS & BADGES
   ======================================== */

.label,
.badge,
.tag {
  display: inline-block;
  padding: 4px 12px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.label-featured,
.badge-featured {
  background: var(--color-accent);
  color: var(--color-bg-dark);
}

.label-outline {
  background: transparent;
  border: 1px solid currentColor;
}

/* ========================================
   VIEW ALL LINKS
   ======================================== */

.view-all,
.see-all,
.more-link {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}

.view-all:hover {
  color: var(--color-text);
}

.view-all::after {
  content: ' →';
}

/* ========================================
   RESPONSIVE HEADER
   ======================================== */

@media (max-width: 1200px) {
  .main-navigation a {
    padding: 0.5rem 0.75rem;
    font-size: 10px;
  }
}

@media (max-width: 1024px) {
  .site-header {
    background: rgba(26, 24, 21, 0.95) !important;
  }
  
  .main-navigation {
    display: none;
  }
  
  /* Mobile menu toggle */
  .menu-toggle {
    display: flex;
    color: #fff;
  }
}

/* ========================================
   STICKY HEADER (scroll)
   ======================================== */

.site-header.scrolled,
.header.is-sticky {
  position: fixed !important;
  background: rgba(26, 24, 21, 0.98) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ========================================
   DARK SECTIONS
   ======================================== */

.section-dark,
.newsletter-section,
.footer {
  background: var(--color-bg-dark);
  color: #fff;
}

.section-dark h2,
.section-dark h3,
.newsletter-section h2 {
  color: #fff;
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}
