/* Cahiers-Étrangers — design neumorphique sombre */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/df3745c3-92d2-4bc9-a476-28c142356c1d.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/2c429ee5-291e-4e6f-a4d9-d7f232764c36.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/f43461c7-eb18-458a-91ef-06ac6d32036c.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/84ba252b-74a3-4a1c-8f4d-30ec06426d37.woff2') format('woff2');
}

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

body {
  font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #14161a;
  color: #e8e6e1;
  line-height: 1.5;
  min-height: 100vh;
}

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

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px 100px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 0 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f2f0ea;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 7px rgba(0,0,0,.5), -3px -3px 7px rgba(255,255,255,.03);
}

.logo-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.logo-text {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1c1f26;
  border-radius: 16px;
  padding: 6px;
  box-shadow: inset 4px 4px 9px rgba(0,0,0,.5), inset -4px -4px 9px rgba(255,255,255,.03);
}

.site-nav a {
  padding: 9px 16px;
  border-radius: 11px;
  font-size: 12.5px;
  color: #c7c9cd;
  transition: background .2s, color .2s;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: #262a33;
  color: #e8e6e1;
}

.btn-adherer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #14161a;
  background: #ff8177;
  padding: 13px 22px;
  border-radius: 12px;
  box-shadow: 5px 5px 12px rgba(255,129,119,.18);
  transition: background .2s;
}

.btn-adherer:hover { background: #ffa39c; }

.hero {
  padding: 34px 0 60px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.hero-tagline {
  font-family: 'Spectral', serif;
  font-style: italic;
  color: #8b9099;
  font-size: 14px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 600;
  margin: 0 0 24px;
  letter-spacing: -.015em;
}

.hero-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: #9ba0a7;
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #e8e6e1;
  background: #1c1f26;
  padding: 15px 24px;
  border-radius: 14px;
  box-shadow: 7px 7px 15px rgba(0,0,0,.5), -7px -7px 15px rgba(255,255,255,.035);
  transition: box-shadow .2s;
}

.btn-primary:hover {
  box-shadow: inset 4px 4px 9px rgba(0,0,0,.55), inset -4px -4px 9px rgba(255,255,255,.03);
}

.btn-ghost {
  font-size: 12px;
  color: #8b9099;
  padding: 15px 6px;
  transition: color .2s;
}

.btn-ghost:hover { color: #c7c9cd; }

.featured-card {
  background: #1c1f26;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 8px 8px 18px rgba(0,0,0,.5), -8px -8px 18px rgba(255,255,255,.03);
  transition: box-shadow .2s, transform .2s;
}

a.featured-card {
  display: block;
  cursor: pointer;
}

a.featured-card:hover {
  transform: translateY(-2px);
  box-shadow: 10px 10px 22px rgba(0,0,0,.55), -8px -8px 18px rgba(255,255,255,.04);
}

a.featured-card:hover .featured-quote {
  color: #ff8177;
}

a.featured-card:hover .featured-read {
  color: #ff8177;
}

.featured-label {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6f757d;
  margin-bottom: 14px;
}

.featured-quote {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  color: #e8e6e1;
  margin-bottom: 16px;
}

.featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: #8b9099;
}

.featured-read {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6f757d;
  transition: color .2s;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8177;
  box-shadow: 0 0 8px 2px rgba(255,129,119,.5);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8b9099;
  font-weight: 600;
  margin: 0 0 22px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.section-hint {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 13px;
  color: #6f757d;
}

.constellation {
  position: relative;
  height: 420px;
  background: #1c1f26;
  border-radius: 24px;
  margin-top: 20px;
  box-shadow: inset 6px 6px 14px rgba(0,0,0,.5), inset -6px -6px 14px rgba(255,255,255,.025);
  overflow: hidden;
}

.constellation svg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #22262f;
  box-shadow: 4px 4px 9px rgba(0,0,0,.5), -4px -4px 9px rgba(255,255,255,.03);
  cursor: pointer;
  transition: transform .2s;
}

.star:hover { transform: scale(1.15); }

.star-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #ff8177;
  opacity: .35;
  box-shadow: 0 0 14px 4px rgba(255,129,119,.35);
}

.star:hover .star-glow { opacity: .9; }

.star-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  background: #22262f;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 8px 8px 18px rgba(0,0,0,.55), -8px -8px 18px rgba(255,255,255,.03);
  z-index: 5;
}

.star:hover .star-tooltip { display: block; }

.star-tag {
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ff8177;
  margin-bottom: 6px;
}

.star-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.star-author { font-size: 11px; color: #8b9099; }

.textes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.texte-card {
  background: #1c1f26;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 7px 7px 15px rgba(0,0,0,.5), -7px -7px 15px rgba(255,255,255,.03);
  transition: transform .2s;
}

.texte-card:hover { transform: translateY(-2px); }

.texte-meta {
  font-size: 11px;
  color: #6f757d;
  margin-bottom: 14px;
}

.texte-title {
  font-family: 'Spectral', serif;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 16px;
}

.texte-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #8b9099;
}

.manifeste {
  padding: 80px 0 40px;
  display: grid;
  grid-template-columns: .32fr .68fr;
  gap: 56px;
  align-items: start;
  border-top: 1px solid rgba(255,255,255,.06);
}

.manifeste-logo {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  background: #f2f0ea;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 7px 7px 15px rgba(0,0,0,.5), -7px -7px 15px rgba(255,255,255,.03);
}

.manifeste-logo img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.manifeste-lead {
  font-family: 'Spectral', serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.65;
  color: #dcdad5;
  margin: 0 0 20px;
}

.manifeste-body {
  font-size: 13.5px;
  line-height: 1.75;
  color: #8b9099;
  max-width: 640px;
}

.site-footer {
  margin-top: 70px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #6f757d;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-admin-link {
  color: #555a62;
  transition: color .2s;
}

.footer-admin-link:hover {
  color: #8b9099;
}

.section-block { padding: 40px 0 30px; }
.section-block.textes { padding: 70px 0 30px; }

/* Page article */
.post-header { padding: 40px 0 30px; }
.post-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 16px;
}
.post-meta {
  font-size: 12px;
  color: #8b9099;
  margin-bottom: 40px;
}
.post-excerpt {
  font-family: 'Spectral', serif;
  font-size: 18px;
  line-height: 1.65;
  color: #9ba0a7;
  font-style: italic;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.post-content {
  font-size: 15px;
  line-height: 1.85;
  color: #c7c9cd;
  max-width: 720px;
}
.post-content p { margin-bottom: 1.25em; }
.post-content h2, .post-content h3 {
  font-family: 'Spectral', serif;
  margin: 2em 0 .8em;
  color: #e8e6e1;
  line-height: 1.25;
}
.post-content h2 { font-size: 1.5em; }
.post-content h3 { font-size: 1.25em; }
.post-content a { color: #ff8177; text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { color: #ffa39c; }
.post-content strong, .post-content b { color: #e8e6e1; font-weight: 600; }
.post-content em, .post-content i { font-family: 'Spectral', serif; }
.post-content ul, .post-content ol { margin: 1em 0 1.25em 1.4em; }
.post-content li { margin-bottom: .4em; }
.post-content blockquote {
  border-left: 3px solid #ff8177;
  padding: 0 0 0 20px;
  margin: 1.5em 0;
  font-family: 'Spectral', serif;
  font-style: italic;
  color: #9ba0a7;
}
.post-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 1em 0; }
.post-content hr { border: none; border-top: 1px solid rgba(255,255,255,.08); margin: 2em 0; }

.pagination {
  display: flex;
  gap: 12px;
  margin-top: 40px;
  font-size: 13px;
}
.pagination a {
  padding: 10px 16px;
  background: #1c1f26;
  border-radius: 10px;
  color: #c7c9cd;
}
.pagination a:hover { background: #262a33; }
.pagination .current {
  padding: 10px 16px;
  color: #ff8177;
}

.search-form {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin-bottom: 8px;
}

.search-form input[type=search] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 14px;
  border: none;
  background: #1c1f26;
  color: #e8e6e1;
  font-size: 14px;
  box-shadow: inset 4px 4px 9px rgba(0,0,0,.5), inset -4px -4px 9px rgba(255,255,255,.03);
}

.search-form input[type=search]:focus {
  outline: 2px solid rgba(255,129,119,.4);
}

.search-form .btn-primary {
  white-space: nowrap;
}

.error-page {
  text-align: center;
  padding: 120px 20px;
}
.error-page h1 { font-size: 48px; margin-bottom: 16px; color: #ff8177; }

@media (max-width: 900px) {
  .hero, .manifeste { grid-template-columns: 1fr; }
  .container { padding: 0 24px 60px; }
}
