/* =====================================================
   Paris — Présentation pour la 9e classe
   Editorial design system
   ===================================================== */

:root {
  --bg: #f4ebd9;
  --bg-soft: #ede1c8;
  --bg-cream: #f9f3e6;
  --ink: #1b2a4e;
  --ink-soft: #3a496b;
  --muted: #74695a;
  --line: #d8cdb3;
  --red: #c8412d;
  --red-soft: #e07a64;
  --gold: #b8895a;
  --green: #4a7a4a;
  --serif: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Mulish", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

deck-stage {
  --slide-bg: var(--bg);
  --slide-fg: var(--ink);
  --aspect-w: 16;
  --aspect-h: 9;
}

section {
  width: 1920px;
  height: 1080px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 28px;
  line-height: 1.45;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 90px 110px;
  display: flex;
  flex-direction: column;
}

/* ---------- Generic typographic atoms ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  margin: 0 14px 3px 0;
  vertical-align: middle;
}

h1.display {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 180px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

h1.title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 110px;
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0 0 20px 0;
}

h2.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 84px;
  line-height: 1;
  margin: 0;
}

h3.subtitle {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.2;
  color: var(--ink-soft);
  margin: 0;
}

p, li {
  font-family: var(--sans);
  font-size: 32px;
  line-height: 1.5;
  color: var(--ink);
}

em {
  font-style: italic;
  color: var(--red);
  font-weight: 600;
}

.muted { color: var(--muted); }

/* ---------- Decorative frame ---------- */
.frame-corner {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--ink);
}
.frame-corner.tl { top: 50px; left: 50px; border-right: none; border-bottom: none; }
.frame-corner.tr { top: 50px; right: 50px; border-left: none; border-bottom: none; }
.frame-corner.bl { bottom: 50px; left: 50px; border-right: none; border-top: none; }
.frame-corner.br { bottom: 50px; right: 50px; border-left: none; border-top: none; }

.page-no {
  position: absolute;
  bottom: 56px;
  right: 110px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.slide-ex .page-no { display: none; }

.page-tag {
  position: absolute;
  bottom: 56px;
  left: 110px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* =====================================================
   TITLE SLIDE
   ===================================================== */
.slide-title {
  padding: 110px;
  background:
    radial-gradient(circle at 80% 20%, rgba(200,65,45,0.06), transparent 50%),
    var(--bg);
}
.slide-title .stack { margin-top: auto; }
.slide-title h1.display { font-size: 240px; }
.slide-title .deck-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 2px solid var(--ink);
}
.slide-title .deck-meta .right {
  text-align: right;
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.7;
}
.title-eiffel {
  position: absolute;
  top: 110px;
  right: 110px;
  width: 540px;
  height: 540px;
  border: 2px solid var(--ink);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(27,42,78,0.05) 14px 16px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px;
}
.title-eiffel .pl {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}

/* =====================================================
   OVERVIEW / TOC
   ===================================================== */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 26px;
  margin-top: 56px;
}
.toc-grid .item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.toc-grid .item .n {
  font-family: var(--mono);
  font-size: 18px;
  color: var(--red);
  letter-spacing: 0.06em;
  width: 32px;
  flex-shrink: 0;
}
.toc-grid .item .nm {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
}

/* =====================================================
   LANDMARK CONTENT SLIDE
   ===================================================== */
.slide-lm {
  padding: 80px 110px 90px;
  display: grid;
  grid-template-columns: 760px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 70px;
}

.lm-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 36px;
}
.lm-head .left { display: flex; align-items: baseline; gap: 36px; }
.lm-head .num {
  font-family: var(--serif);
  font-size: 96px;
  line-height: 1;
  color: var(--red);
}
.lm-head .lm-title {
  font-family: var(--serif);
  font-size: 86px;
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lm-head .meta {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.7;
}

.lm-photo {
  width: 100%;
  height: 740px;
  background: var(--bg-soft);
  position: relative;
}
.lm-photo image-slot {
  display: block;
  width: 100%;
  height: 100%;
}

.lm-text {
  display: flex;
  flex-direction: column;
  height: 740px;
}
.lm-text .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  line-height: 1.35;
  color: var(--ink-soft);
  margin: 0 0 22px 0;
  padding-left: 22px;
  border-left: 3px solid var(--red);
}
.lm-text .lede-de {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 20px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.01em;
}
.ex-q .de, .ex-type .de, .tip .de {
  display: inline;
  font-family: var(--sans);
  color: var(--muted);
  font-weight: 400;
  font-style: normal;
  font-size: 0.78em;
  margin-left: 6px;
  letter-spacing: 0;
  text-transform: none;
}
.ex-card .ex-q .de { display: block; margin: 4px 0 0; font-size: 18px; color: var(--muted); font-style: italic; }
.speak .ex-q .de { color: var(--red-soft); }
.tip .de { display: block; margin-top: 2px; font-size: 0.82em; font-style:italic; }

/* German info box */
.lm-info {
  margin-top: 14px;
  padding: 14px 18px;
  background: rgba(27,42,78,0.06);
  border-left: 3px solid var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}
.lm-info .label {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}
.lm-text p.body {
  font-size: 32px;
  line-height: 1.5;
  margin: 0 0 18px 0;
  color: var(--ink);
  text-wrap: pretty;
}

.lm-vocab {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.lm-vocab .label {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.lm-vocab .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}
.lm-vocab .chip {
  font-family: var(--sans);
  font-size: 20px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--ink);
}
.lm-vocab .chip b { color: var(--red); font-weight: 700; }
.lm-vocab .chip .de { color: var(--muted); font-style: italic; }

/* =====================================================
   EXERCISE SLIDE
   ===================================================== */
.slide-ex {
  padding: 60px 100px 70px;
}
.ex-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 26px;
}
.ex-head .left { display: flex; align-items: baseline; gap: 28px; }
.ex-head .badge {
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 8px 16px;
  white-space: nowrap;
  display: inline-block;
  flex-shrink: 0;
}
.ex-head .ex-title {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  font-weight: 600;
}
.ex-head .ex-sub {
  font-family: var(--sans);
  font-size: 22px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: right;
  font-style: italic;
}

.ex-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 48px;
  flex: 1;
}

.ex-card {
  background: var(--bg-cream);
  border: 1px solid var(--line);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.ex-card .ex-type {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.ex-card .ex-q {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

/* multiple choice */
.mc { display: flex; flex-direction: column; gap: 8px; }
.mc .opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 20px;
  font-family: var(--sans);
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.mc .opt .letter {
  font-family: var(--mono);
  font-size: 14px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  flex-shrink: 0;
}
.mc .opt:hover { background: var(--bg-soft); }
.mc .opt.selected { background: var(--bg-soft); border-color: var(--ink); }
.mc .opt.correct {
  background: rgba(74,122,74,0.14);
  border-color: var(--green);
}
.mc .opt.correct .letter {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.mc .opt.wrong {
  background: rgba(200,65,45,0.10);
  border-color: var(--red);
  text-decoration: line-through;
  opacity: 0.8;
}

/* true/false */
.tf { display: flex; flex-direction: column; gap: 8px; }
.tf-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  font-size: 20px;
}
.tf-row .stmt {
  font-family: var(--sans);
  font-size: 21px;
  color: var(--ink);
  line-height: 1.35;
}
.tf-btn {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  user-select: none;
}
.tf-btn.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.tf-btn.correct { background: var(--green); color: #fff; border-color: var(--green); }
.tf-btn.wrong { background: var(--red); color: #fff; border-color: var(--red); }

/* fill in the blank */
.fib { display:flex; flex-direction:column; gap:6px; }
.fib p {
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}
.fib .blank {
  display: inline-block;
  min-width: 130px;
  padding: 2px 10px;
  border: none;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  font-family: var(--sans);
  font-size: 22px;
  color: var(--red);
  text-align: center;
  outline: none;
}
.fib .blank.correct { border-bottom-color: var(--green); color: var(--green); }
.fib .blank.wrong { border-bottom-color: var(--red); color: var(--red); }
.fib .hint {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* matching */
.match { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.match .col-head {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.match .item {
  background: #fff;
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.match .item .k {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
  width: 22px;
  flex-shrink: 0;
}
.match .item.r { font-style: italic; color: var(--ink-soft); }

/* speak prompt */
.speak {
  background: var(--ink);
  color: var(--bg-cream);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.speak .ex-type { color: var(--red-soft); }
.speak .ex-q { color: var(--bg-cream); font-family: var(--serif); font-size: 22px; }
.speak .prompts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.speak .prompts li {
  font-family: var(--sans);
  font-size: 19px;
  color: var(--bg-cream);
  padding-left: 24px;
  position: relative;
  line-height: 1.35;
}
.speak .prompts li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--red-soft);
  font-family: var(--mono);
}

/* unscramble */
.unscramble { display: flex; flex-direction: column; gap: 12px; }
.unscramble .scrambled {
  font-family: var(--mono);
  font-size: 18px;
  background: #fff;
  border: 1px dashed var(--line);
  padding: 10px 14px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.unscramble .answer {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--green);
  padding: 8px 14px;
  border-left: 3px solid var(--green);
  display: none;
}
.unscramble.revealed .answer { display: block; }

/* ex footer */
.ex-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.ex-footer .tip {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--muted);
}
.ex-footer .btn-group {
  display: flex;
  gap: 10px;
}
.btn {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary { background: var(--ink); color: var(--bg-cream); }
.btn.primary:hover { background: var(--red); border-color: var(--red); }

/* =====================================================
   VOCABULARY LIST
   ===================================================== */
.slide-voc { padding: 60px 100px 70px; }
.voc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 22px;
  gap: 40px;
}
.voc-head .section-title { white-space: nowrap; }
.voc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0 60px;
  column-gap: 60px;
}
.voc-letter {
  font-family: var(--serif);
  font-size: 38px;
  color: var(--red);
  border-bottom: 2px solid var(--line);
  margin: 10px 0 6px 0;
  padding-bottom: 2px;
  font-weight: 600;
  line-height: 1;
}
.voc-letter:first-child { margin-top: 0; }
.voc-row {
  display: grid;
  grid-template-columns: 28px 1fr 1fr;
  gap: 10px;
  align-items: center;
  padding: 2px 0;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.3;
}
.voc-row .mem {
  font-size: 20px;
  line-height: 1;
  text-align: center;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.voc-row .fr {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
}
.voc-row .de {
  font-family: var(--sans);
  color: var(--ink-soft);
}

/* =====================================================
   CLOSING / DIVIDER
   ===================================================== */
.slide-divider {
  background: var(--ink);
  color: var(--bg-cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px;
}
.slide-divider .eyebrow { color: var(--red-soft); }
.slide-divider h1 {
  font-family: var(--serif);
  font-size: 200px;
  line-height: 0.95;
  font-weight: 600;
  margin: 32px 0 0 0;
  color: var(--bg-cream);
}
.slide-divider .frame-corner { border-color: var(--bg-cream); }

.slide-final {
  background: var(--ink);
  color: var(--bg-cream);
  padding: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.slide-final .eyebrow { color: var(--red-soft); }
.slide-final h1 {
  font-family: var(--serif);
  font-size: 160px;
  line-height: 0.95;
  font-weight: 600;
  margin: 28px 0 0 0;
  color: var(--bg-cream);
}
.slide-final .checklist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 60px;
  margin-top: 60px;
}
.slide-final .checklist .ck {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(244,235,217,0.25);
  font-size: 24px;
  font-family: var(--sans);
}
.slide-final .checklist .ck .box {
  width: 26px;
  height: 26px;
  border: 2px solid var(--bg-cream);
  flex-shrink: 0;
  margin-top: 4px;
}
.slide-final .frame-corner { border-color: var(--bg-cream); }
.slide-final .footnote {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--red-soft);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 60px;
}

/* =====================================================
   HOW-TO SLIDE
   ===================================================== */
.howto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  margin-top: 56px;
}
.howto-grid .step {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.howto-grid .step .n {
  font-family: var(--serif);
  font-size: 64px;
  line-height: 1;
  color: var(--red);
  width: 80px;
  flex-shrink: 0;
}
.howto-grid .step h4 {
  font-family: var(--serif);
  font-size: 30px;
  margin: 0 0 8px 0;
  font-weight: 600;
}
.howto-grid .step p {
  font-size: 21px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}
