@import url("tokens.css");

/* ========================================
   BLOG LAURA BALLO - CSS FACTORISÉ
   assets/css/styles.css

   ⚠️ CHARGEMENT REQUIS : tokens.css doit être chargé
   AVANT ce fichier dans le <head> HTML.
   ======================================== */

/* Variables locales au blog uniquement
   (pas de palette globale — voir tokens.css) */
:root {
  /* Nuances spécifiques au blog */
  --ivory: #FAF9F7;
  --sand: #E8E6E1;
  --slate: #3A3A3A;
  --muted: #7A7A7A;
  --beige-rose: #D4B5A8;
  --beige-almost-white: #F5F1ED;

  /* Alias vers les tokens globaux pour compatibilité du legacy CSS */
  --gray-brown: var(--warm-gray);
  --gold: var(--accent);
  --terracotta: var(--accent-dark);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation: voir nav.css */
/* Override nav pour pages blog (fond clair, pas de hero sombre) */
.nav {
  background: transparent;
  border-bottom: none;
}

.nav-logo img {
  filter: brightness(0) saturate(100%);
}

.nav-links a { color: var(--text-dark); }
.nav-links a:hover { color: var(--accent); }
.nav-burger span { background: var(--text-dark); }

@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}

/* ==================== BLOG HERO ==================== */
.blog-hero {
  padding: 180px 80px 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: 68px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 25px;
  letter-spacing: -2px;
  color: var(--black);
}

.blog-hero-subtitle {
  font-size: 21px;
  color: var(--gray-brown);
  line-height: 1.6;
  font-weight: 300;
  max-width: 700px;
  margin-bottom: 60px;
}

/* ==================== SEARCH ==================== */
.search-minimal {
  position: relative;
  max-width: 700px;
  margin-bottom: 40px;
}

.search-minimal input {
  width: 100%;
  padding: 18px 0;
  border: none;
  border-bottom: 1px solid var(--beige-rose);
  font-size: 17px;
  font-family: var(--font-article);
  outline: none;
  transition: border-color 0.3s;
  background: transparent;
  color: var(--black);
}

.search-minimal input:focus { border-bottom-color: var(--black); }

.search-minimal input::placeholder {
  color: var(--gray-brown);
  opacity: 0.5;
}

/* ==================== COLLECTIONS ==================== */
.collections-section {
  padding: 60px 80px;
  max-width: 1000px;
  margin: 0 auto;
  border-bottom: 1px solid var(--beige-almost-white);
}

.collections-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 30px;
  color: var(--black);
  letter-spacing: -0.5px;
}

.collections-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.collection-btn {
  padding: 14px 24px;
  background: var(--white);
  border: 1px solid var(--beige-rose);
  color: var(--black);
  font-size: 15px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 6px;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.collection-btn:hover,
.collection-btn.active {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

/* ==================== FEATURED HERO ==================== */
.featured-hero-section {
  padding: 80px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.featured-hero-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  text-decoration: none;
  align-items: center;
}

.featured-hero-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.6s;
}

.featured-hero-card:hover .featured-hero-image {
  transform: scale(1.02);
}

.featured-hero-content { padding: 40px 0; }

.featured-hero-tag {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
  font-weight: 600;
}

.featured-hero-title {
  font-family: var(--font-heading);
  font-size: 44px;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 20px;
  font-weight: 500;
  letter-spacing: -1px;
}

.featured-hero-excerpt {
  font-size: 19px;
  line-height: 1.7;
  color: var(--gray-brown);
  margin-bottom: 30px;
  font-weight: 300;
}

.featured-hero-meta {
  font-size: 14px;
  color: var(--gray-brown);
  margin-bottom: 25px;
}

.featured-hero-link {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.featured-hero-link::after {
  content: '→';
  transition: transform 0.3s;
}

.featured-hero-card:hover .featured-hero-link::after {
  transform: translateX(5px);
}

/* ==================== SITUATIONS ==================== */
.situations-module {
  margin-top: 40px;
  max-width: 700px;
}

.situations-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--black);
  letter-spacing: -0.5px;
}

.situations-subtitle {
  font-size: 16px;
  color: var(--gray-brown);
  margin-bottom: 35px;
  font-weight: 300;
}

.situations-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.situation-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 6px;
  text-decoration: none;
  color: var(--black);
  font-size: 16px;
  font-family: var(--font-article);
  transition: all 0.3s;
  cursor: pointer;
}

.situation-item:hover {
  border-color: var(--black);
  transform: translateX(5px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.situation-item::before {
  content: '→';
  margin-right: 15px;
  color: var(--gold);
  font-weight: 600;
  transition: transform 0.3s;
}

.situation-item:hover::before {
  transform: translateX(3px);
}

/* ==================== FEATURED SECTION ==================== */
.featured-section {
  padding: 100px 80px 60px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 50px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--beige-almost-white);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: -1px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.featured-card {
  text-decoration: none;
  display: block;
  transition: transform 0.3s;
}

.featured-card:hover { transform: translateY(-5px); }

.featured-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 25px;
  border-radius: 4px;
}

.featured-tag {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
}

.featured-title {
  font-family: var(--font-heading);
  font-size: 26px;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.featured-excerpt {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-brown);
  margin-bottom: 20px;
  font-weight: 300;
}

.featured-meta {
  font-size: 13px;
  color: var(--gray-brown);
  opacity: 0.7;
}

/* ==================== ARTICLES LIST ==================== */
.articles-section {
  padding: 60px 80px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.articles-section h2 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 50px;
  color: var(--black);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--beige-almost-white);
  letter-spacing: -1px;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.article-item {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 50px;
  text-decoration: none;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--beige-almost-white);
  transition: all 0.3s;
}

.article-item:last-child { border-bottom: none; }
.article-item:hover { transform: translateX(5px); }

.article-image-container {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.article-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.6s;
}

.article-item:hover .article-image { transform: scale(1.05); }

.article-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.article-date {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray-brown);
  margin-bottom: 15px;
  font-weight: 500;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.3;
  color: var(--black);
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: -1px;
}

.article-excerpt {
  font-size: 17px;
  line-height: 1.7;
  color: var(--gray-brown);
  margin-bottom: 25px;
  font-weight: 300;
}

.article-read-more {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.article-read-more::after {
  content: '→';
  transition: transform 0.3s;
}

.article-item:hover .article-read-more::after {
  transform: translateX(5px);
}

/* ==================== ARTICLE PAGE - HERO ==================== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 60px;
  background-color: var(--white);
}

.hero-content {
  max-width: 900px;
  text-align: center;
}

.hero-category {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 58px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 50px;
  letter-spacing: -1px;
}

.hero-excerpt {
  font-family: var(--font-article);
  font-size: 22px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 650px;
  margin: 0 auto 50px;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 1px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* ==================== ARTICLE CONTENT ==================== */
.content-section {
  padding: 100px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.section-content {
  font-family: var(--font-article);
  background-color: var(--ivory);
}

.section-content h2 {
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1.3;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.section-content p {
  margin-bottom: 30px;
  font-size: 21px;
  line-height: 1.9;
  color: var(--slate);
  font-weight: 300;
}

.section-content p.lead {
  font-size: 25px;
  line-height: 1.75;
  color: var(--text-dark);
  margin-bottom: 50px;
  font-weight: 400;
}

.section-content h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 500;
  margin: 60px 0 25px;
  color: var(--slate);
}

.pullquote {
  margin: 80px 0;
  padding: 50px 0;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  text-align: center;
}

.pullquote p {
  font-family: var(--font-heading);
  font-size: 32px;
  line-height: 1.5;
  color: var(--slate);
  font-weight: 500;
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
}

.full-image {
  margin: 80px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.full-image img {
  width: 100%;
  height: 65vh;
  object-fit: cover;
}

.image-caption {
  text-align: center;
  margin-top: 25px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-style: italic;
}

.insight-box {
  margin: 60px 0;
  padding: 50px;
  background-color: var(--sand);
  border-radius: 0;
}

.insight-box p {
  font-size: 21px;
  line-height: 1.8;
  color: var(--slate);
  margin: 0;
  font-weight: 400;
}

.transition-section {
  padding: 80px 60px;
  text-align: center;
  background-color: var(--white);
}

.transition-mark {
  font-size: 24px;
  color: var(--accent);
  letter-spacing: 20px;
}

/* ==================== AUTHOR SECTION ==================== */
.author-section {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 60px;
}

.author-card {
  padding: 60px;
  background-color: var(--warm-beige);
  text-align: center;
}

.author-card-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 30px;
  display: block;
}

.author-card-name {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--black);
  margin-bottom: 15px;
  font-weight: 600;
}

.author-card-bio {
  font-family: var(--font-article);
  font-size: 17px;
  line-height: 1.8;
  color: var(--warm-gray);
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn {
  padding: 14px 32px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background-color: var(--black);
  color: var(--white);
  border: 1px solid var(--black);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--black);
}

/* ==================== RELATED ARTICLES ==================== */
.related-articles {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 60px;
}

.related-articles h3 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--slate);
  text-align: center;
  margin-bottom: 80px;
  font-weight: 500;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

.article-card {
  text-decoration: none;
  display: block;
  transition: transform 0.3s ease;
}

.article-card:hover { transform: translateY(-8px); }

.article-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 25px;
}

.article-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 12px;
  background-color: var(--sand);
  color: var(--muted);
  border-radius: 20px;
}

.article-card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.3;
  color: var(--slate);
  margin-bottom: 12px;
  font-weight: 500;
}

.article-card-excerpt {
  font-family: var(--font-article);
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 15px;
}

.article-card-meta {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

/* Footer: voir footer.css */

/* ==================== CTA ACCOMPAGNEMENT (linking interne) ==================== */
.cta-accompagnement {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 60px;
}

.cta-accompagnement-inner {
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  padding: 60px 0;
  text-align: center;
}

.cta-accompagnement-label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: block;
  margin-bottom: 24px;
}

.cta-accompagnement-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.cta-accompagnement-text {
  font-family: var(--font-article);
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 32px;
  font-weight: 300;
}

.cta-accompagnement-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta-accompagnement-link svg { transition: transform 0.3s ease; }

.cta-accompagnement-link:hover { color: var(--accent); }

.cta-accompagnement-link:hover svg { transform: translateX(5px); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .featured-hero-card { grid-template-columns: 1fr; gap: 40px; }
  .featured-hero-image { height: 380px; }
  .featured-grid,
  .articles-grid { grid-template-columns: 1fr; gap: 60px; }
  .article-item { grid-template-columns: 1fr; gap: 30px; }
  .article-image { height: 320px; }
}

@media (max-width: 768px) {
  .blog-hero { padding: 140px 30px 60px; }
  .blog-hero h1 { font-size: 42px; }
  .collections-section,
  .featured-hero-section,
  .featured-section,
  .articles-section {
    padding-left: 30px;
    padding-right: 30px;
  }
  .featured-hero-title { font-size: 32px; }
  .article-title { font-size: 26px; }
  .hero { padding: 80px 40px; }
  .hero-title { font-size: 38px; }
  .content-section { padding: 60px 40px; }
  .section-content h2 { font-size: 32px; }
  .pullquote p { font-size: 24px; }
  .author-card { padding: 40px 30px; }
  .cta-accompagnement { padding: 0 40px; }
  .cta-accompagnement-inner { padding: 40px 0; }
  .cta-accompagnement-title { font-size: 26px; }
  .cta-accompagnement-text { font-size: 16px; }
}
