/* NIHONGO DX7 — Site vitrine FR V3
   Direction artistique :
   - site vitrine pro
   - identité RPG pixel/anime
   - utilisation des vrais écrans et screenshots du jeu
*/

:root {
  --ink: #0b122d;
  --ink-2: #111b45;
  --deep: #070b1f;
  --blue: #2567ff;
  --blue-2: #42c8ff;
  --pink: #ff3f9d;
  --yellow: #ffd34f;
  --cream: #fff7e6;
  --paper: #fffdf7;
  --muted: #5d668a;
  --line: #111833;
  --soft-line: rgba(17, 24, 51, 0.18);
  --shadow-hard: 7px 7px 0 var(--line);
  --shadow-soft: 0 24px 80px rgba(16, 25, 60, 0.18);
  --radius: 22px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(66, 200, 255, 0.26), transparent 30rem),
    radial-gradient(circle at 90% 18%, rgba(255, 63, 157, 0.18), transparent 24rem),
    linear-gradient(180deg, #eaf9ff 0%, var(--cream) 38%, #fff 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background-image:
    linear-gradient(rgba(17,24,51,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,51,0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 82%);
}

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

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1200;
  height: 5px;
  width: 0%;
  background: linear-gradient(90deg, var(--pink), var(--yellow), var(--blue-2));
  box-shadow: 0 2px 0 rgba(0,0,0,.22);
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: min(calc(var(--max) + 48px), 100%);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .2s ease, box-shadow .2s ease, border .2s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 253, 247, 0.92);
  border: 3px solid var(--line);
  border-top: 0;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 12px 0 rgba(17,24,51,.08);
  backdrop-filter: blur(14px);
}

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

.brand-kanji {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  border: 3px solid var(--line);
  box-shadow: 5px 5px 0 var(--line);
  font-weight: 950;
  font-size: 24px;
}

.brand strong {
  display: block;
  font-size: 17px;
  letter-spacing: .05em;
  font-weight: 950;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 14px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: transform .18s ease, background .18s ease;
}

.site-nav a:hover {
  transform: translateY(-2px);
  background: white;
}

.site-nav .nav-play {
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid var(--line);
  background: white;
  box-shadow: 4px 4px 0 var(--line);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 3px;
  margin: 4px auto;
  background: var(--line);
}

/* COMMON */
.section,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.section-title {
  max-width: 860px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-title h2,
.split-head h2,
.how-card h2,
.newsletter-card h2,
.guide-copy h2,
.guide-final-cta h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: .98;
  letter-spacing: -.05em;
}

.section-title p,
.split-head p,
.how-card p,
.newsletter-card p,
.guide-copy p,
.guide-hero-content p,
.hero-lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.pixel-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--yellow);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 950;
  text-shadow: 2px 2px 0 rgba(0,0,0,.28);
}

.pixel-tag.dark {
  color: var(--blue);
  text-shadow: none;
}

.pixel-tag span {
  width: 12px;
  height: 12px;
  background: currentColor;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 rgba(17,24,51,.22);
}

.btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 3px solid var(--line);
  border-radius: 14px;
  font-weight: 950;
  transition: transform .16s ease, box-shadow .16s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translate(-2px, -2px);
}

.btn-primary {
  color: var(--ink);
  background: var(--yellow);
  box-shadow: var(--shadow-hard);
}

.btn-secondary {
  color: white;
  background: var(--blue);
  box-shadow: var(--shadow-hard);
}

.btn-ghost {
  color: white;
  background: rgba(10, 18, 45, .62);
  border-color: rgba(255,255,255,.78);
  box-shadow: 5px 5px 0 rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100vh - 80px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 6px solid var(--line);
}

.hero-bg,
.guide-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-bg img,
.guide-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,8,28,.88) 0%, rgba(3,8,28,.50) 42%, rgba(3,8,28,.18) 100%),
    linear-gradient(180deg, rgba(3,8,28,.12), rgba(3,8,28,.66));
}

.hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  padding: 96px 0 60px;
  color: white;
}

.hero h1,
.guide-hero h1 {
  max-width: 790px;
  margin: 0 0 24px;
  color: white;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: .88;
  letter-spacing: -.065em;
  text-shadow: 5px 5px 0 rgba(0,0,0,.38);
}

.hero-lead {
  max-width: 680px;
  color: rgba(255,255,255,.9);
}

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

.status-panel {
  max-width: 860px;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.status-panel div {
  padding: 16px;
  color: white;
  background: rgba(8,14,40,.78);
  border: 3px solid rgba(255,255,255,.76);
  box-shadow: 5px 5px 0 rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}

.status-panel strong {
  display: block;
  color: var(--yellow);
  margin-bottom: 5px;
  font-size: 15px;
}

.status-panel span {
  color: rgba(255,255,255,.86);
  font-weight: 750;
  font-size: 14px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  animation: bounce 1.4s infinite ease-in-out;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* DEMO */
.zone-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.zone-card,
.demo-cta,
.exercise-card,
.how-card,
.newsletter-card,
.faq-list details,
.control-card,
.guide-final-cta,
.tips-grid div {
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.zone-card {
  overflow: hidden;
  transition: transform .18s ease;
}

.zone-card:hover {
  transform: translate(-3px, -3px);
}

.zone-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-bottom: 4px solid var(--line);
}

.zone-copy {
  padding: 20px;
}

.zone-copy h3,
.exercise-card h3,
.showcase-copy h3,
.control-card h3 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -.025em;
}

.zone-copy p,
.exercise-card p,
.showcase-copy p,
.faq-list p,
.control-card p,
.pixel-list,
.tips-grid span {
  color: var(--muted);
  line-height: 1.68;
}

.zone-status {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 10px;
  border: 2px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.zone-status.available {
  background: #b9ffd1;
}

.demo-cta {
  margin-top: 26px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: linear-gradient(135deg, #fff5bd, #e8f7ff);
}

.demo-cta h3 {
  margin: 0 0 6px;
}

.demo-cta p {
  margin: 0;
  color: var(--muted);
}

/* SHOWCASE */
.showcase {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 24px;
  align-items: start;
}

.showcase-tabs {
  display: grid;
  gap: 12px;
}

.showcase-tab {
  cursor: pointer;
  text-align: left;
  padding: 18px;
  border: 4px solid var(--line);
  color: var(--ink);
  background: white;
  box-shadow: 5px 5px 0 rgba(17,24,51,.14);
  font-weight: 950;
  font-size: 16px;
  transition: transform .16s ease, background .16s ease;
}

.showcase-tab:hover,
.showcase-tab.active {
  background: var(--yellow);
  transform: translate(-2px, -2px);
}

.showcase-tab span {
  display: block;
  color: var(--pink);
  margin-bottom: 5px;
  font-size: 12px;
}

.showcase-screen {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 24px;
  padding: 18px;
  align-items: center;
  background: #ecf6ff;
  border: 4px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.screen-frame {
  background: var(--line);
  border: 4px solid var(--line);
  overflow: hidden;
}

.screen-frame img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.showcase-copy {
  padding: 10px 12px;
}

.mini-label {
  display: inline-block;
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 950;
}

/* EXERCISES */
.split-head {
  display: grid;
  grid-template-columns: .9fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.exercise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.exercise-card {
  overflow: hidden;
  background: white;
}

.exercise-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-bottom: 4px solid var(--line);
}

.exercise-card div {
  padding: 22px;
}

/* SYSTEMS */
.section-systems {
  padding-top: 50px;
}

.systems-grid {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 30px;
  align-items: center;
}

.system-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.045em;
}

.system-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.feature-list div {
  padding: 14px;
  background: white;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(17,24,51,.12);
}

.feature-list strong {
  display: block;
  margin-bottom: 4px;
}

.feature-list span {
  color: var(--muted);
  font-weight: 750;
}

.systems-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.systems-gallery img,
.guide-image-stack img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 rgba(17,24,51,.16);
  background: white;
}

/* MAP */
.section-map {
  background:
    linear-gradient(135deg, rgba(255,211,79,.18), rgba(66,200,255,.14));
  border-block: 5px solid rgba(17,24,51,.08);
  width: 100%;
  max-width: none;
  padding-inline: max(20px, calc((100vw - var(--max)) / 2));
}

.map-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 26px;
  align-items: center;
}

.map-frame {
  border: 4px solid var(--line);
  box-shadow: var(--shadow-hard);
  background: white;
  overflow: hidden;
}

.map-frame img {
  width: 100%;
  object-fit: cover;
}

.roadmap {
  display: grid;
  gap: 16px;
}

.roadmap article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px;
  background: white;
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 rgba(17,24,51,.12);
}

.roadmap h3 {
  margin: 0 0 6px;
}

.roadmap p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.road-dot {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 rgba(17,24,51,.16);
}

.road-dot.now { background: #45e986; }
.road-dot.next { background: var(--yellow); }
.road-dot.later { background: var(--pink); }

/* HOW */
.how-card {
  padding: 38px;
  display: grid;
  grid-template-columns: .9fr 1.1fr auto;
  gap: 26px;
  align-items: center;
  background: linear-gradient(135deg, #fff, #eff9ff);
}

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

.key-grid div {
  display: grid;
  gap: 6px;
}

kbd {
  display: inline-flex;
  min-height: 40px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--line);
  box-shadow: inset 0 -5px 0 rgba(17,24,51,.12), 4px 4px 0 rgba(17,24,51,.14);
  font: inherit;
  font-weight: 950;
}

.key-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

/* NEWSLETTER */
.section-newsletter {
  padding-top: 50px;
}

.newsletter-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 42px;
  color: white;
  background:
    linear-gradient(135deg, rgba(7,11,31,.94), rgba(14,26,58,.92)),
    url("site-assets/images/hero-akihabara.webp") center/cover;
}

.newsletter-card h2,
.newsletter-card p {
  color: white;
}

.newsletter-card p {
  opacity: .9;
}

.mailchimp-box {
  padding: 20px;
  background: rgba(255,255,255,.94);
  border: 4px solid var(--line);
  box-shadow: var(--shadow-hard);
  color: var(--ink);
}

.mock-mailchimp label {
  display: block;
  margin-bottom: 9px;
  font-weight: 950;
}

.mail-row {
  display: flex;
  gap: 10px;
}

.mock-mailchimp input {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 0 16px;
  border: 3px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.mock-mailchimp small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 800;
}

.mock-mailchimp button:disabled,
.mock-mailchimp input:disabled {
  opacity: .72;
  cursor: not-allowed;
}

/* FAQ */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 20px 22px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 950;
  font-size: 18px;
}

.faq-list p {
  margin-bottom: 0;
}

/* FOOTER */
.site-footer {
  padding: 36px 0 50px;
  border-top: 4px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand strong {
  display: block;
  font-size: 20px;
}

.footer-brand span {
  color: var(--muted);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 900;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

/* GUIDE PAGE */
.guide-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 211, 79, 0.24), transparent 28rem),
    radial-gradient(circle at 82% 20%, rgba(255, 63, 157, 0.18), transparent 24rem),
    linear-gradient(180deg, #eaf8ff, var(--cream));
}

.guide-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 6px solid var(--line);
}

.guide-hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  padding: 96px 0 54px;
  color: white;
}

.guide-hero-content p {
  max-width: 680px;
  color: rgba(255,255,255,.9);
}

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

.control-card {
  padding: 26px;
  background: white;
}

.key-cluster {
  width: max-content;
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 22px;
}

.key-cluster div,
.key-row-big {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.guide-split {
  display: grid;
  grid-template-columns: .84fr 1.16fr;
  gap: 32px;
  align-items: center;
}

.guide-split.reverse .guide-copy {
  order: 2;
}

.guide-split.reverse .guide-image-stack {
  order: 1;
}

.guide-copy {
  padding: 32px;
  background: white;
  border: 4px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.pixel-list {
  margin: 24px 0 0;
  padding-left: 20px;
  font-weight: 850;
}

.pixel-list li + li {
  margin-top: 9px;
}

.guide-image-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 34px;
}

.tips-grid div {
  padding: 24px;
  background: white;
}

.tips-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
}

.tips-grid span {
  display: block;
}

.guide-final-cta {
  padding: 36px;
  text-align: center;
  background:
    linear-gradient(135deg, #fff5bd, #e8f7ff);
}

.guide-final-cta p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

/* ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

@media (max-width: 1050px) {
  .showcase,
  .showcase-screen,
  .systems-grid,
  .map-layout,
  .how-card,
  .newsletter-card,
  .guide-split,
  .split-head {
    grid-template-columns: 1fr;
  }

  .status-panel,
  .zone-grid,
  .controls-grid {
    grid-template-columns: 1fr;
  }

  .exercise-grid,
  .systems-gallery,
  .guide-image-stack,
  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-card {
    align-items: stretch;
  }

  .site-nav {
    position: fixed;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    background: var(--paper);
    border: 4px solid var(--line);
    box-shadow: var(--shadow-hard);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .guide-split.reverse .guide-copy,
  .guide-split.reverse .guide-image-stack {
    order: initial;
  }
}

@media (max-width: 680px) {
  .section,
  .site-footer,
  .hero-content,
  .guide-hero-content {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 64px 0;
  }

  .site-header {
    padding: 14px;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .hero-vignette {
    background:
      linear-gradient(180deg, rgba(3,8,28,.68) 0%, rgba(3,8,28,.78) 68%, rgba(3,8,28,.86) 100%);
  }

  .hero h1,
  .guide-hero h1 {
    font-size: 46px;
  }

  .hero-lead,
  .section-title p,
  .split-head p,
  .how-card p,
  .newsletter-card p,
  .guide-copy p,
  .guide-hero-content p {
    font-size: 16px;
  }

  .hero-actions,
  .mail-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .exercise-grid,
  .systems-gallery,
  .guide-image-stack,
  .tips-grid,
  .key-grid {
    grid-template-columns: 1fr;
  }

  .demo-cta,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .newsletter-card,
  .how-card,
  .guide-copy {
    padding: 26px;
  }

  .footer-links {
    flex-direction: column;
  }
}


/* V4 — corrections visuelles */

/* Afficher les screenshots en entier au lieu de les couper */
.zone-card img,
.exercise-card img,
.screen-frame img,
.systems-gallery img,
.guide-image-stack img,
.audio-images img {
  object-fit: contain !important;
  background: #070b1f;
}

.zone-card img,
.exercise-card img,
.systems-gallery img,
.guide-image-stack img,
.audio-images img,
.map-frame img,
.screen-frame img {
  cursor: zoom-in;
}

/* Section vidéo : recadrage des bandes noires latérales */
.section-video {
  padding-top: 72px;
  padding-bottom: 72px;
}

.video-layout {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: 28px;
  align-items: center;
}

.video-copy {
  padding: 34px;
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.video-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
}

.video-note {
  margin-top: 14px;
  padding: 12px 14px;
  color: var(--ink) !important;
  background: #fff3bf;
  border: 3px solid var(--line);
  font-size: 14px !important;
  font-weight: 850;
}

.video-frame {
  padding: 14px;
  background: white;
  border: 4px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.video-crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1330 / 1080;
  background: #000;
  border: 4px solid var(--line);
}

.video-crop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

/* Section audio / voix japonaises */
.section-audio {
  padding-top: 42px;
}

.audio-card,
.listen-card {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 28px;
  align-items: center;
  padding: 38px;
  background: linear-gradient(135deg, #fffef7, #eaf8ff);
  border: 4px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.audio-copy h2,
.listen-card h2 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
}

.audio-copy p,
.listen-card p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
}

.audio-points {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.audio-points div {
  padding: 14px;
  background: white;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(17,24,51,.12);
}

.audio-points strong {
  display: block;
  margin-bottom: 4px;
}

.audio-points span {
  color: var(--muted);
  font-weight: 800;
}

.audio-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.audio-images img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 4px solid var(--line);
  box-shadow: 5px 5px 0 rgba(17,24,51,.16);
}

/* Page guide : section écoute */
.listen-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.listen-steps div {
  padding: 18px 12px;
  text-align: center;
  background: white;
  border: 4px solid var(--line);
  box-shadow: 4px 4px 0 rgba(17,24,51,.14);
}

.listen-steps strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  color: white;
  background: var(--blue);
  border: 3px solid var(--line);
}

.listen-steps span {
  color: var(--muted);
  font-weight: 850;
  font-size: 14px;
}

/* Logos réseaux sociaux */
.social-footer {
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.social-icon {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  color: white;
  background: var(--ink);
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 rgba(17,24,51,.18);
}

.social-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Lightbox image */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(4, 7, 21, .88);
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox-inner {
  position: relative;
  width: min(1280px, 96vw);
  max-height: 92vh;
}

.image-lightbox img {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border: 4px solid white;
  background: #070b1f;
  box-shadow: 0 24px 90px rgba(0,0,0,.55);
}

.image-lightbox button {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  color: var(--ink);
  background: var(--yellow);
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 var(--line);
  font-size: 24px;
  font-weight: 950;
}

.image-lightbox-caption {
  margin-top: 10px;
  color: white;
  text-align: center;
  font-weight: 850;
}

@media (max-width: 1050px) {
  .video-layout,
  .audio-card,
  .listen-card {
    grid-template-columns: 1fr;
  }

  .listen-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .video-copy,
  .audio-card,
  .listen-card {
    padding: 26px;
  }

  .audio-images,
  .listen-steps {
    grid-template-columns: 1fr;
  }

  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox button {
    top: 8px;
    right: 8px;
  }
}


/* V5 — corrections demandées */

/* Les screenshots doivent garder leur format réel :
   pas de crop, pas de bande noire, pas de cadre 16:10 forcé. */
.zone-card img,
.exercise-card img,
.screen-frame img,
.systems-gallery img,
.guide-image-stack img,
.audio-images img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: initial !important;
  background: transparent !important;
  display: block;
}

/* Les cadres s’adaptent au ratio naturel de l’image. */
.zone-card,
.exercise-card,
.screen-frame,
.systems-gallery img,
.guide-image-stack img,
.audio-images img {
  background: var(--paper) !important;
}

/* Le cadre de l’onglet interactif ne force plus une hauteur de screenshot. */
.screen-frame {
  align-self: center;
}

/* On garde seulement un recadrage propre pour la vidéo, car elle contient les bandes noires dans le fichier source. */
.video-note {
  display: none !important;
}

/* Petit ajustement de lisibilité des cartes démo avec images plus hautes. */
.zone-card img {
  border-bottom: 4px solid var(--line);
}

.zone-copy {
  min-height: 205px;
}

/* En desktop, les cartes de zone restent alignées malgré les ratios naturels. */
.zone-grid {
  align-items: start;
}

@media (max-width: 1050px) {
  .zone-copy {
    min-height: auto;
  }
}


/* V7 — page contact et formulaire */
.contact-page {
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 211, 79, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 20%, rgba(255, 63, 157, 0.16), transparent 24rem),
    linear-gradient(180deg, #eaf8ff, var(--cream));
}

.contact-hero {
  position: relative;
  min-height: 540px;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 6px solid var(--line);
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.contact-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  padding: 96px 0 54px;
  color: white;
}

.contact-hero-content h1,
.thanks-section h1 {
  max-width: 820px;
  margin: 0 0 20px;
  color: white;
  font-size: clamp(48px, 7vw, 86px);
  line-height: .9;
  letter-spacing: -.06em;
  text-shadow: 5px 5px 0 rgba(0,0,0,.38);
}

.thanks-section h1 {
  color: var(--ink);
  text-shadow: none;
}

.contact-hero-content p {
  max-width: 720px;
  color: rgba(255,255,255,.92);
  font-size: 18px;
  line-height: 1.72;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: start;
}

.contact-card,
.contact-info-box {
  background: var(--paper);
  border: 4px solid var(--line);
  box-shadow: var(--shadow-hard);
}

.contact-card {
  padding: 36px;
}

.contact-card h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.045em;
}

.contact-card p,
.contact-info-box p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.68;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 950;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--line);
  box-shadow: inset 0 -4px 0 rgba(17,24,51,.09);
  font: inherit;
  font-weight: 750;
}

.contact-form textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-side {
  display: grid;
  gap: 18px;
}

.contact-info-box {
  padding: 24px;
}

.contact-info-box h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.email-link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--blue);
  font-weight: 950;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.thanks-section {
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: center;
}

@media (max-width: 1050px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .contact-card {
    padding: 26px;
  }

  .contact-hero-content h1,
  .thanks-section h1 {
    font-size: 44px;
  }
}


/* V8 — Mailchimp connecté */
.nihongo-mailchimp {
  width: 100%;
}

.nihongo-mailchimp h3 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.nihongo-mailchimp label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 950;
}

.nihongo-mailchimp label span {
  color: var(--pink);
}

.nihongo-mailchimp input[type="email"] {
  flex: 1;
  min-width: 0;
  min-height: 54px;
  padding: 0 16px;
  border: 3px solid var(--line);
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  box-shadow: inset 0 -4px 0 rgba(17,24,51,.09);
}

.newsletter-consent {
  margin: 14px 0 0 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  opacity: 1 !important;
}

.mailchimp-responses {
  margin-top: 12px;
}

.mailchimp-responses .response {
  padding: 10px 12px;
  border: 3px solid var(--line);
  background: #fff8d7;
  color: var(--ink);
  font-weight: 850;
}

@media (max-width: 680px) {
  .nihongo-mailchimp .mail-row {
    flex-direction: column;
  }
}


/* V9 — bilingual switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  background: white;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(17,24,51,.16);
}

.lang-switch span {
  line-height: 1;
}

@media (max-width: 1050px) {
  .lang-switch {
    justify-content: center;
  }
}


/* V11 — language switch without country flags */
.lang-switch {
  gap: 0;
  min-width: 52px;
  justify-content: center;
}


/* V12 — navigation cohérente FR/EN avec Contact partout */
.site-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang-switch {
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .site-nav {
    flex-wrap: nowrap;
  }
}
