:root {
  --pleine-mer: #002C46;
  --or-solaire: #FFD034;
  --text: #333;
  --text-light: #666;
  --bg: #f8f9fa;
  --white: #fff;
}

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

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

h1, h2, h3, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--pleine-mer);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light);
  padding: 8px 4px;
  transition: color .2s;
}

.header-nav a:hover {
  color: var(--pleine-mer);
}

.nav-separator {
  width: 1px;
  height: 16px;
  background: rgba(0,0,0,.15);
}

.btn-subscribe {
  background: var(--or-solaire);
  color: var(--pleine-mer);
  padding: 10px 20px;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}

.btn-subscribe:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,208,52,.4);
}

.header-wave {
  line-height: 0;
}

.header-wave svg {
  width: 100%;
  height: 20px;
}

/* HERO */
.hero-player {
  background: linear-gradient(135deg, var(--pleine-mer), #0a4a6e);
  padding: 48px 24px;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  background: var(--or-solaire);
  color: var(--pleine-mer);
}

.hero-badge.interview {
  background: #3b82f6;
  color: var(--white);
}

.hero-badge.hebdo {
  background: var(--or-solaire);
  color: var(--pleine-mer);
}

.hero-badge.stories {
  background: #10b981;
  color: var(--white);
}

.hero-title {
  font-size: 28px;
  margin: 0 0 8px;
  line-height: 1.3;
}

.hero-meta {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  margin: 0 0 24px;
}

.hero-embed {
  background: rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 4px;
}

.hero-embed iframe {
  width: 100%;
  min-height: 180px;
  border: none;
  border-radius: 10px;
}

.hero-embed figure,
.hero-embed .kg-card {
  margin: 0;
}

.hero-embed p,
.hero-embed strong,
.hero-embed hr {
  display: none !important;
}

/* CTA */
.cta-subscribe {
  background: var(--pleine-mer);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-text {
  color: rgba(255,255,255,.85);
  font-size: 14px;
}

.cta-btn {
  background: var(--or-solaire);
  color: var(--pleine-mer);
  padding: 10px 20px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
}

/* FILTRES */
.filter-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  margin: 32px auto;
  max-width: 600px;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.filter-pill {
  padding: 8px 16px;
  border-radius: 12px;
  color: var(--text-light);
  font-size: 13px;
  font-weight: 500;
}

.filter-pill:hover {
  background: rgba(0,0,0,.05);
}

.filter-pill.active {
  background: var(--pleine-mer);
  color: var(--white);
}

.filter-separator {
  width: 1px;
  height: 20px;
  background: rgba(0,0,0,.1);
  align-self: center;
}

/* POST FEED */
.post-feed {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* POST CARD */
.post-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
}

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

.post-card-link {
  display: flex;
  flex-direction: row;
}

.post-card-image {
  position: relative;
  aspect-ratio: 3/4;
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
  margin: 0;
}

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

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

.post-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--pleine-mer), #3b82f6);
  opacity: 0;
  transition: opacity .3s;
}

.post-card:hover .post-card-overlay {
  opacity: .25;
}

.post-card.tag-interview .post-card-overlay {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.post-card.tag-hebdo .post-card-overlay {
  background: linear-gradient(135deg, var(--or-solaire), #e6b800);
}

.post-card.tag-stories .post-card-overlay {
  background: linear-gradient(135deg, #10b981, #059669);
}

.post-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 52px;
  height: 52px;
  background: var(--or-solaire);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
  z-index: 2;
}

.post-card-play svg {
  width: 22px;
  height: 22px;
  fill: var(--pleine-mer);
  margin-left: 3px;
}

.post-card:hover .post-card-play {
  transform: translate(-50%, -50%) scale(1);
}

.post-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  min-width: 0;
}

.post-card-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
  background: var(--pleine-mer);
  color: var(--white);
  width: fit-content;
}

.post-card-badge.interview {
  background: #3b82f6;
}

.post-card-badge.hebdo {
  background: var(--or-solaire);
  color: var(--pleine-mer);
}

.post-card-badge.stories {
  background: #10b981;
}

.post-card-title {
  font-size: 20px;
  margin: 0 0 8px;
  line-height: 1.35;
  color: var(--pleine-mer);
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-light);
  margin: 0 0 12px;
  line-height: 1.6;
}

.post-card-meta {
  font-size: 12px;
  color: #999;
}

/* TAG HEADER */
.tag-header {
  background: linear-gradient(135deg, var(--pleine-mer), #0a4a6e);
  padding: 48px 24px;
  text-align: center;
  color: var(--white);
}

.tag-header.tag-interview {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.tag-header.tag-hebdo {
  background: linear-gradient(135deg, var(--or-solaire), #e6b800);
  color: var(--pleine-mer);
}

.tag-header.tag-stories {
  background: linear-gradient(135deg, #10b981, #059669);
}

.tag-title {
  font-size: 32px;
  margin: 0 0 8px;
}

.tag-description {
  font-size: 16px;
  opacity: .8;
  margin: 0 0 12px;
}

.tag-count {
  font-size: 14px;
  opacity: .6;
}

/* SINGLE POST */
.post {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px;
}

.post-header {
  text-align: center;
  margin-bottom: 32px;
}

.post-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 16px;
  background: var(--pleine-mer);
  color: var(--white);
}

.post-badge.interview {
  background: #3b82f6;
}

.post-badge.hebdo {
  background: var(--or-solaire);
  color: var(--pleine-mer);
}

.post-badge.stories {
  background: #10b981;
}

.post-title {
  font-size: 32px;
  margin: 0 0 12px;
  line-height: 1.3;
  color: var(--pleine-mer);
}

.post-meta {
  color: #999;
  font-size: 14px;
}

.post-image {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
}

.post-content {
  font-size: 17px;
  line-height: 1.8;
}

.post-content iframe {
  width: 100%;
  min-height: 180px;
  border: none;
  border-radius: 12px;
  margin: 24px 0;
}

.post-content p {
  margin: 0 0 24px;
}

.post-content h2,
.post-content h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--pleine-mer);
  margin: 48px 0 16px;
}

.post-content a {
  color: #3b82f6;
}

.post-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #eee;
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.post-tag {
  padding: 6px 12px;
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-light);
}

/* POST NAV */
.post-nav {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 48px;
  display: flex;
  gap: 24px;
}

.post-nav-prev,
.post-nav-next {
  flex: 1;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.post-nav-next {
  text-align: right;
}

.post-nav-label {
  display: block;
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
}

.post-nav-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--pleine-mer);
}

/* PAGE */
.page {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px 24px;
}

.page-full {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-size: 32px;
  margin: 0;
  color: var(--pleine-mer);
}

.page-feature-image {
  margin-top: 24px;
  border-radius: 12px;
  overflow: hidden;
}

.page-content {
  font-size: 17px;
  line-height: 1.8;
}

/* PAGINATION */
.pagination {
  max-width: 700px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.pagination-prev,
.pagination-next {
  display: inline-block;
  padding: 10px 20px;
  background: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  color: var(--pleine-mer);
}

.pagination-prev:hover,
.pagination-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}

.pagination-info {
  color: #999;
  font-size: 14px;
}

/* FOOTER */
.site-footer {
  background: var(--pleine-mer);
  padding: 48px 24px 32px;
  color: var(--white);
}

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-nav a {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--or-solaire);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-legal a {
  color: rgba(255,255,255,.5);
  font-size: 12px;
}

.footer-copy {
  color: rgba(255,255,255,.4);
  font-size: 12px;
  margin: 0;
}

/* ERROR */
.error-page {
  max-width: 500px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.error-code {
  font-family: 'Montserrat', sans-serif;
  font-size: 120px;
  font-weight: 700;
  color: var(--pleine-mer);
  margin: 0;
  line-height: 1;
}

.error-message {
  font-size: 20px;
  color: var(--text-light);
  margin: 16px 0 32px;
}

.error-link {
  color: #3b82f6;
  font-weight: 500;
}

/* KOENIG EDITOR - REQUIRED */
.kg-width-wide {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.kg-width-full {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-width-full img {
  width: 100%;
}

.kg-image-card,
.kg-gallery-card,
.kg-embed-card,
.kg-video-card {
  margin: 24px 0;
}

.kg-image-card img {
  border-radius: 12px;
}

.kg-bookmark-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: inherit;
}

.kg-bookmark-content {
  flex: 1;
  padding: 20px;
}

.kg-bookmark-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  margin-bottom: 8px;
}

.kg-bookmark-description {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.kg-bookmark-metadata {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #999;
}

.kg-bookmark-thumbnail {
  width: 200px;
  flex-shrink: 0;
}

.kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MOBILE */
@media (max-width: 768px) {
  .header-inner {
    padding: 12px 16px;
  }
  
  .header-nav {
    display: none;
  }
  
  .header-wave svg {
    height: 12px;
  }
  
  .hero-player {
    padding: 32px 16px;
  }
  
  .hero-title {
    font-size: 22px;
  }
  
  .cta-subscribe {
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
  }
  
  .filter-nav {
    margin: 24px 16px;
    padding: 10px 12px;
    gap: 6px;
  }
  
  .filter-pill {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .filter-separator {
    display: none;
  }
  
  .post-feed {
    padding: 0 16px 40px;
    gap: 24px;
  }
  
  .post-card-link {
    flex-direction: row;
  }
  
  .post-card-image {
    width: 120px;
    aspect-ratio: 3/4;
  }
  
  .post-card-play {
    width: 40px;
    height: 40px;
  }
  
  .post-card-play svg {
    width: 18px;
    height: 18px;
  }
  
  .post-card-content {
    padding: 16px;
  }
  
  .post-card-title {
    font-size: 16px;
  }
  
  .post-card-excerpt {
    display: none;
  }
  
  .post-title {
    font-size: 26px;
  }
  
  .post-nav {
    flex-direction: column;
    padding: 0 16px 32px;
  }
  
  .post-nav-next {
    text-align: left;
  }
  
  .footer-nav {
    gap: 16px;
  }
}
