/* =============================================
   ROSNY EN VUE — Magazine Lifestyle Local
   CSS Grid + Flexbox pur — Archetype A (Split 60/40)
   ============================================= */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

/* --- Variables --- */
:root {
  --primary:   #2D6A4F;
  --secondary: #F4F1E8;
  --accent:    #E76F51;
  --text:      #1A1A2E;
  --text-light:#5A5A72;
  --border:    #DDD8C4;
  --white:     #FFFFFF;
  --nav-height: 88px;
  --ff-serif:  'Playfair Display', Georgia, serif;
  --ff-sans:   'Source Sans 3', system-ui, sans-serif;
  --radius:    4px;
  --shadow:    0 2px 16px rgba(26,26,46,.08);
  --shadow-lg: 0 8px 40px rgba(26,26,46,.14);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}
.container--wide { max-width: 1400px; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
}
.nav-logo img {
  height: 72px;
  width: auto;
  display: block;
}
.nav-menu-wrap { display: flex; align-items: center; gap: 8px; }
.nav-menu {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-menu a {
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.88);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-menu a:hover,
.nav-menu a.active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu-wrap {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--primary);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .nav-menu-wrap.open { display: flex; }
  .nav-menu { flex-direction: column; width: 100%; gap: 2px; }
  .nav-menu a { display: block; width: 100%; }
  .nav-logo img { height: 52px; }
  :root { --nav-height: 72px; }
}

/* =============================================
   INDEX — Archetype A : Split 60/40
   ============================================= */
.hero-split {
  display: grid;
  grid-template-columns: 60fr 40fr;
  min-height: 80vh;
  background: var(--secondary);
  overflow: hidden;
}
.hero-split__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 56px 72px 64px;
  position: relative;
}
.hero-split__left::before {
  content: '';
  position: absolute;
  top: 48px; left: 40px;
  width: 3px; height: calc(100% - 96px);
  background: var(--accent);
  border-radius: 2px;
}
.hero-baseline {
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-h1 {
  font-family: var(--ff-serif);
  font-size: clamp(42px, 5.5vw, 82px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--text);
  text-align: left;
  margin-bottom: 28px;
}
.hero-intro {
  font-size: 18px;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 520px;
}
.hero-split__right {
  position: relative;
  overflow: hidden;
}
.hero-split__right .hero-thumb img,
.hero-split__right .hero-thumb {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

/* Showcase strip */
.showcase-section {
  padding: 80px 0;
  background: var(--white);
}
.showcase-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 16px;
}
.showcase-title {
  font-family: var(--ff-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}
.showcase-link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: opacity .2s;
}
.showcase-link:hover { opacity: .7; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Content wide section */
.content-wide {
  background: var(--primary);
  padding: 72px 0;
  color: var(--white);
}
.content-wide h2 {
  font-family: var(--ff-serif);
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--white);
}
.content-wide p {
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255,255,255,.8);
  max-width: 800px;
}
.content-wide a { color: var(--accent); text-decoration: underline; }

/* =============================================
   POST-LOOP — Carte éditoriale
   ============================================= */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.post-card__thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--secondary);
}
.post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.post-card__cat {
  color: var(--white);
  background: var(--primary);
  padding: 3px 10px;
  border-radius: 2px;
  font-size: 11px;
}
.post-card__date { color: var(--text-light); }
.post-card__title {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  transition: color .2s;
}
.post-card:hover .post-card__title { color: var(--primary); }
.post-card__excerpt {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
  flex: 1;
}
.post-card__read {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.post-card__read::after { content: '→'; }

/* =============================================
   POST-LIST
   ============================================= */
.list-hero {
  background: var(--text);
  padding: 64px 0 56px;
  border-bottom: 4px solid var(--accent);
}
.list-hero__label {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--accent);
  margin-bottom: 14px;
}
.list-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  color: var(--white);
  text-align: left;
  line-height: 1.1;
}
.list-main {
  padding: 64px 0 96px;
  background: var(--secondary);
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pagination {
  margin-top: 64px;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* =============================================
   POST — Article
   ============================================= */
.post-hero {
  background: var(--secondary);
  padding: 56px 0 0;
}
.post-breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
}
.post-breadcrumb a { color: var(--primary); font-weight: 600; }
.post-breadcrumb a:hover { color: var(--accent); }
.post-breadcrumb span { margin: 0 8px; color: var(--border); }

.post-header__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.post-header__cat {
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 4px 12px;
  border-radius: 2px;
}
.post-header__date {
  font-size: 13px;
  color: var(--text-light);
}
.post-header__reading {
  font-size: 13px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
}
.post-h1 {
  font-family: var(--ff-serif);
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  text-align: left;
  margin-bottom: 32px;
}
.post-thumb {
  margin-top: 40px;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  max-height: 520px;
}
.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Article body */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 64px;
  align-items: start;
  padding: 64px 0 96px;
  background: var(--white);
}
.post-content { min-width: 0; }
.post-content h2 {
  font-family: var(--ff-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 48px 0 18px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
}
.post-content h3 {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 36px 0 14px;
}
.post-content p { margin-bottom: 20px; font-size: 17px; line-height: 1.85; }
.post-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.post-content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: var(--secondary);
  border-left: 4px solid var(--primary);
  font-family: var(--ff-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text);
}
.post-content ul, .post-content ol {
  margin: 20px 0 20px 24px;
}
.post-content li { margin-bottom: 8px; }
.post-content img { border-radius: 4px; margin: 28px 0; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
}
.post-content th {
  background: var(--primary);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
}
.post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

/* Sidebar */
.post-sidebar { position: sticky; top: calc(var(--nav-height) + 24px); }
.sidebar-toc {
  background: var(--secondary);
  border-radius: 6px;
  padding: 28px 24px;
  margin-bottom: 28px;
}
.sidebar-toc__title {
  font-family: var(--ff-sans);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--primary);
  margin-bottom: 16px;
}
.sidebar-widget {
  background: var(--secondary);
  border-radius: 6px;
  padding: 28px 24px;
}
.sidebar-widget__title {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
}

/* Signatory */
.post-signatory {
  margin-top: 56px;
  padding: 32px;
  background: var(--secondary);
  border-radius: 6px;
  border-left: 4px solid var(--primary);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.post-signatory__info { flex: 1; }
.post-signatory__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 6px;
}
.post-signatory__name {
  font-family: var(--ff-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.post-signatory__bio { font-size: 15px; color: var(--text-light); }

/* Related */
.related-section {
  padding: 64px 0;
  background: var(--secondary);
  border-top: 1px solid var(--border);
}
.related-title {
  font-family: var(--ff-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 36px;
  text-align: left;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,.65);
  padding: 48px 0 32px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.footer-brand {
  font-family: var(--ff-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-tagline { font-size: 13px; color: rgba(255,255,255,.5); }
.footer-legal { text-align: right; font-size: 12px; }
.footer-legal a { color: rgba(255,255,255,.55); text-decoration: underline; }

/* =============================================
   UTILITIES
   ============================================= */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .post-layout { grid-template-columns: 1fr; gap: 48px; }
  .post-sidebar { position: static; }
  .showcase-grid, .post-grid, .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split__right { display: none; }
  .hero-split__left {
    padding: 56px 24px 56px 40px;
  }
  .hero-split__left::before { left: 20px; }
  .showcase-grid, .post-grid, .related-grid { grid-template-columns: 1fr; }
  .showcase-header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: left; }
  .footer-legal { text-align: left; }
  .post-signatory { flex-direction: column; }
}
@media (max-width: 480px) {
  .hero-split__left { padding: 40px 20px 40px 32px; }
  .showcase-section { padding: 48px 0; }
  .list-main { padding: 40px 0 64px; }
  .post-layout { padding: 40px 0 64px; }
}
