/* Composants : en-tête, boutons, accueil, cartes, formulaires, articles, pied de page. */

/* Logotype « epis◆ka » : le losange prend la place du « o ». */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-size: 1.5rem;
}
.wordmark .eps-symbol {
  width: .78em;
  height: .78em;
  margin: 0 1px;
  transform: translateY(.08em);
  flex: none;
}

/* Tissu ndop : voile indigo sur le motif, comme dans l'application. */
.cloth {
  background-color: var(--indigo);
  background-image:
    linear-gradient(rgba(42, 63, 158, .82), rgba(42, 63, 158, .82)),
    url("../img/brand/pattern-ndop.webp");
  background-size: auto, 220px 220px;
  color: #FFFFFF;
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 11, .88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; position: relative; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); margin-right: auto; padding: 6px 0; }
.brand:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.site-nav { display: flex; align-items: center; gap: var(--s-5); }
.menu-links { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.menu-links li { margin: 0; }
.menu-links a { color: var(--ink-muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; padding: 10px 0; display: inline-block; }
.menu-links a:hover, .menu-links a[aria-current="page"] { color: var(--ink); }
.menu-links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--palm); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.lang-switch { display: flex; gap: 2px; list-style: none; margin: 0; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-pill); }
.lang-switch li { margin: 0; }
.lang-switch a { display: block; padding: 5px 11px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 700; text-decoration: none; color: var(--ink-muted); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--ground); }

@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    left: calc(-1 * var(--gutter));
    right: calc(-1 * var(--gutter));
    top: 100%;
    background: var(--ground);
    border-bottom: 1px solid var(--line);
    padding: var(--s-3) var(--gutter) var(--s-5);
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-4);
  }
  .js .site-nav.is-open { display: flex; }
  .menu-links { flex-direction: column; gap: 0; }
  .menu-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); font-size: var(--fs-base); color: var(--ink); }
  .lang-switch { align-self: flex-start; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-block: var(--s-3); }
  .no-js .site-nav { flex-wrap: wrap; }
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r-md);
  border: 1px solid var(--palm);
  background: var(--palm);
  color: var(--on-palm);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-base);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--palm-hover); border-color: var(--palm-hover); color: var(--on-palm); }
.btn-lg { min-height: 52px; padding-inline: 28px; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-sm); }
.btn-ghost { background: rgba(15, 17, 23, .6); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-muted); color: var(--ink); }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.link-arrow { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { color: var(--palm); }

/* Boutons des magasins */
.store-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 7px 16px 7px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.15;
}
.store-btn small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-muted); letter-spacing: .02em; }
a.store-btn:hover { border-color: var(--ink-muted); color: var(--ink); }
.store-btn[aria-disabled="true"] { opacity: .62; cursor: not-allowed; }
.store-row-sm { margin-top: var(--s-4); }

/* Sections */
.section { padding-block: var(--s-8); }
.section-tight { padding-block: var(--s-7); }
.section-surface { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: var(--s-6); }
.section-head p { font-size: var(--fs-lg); color: var(--ink-muted); }
.section-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.section-head-row h2 { margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--palm);
  margin-bottom: var(--s-3);
}
.eyebrow-brass { color: var(--brass); }
.lead { font-size: var(--fs-lg); color: var(--ink-muted); }

/* Accueil : affiche en fond, dégradé vers le sol, comme l'application web */
.hero { position: relative; overflow: hidden; padding-bottom: var(--s-7); }
.hero-media, .hero-veil { position: absolute; left: 0; right: 0; top: 0; height: min(72vh, 520px); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-veil { background: linear-gradient(0deg, var(--ground) 0%, rgba(6, 7, 11, .55) 45%, rgba(6, 7, 11, .1) 75%); }
.hero-inner { position: relative; padding-top: min(40vh, 300px); display: grid; gap: var(--s-6); }
.hero-copy { max-width: 600px; }
.hero h1 { margin-bottom: var(--s-4); }
.hero .lead { color: #D4D7E0; margin-bottom: var(--s-5); max-width: 34em; }

.featured-card {
  align-self: end;
  background: rgba(15, 17, 23, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  max-width: 420px;
}
.featured-card p { color: #D4D7E0; font-size: var(--fs-sm); }
.featured-tag { display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); margin-bottom: var(--s-2); }
.featured-card .featured-title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); color: var(--ink); margin-bottom: var(--s-2); line-height: 1.2; }
.featured-card .featured-meta { color: var(--ink-muted); font-size: var(--fs-xs); }
.featured-link { font-weight: 700; text-decoration: none; }

@media (min-width: 900px) {
  .hero { min-height: 640px; display: flex; align-items: flex-end; padding-bottom: var(--s-8); }
  .hero-media, .hero-veil { height: 100%; }
  .hero-media img { object-position: center 25%; }
  .hero-veil {
    background:
      linear-gradient(90deg, rgba(6, 7, 11, .95) 0%, rgba(6, 7, 11, .6) 40%, transparent 70%),
      linear-gradient(0deg, var(--ground) 0%, transparent 35%);
  }
  .hero-inner { padding-top: 160px; grid-template-columns: minmax(0, 1fr) 360px; align-items: end; }
}

/* Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); counter-reset: none; }
.step {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.step p { color: var(--ink-muted); margin: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--palm);
  color: var(--on-palm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--s-4);
}
.step-num-brass { background: transparent; }
.step-num-brass img { width: 44px; height: 44px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

/* Grille d'affiches 9:16 */
.poster-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-3); }
@media (min-width: 640px) { .poster-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5) var(--s-4); } }
@media (min-width: 1000px) { .poster-grid { grid-template-columns: repeat(5, 1fr); } }
.poster-card { margin: 0; }
.poster-card a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; border-radius: var(--r-md); }
.poster-frame { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: var(--r-md); background: var(--surface-2); }
.poster-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.poster-card a:hover .poster-frame img { transform: scale(1.03); }
.poster-title { font-weight: 700; line-height: 1.25; margin-top: 4px; }
.poster-meta { font-size: var(--fs-xs); color: var(--ink-muted); }
.badge { position: absolute; top: 8px; left: 8px; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 700; color: var(--ground); }
.badge-new { background: var(--palm); }
.badge-free { background: var(--free); }

/* Cartes */
.grid { display: grid; gap: var(--s-4); }
.grid-2, .grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid { gap: var(--s-5); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--ink-muted); }
.card p:last-child { margin-bottom: 0; }
.why-grid .card { border-top: 3px solid var(--palm); }

/* Bandeau créateurs */
.creators-band {
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  display: grid;
  gap: var(--s-5);
  align-items: center;
  overflow: hidden;
}
.creators-band h2 { color: #FFFFFF; }
.creators-band p { color: #E6E9F5; font-size: var(--fs-lg); max-width: 36em; }
.creators-art { display: none; }
@media (min-width: 800px) {
  .creators-band { grid-template-columns: 1fr auto; padding: var(--s-7); }
  .creators-art { display: block; }
  .creators-art svg { width: 160px; height: 160px; }
}

/* Questions fréquentes */
.faq-wrap { max-width: 880px; }
.faq-list { display: grid; gap: var(--s-3); }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  cursor: pointer;
  font-weight: 700;
  font-size: var(--fs-base);
  list-style: none;
  border-radius: var(--r-md);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { flex: none; color: var(--palm); transition: transform .2s; }
.faq-item[open] summary svg { transform: rotate(180deg); }
.faq-item summary:hover { color: #FFFFFF; }
.faq-answer { padding: 0 var(--s-5) var(--s-4); }
.faq-answer p { color: var(--ink-muted); margin-bottom: var(--s-3); }
.faq-answer p:last-child { margin-bottom: 0; }

/* Bandeau d'appel final */
.cta-band {
  border-radius: var(--r-lg);
  padding: var(--s-6) var(--s-5);
  display: grid;
  gap: var(--s-4);
}
.cta-band h2 { color: #FFFFFF; font-size: var(--fs-2xl); margin-bottom: var(--s-2); }
.cta-band p { color: #E6E9F5; margin: 0; }
.cta-band .store-row { margin-top: var(--s-4); }
.cta-band .store-btn { background: rgba(6, 7, 11, .55); border-color: rgba(255, 255, 255, .25); }
@media (min-width: 900px) {
  .cta-band { grid-template-columns: 1fr auto; align-items: center; padding: var(--s-7); }
  .cta-actions { text-align: right; }
  .cta-actions .store-row { justify-content: flex-end; }
}

/* Pages intérieures */
.page-head { padding-block: var(--s-7) var(--s-5); }
.page-head h1 { font-size: var(--fs-3xl); }
.page-head .lead { margin-bottom: 0; }
.page-head-cloth { padding-block: var(--s-7); margin-bottom: var(--s-4); }
.page-head-cloth .lead { color: #E6E9F5; }
.breadcrumb { font-size: var(--fs-sm); color: var(--ink-muted); margin-bottom: var(--s-3); }
.breadcrumb a { color: var(--ink-muted); }
.post-meta { font-size: var(--fs-sm); color: var(--ink-muted); margin-top: var(--s-4); }

.prose { padding-bottom: var(--s-7); }
.prose h2 { font-size: var(--fs-2xl); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.prose p, .prose li { color: #D4D7E0; }
.prose > :first-child { margin-top: 0; }

.feature-media { margin-bottom: var(--s-6); }
.feature-media img { width: 100%; max-height: 480px; object-fit: cover; object-position: center 30%; border-radius: var(--r-lg); }

/* Articles */
.post-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.post-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.post-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.post-body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.post-card h2, .post-card h3 { font-size: var(--fs-lg); margin: 0; line-height: 1.3; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--palm); }
.post-card p { margin: 0; font-size: var(--fs-sm); }
.tag { align-self: flex-start; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brass); text-decoration: none; }

.cat-nav { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0 0 var(--s-6); }
.cat-nav li { margin: 0; }
.cat-nav a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--ink-muted); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; }
.cat-nav a:hover { color: var(--ink); border-color: var(--ink-muted); }
.cat-nav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }

.pagination-wrap { margin-top: var(--s-6); }
.pagination-wrap .nav-links { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.pagination-wrap .page-numbers { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.pagination-wrap .page-numbers.current { background: var(--palm); border-color: var(--palm); color: var(--on-palm); }

/* Formulaires */
.form { display: grid; gap: var(--s-4); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-5); margin-bottom: var(--s-6); }
@media (min-width: 700px) { .form-card { padding: var(--s-6); } }
.form-fields { display: grid; gap: var(--s-4); }
.field-row { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: var(--fs-sm); color: var(--ink); }
.optional { font-weight: 400; color: var(--ink-muted); }
.field-hint { font-size: var(--fs-xs); color: var(--ink-muted); margin: 0; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(242, 193, 78, .35); }
.field input::placeholder { color: #6E7384; }
.field-check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-muted); }
.field-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--palm); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { border: 1px solid var(--line); border-left: 4px solid var(--brass); background: var(--surface); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: var(--s-5) 0; }
.notice p { margin: 0; color: var(--ink); }
.notice-ok { border-left-color: var(--free); }
.notice-error { border-left-color: var(--danger); }

/* Pied de page */
.site-footer { background: var(--surface); margin-top: var(--s-7); }
.cloth-strip {
  height: 10px;
  background-color: var(--indigo);
  background-image: linear-gradient(rgba(42, 63, 158, .82), rgba(42, 63, 158, .82)), url("../img/brand/pattern-ndop.webp");
  background-size: auto, 110px 110px;
}
.footer-grid { display: grid; gap: var(--s-6); padding-block: var(--s-7) var(--s-6); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--ink-muted); font-size: var(--fs-sm); max-width: 30em; margin-top: var(--s-4); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--s-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer nav a { display: inline-block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.site-footer nav a:hover { color: var(--palm); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-5); border-top: 1px solid var(--line); padding-block: var(--s-5); font-size: var(--fs-xs); color: var(--ink-muted); }
.footer-bottom p { margin: 0; }
