/* Rouge Gorge — landing page
   DA reprise de UI/DesignSystem/SketchyTheme.swift :
   crème #FDF8F0, corail #E86A58, encre brune #3D2B1F, ombres "carton"
   sans flou, tracés légèrement tremblés, Patrick Hand + Quicksand. */

@font-face {
  font-family: 'Patrick Hand';
  src: url('fonts/PatrickHand-Regular.ttf') format('truetype');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-Medium.ttf') format('truetype');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-SemiBold.ttf') format('truetype');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Quicksand';
  src: url('fonts/Quicksand-Bold.ttf') format('truetype');
  font-weight: 700; font-display: swap;
}

:root {
  --coral: #E86A58;
  --coral-light: #F4A498;
  --coral-dim: #FCEDE8;
  --highlight: #FFECD1;
  --cream: #FDF8F0;
  --paper: #ffffff;
  --ink: #3D2B1F;
  --ink-soft: rgba(61, 43, 31, .62);
  --ink-faint: rgba(61, 43, 31, .40);
  --shadow: #D9D1C5;
  --path-tan: #D1A684;
  --locked: #E2DFD8;
  --gray-soft: #D5CFC4;
  --success: #4CAF50;
  --error: #C74033;

  --display: 'Patrick Hand', 'Bradley Hand', cursive;
  --body: 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1080px;
  --r: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain papier très discret, comme le fond de l'app */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url('img/paper-grain.png');
  background-size: 420px;
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typographie ---------- */

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .2px;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3rem); }
h3 { font-size: 1.45rem; }

.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 14px;
}

.lede {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.section-note {
  font-size: .93rem;
  color: var(--ink-faint);
}

/* ---------- Primitives "carton" ---------- */

/* Bordure encre + ombre solide décalée, jamais de flou (spec SketchyTheme). */
.card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r);
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 26px;
}

/* Léger tremblé : rayons de coins asymétriques, comme les tracés de l'app. */
.card--wobble  { border-radius: 20px 15px 22px 16px; }
.card--wobble2 { border-radius: 15px 21px 14px 23px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  font-weight: 700;
  padding: 5px 13px;
  border: 2px solid var(--ink);
  border-radius: 50px;
  background: var(--paper);
}
.pill--coral { background: var(--coral-dim); }
.pill--highlight { background: var(--highlight); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.02rem;
  padding: 15px 28px;
  border: 2px solid var(--ink);
  border-radius: 50px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--shadow); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--shadow); }
.btn--primary { background: var(--coral); color: #fff; box-shadow: 4px 4px 0 #B84A3B; }
.btn--primary:hover { box-shadow: 6px 6px 0 #B84A3B; }
.btn--primary:active { box-shadow: 1px 1px 0 #B84A3B; }

/* Surligneur au feutre sous un mot clé */
.mark {
  background: linear-gradient(transparent 58%, var(--highlight) 58%, var(--highlight) 94%, transparent 94%);
  padding: 0 2px;
}
.coral { color: var(--coral); }

/* ---------- Header ---------- */

header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 240, .88);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: 1.5rem;
  text-decoration: none;
}
.logo img {
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 2px solid var(--ink);
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: .95rem;
  font-weight: 600;
}
.nav-links a { text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover { color: var(--coral); }

/* Sélecteur de langue. Six langues ne tiennent pas en boutons côte à côte sur mobile :
   un menu déroulant natif tient en un seul bouton, ouvre le sélecteur du système sur
   iPhone, et laisse la place au mot-logo. */
.lang {
  position: relative;
  flex: none;
  margin-left: auto;
}
.lang select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--body);
  font-weight: 700;
  font-size: .84rem;
  color: var(--ink);
  /* background-color et non background : le raccourci écraserait le drapeau que le
     script pose en background-image à chaque changement de langue. */
  background-color: var(--paper);
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 20px 15px;
  border: 2px solid var(--ink);
  border-radius: 50px;
  padding: 7px 32px 7px 42px;
  margin: 0;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.lang select:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--shadow); }
.lang select:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* Chevron dessiné en CSS, dans le même trait d'encre que le reste. */
.lang::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

/* ---------- Sections ---------- */

section { padding: 92px 0; }
section + section { border-top: 2px dashed var(--gray-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

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

/* ---------- Hero ---------- */

.hero { padding: 76px 0 84px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero .lede { font-size: 1.22rem; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  margin-top: 18px;
  font-size: .88rem;
  color: var(--ink-faint);
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.stat {
  flex: 1 1 130px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 17px 13px 18px 14px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 14px 16px;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1;
  color: var(--coral);
}
.stat span { font-size: .84rem; color: var(--ink-soft); }

/* ---------- Maquettes iPhone (écrans reconstruits en CSS) ---------- */

.phone {
  width: 320px;
  max-width: 100%;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 42px;
  box-shadow: 8px 8px 0 var(--shadow);
  padding: 12px 11px 0;
  margin: 0 auto;
  overflow: hidden;
  font-size: 14px;
}
.phone--tilt { transform: rotate(-1.6deg); }
.phone--tilt-r { transform: rotate(1.4deg); }

.phone-notch {
  width: 92px; height: 5px;
  background: var(--ink);
  border-radius: 50px;
  margin: 0 auto 12px;
  opacity: .8;
}
.screen { padding: 0 6px 14px; }

.screen-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.screen-title { font-family: var(--display); font-size: 1.45rem; }
.screen-sub { font-size: .74rem; color: var(--ink-faint); font-weight: 600; }

/* Barre d'onglets, reprise de RootView (Daily / Classroom / Journey / Listes / Recherche) */
.tabbar {
  display: flex;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  margin: 14px -11px 0;
  padding: 9px 12px 12px;
  background: var(--paper);
}
.tabbar div {
  font-size: .62rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: .02em;
}
.tabbar div.on { color: var(--coral); }
.tabbar i {
  display: block;
  font-size: 1rem;
  font-style: normal;
  margin-bottom: 2px;
}

/* Chemin Journey : nœuds reliés par une ligne tan */
.path { position: relative; padding: 4px 0 0; }
.path::before {
  content: '';
  position: absolute;
  left: 29px; top: 12px; bottom: 20px;
  width: 3px;
  background: repeating-linear-gradient(var(--path-tan) 0 7px, transparent 7px 13px);
}
.node {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 11px;
  position: relative;
}
.node-dot {
  width: 40px; height: 40px;
  flex: none;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  font-size: .95rem;
  box-shadow: 3px 3px 0 var(--shadow);
}
.node-dot.done { background: var(--success); color: #fff; }
.node-dot.now  { background: var(--coral); color: #fff; box-shadow: 3px 3px 0 #B84A3B; }
.node-dot.lock { background: var(--locked); color: #8A857F; box-shadow: none; }
.node-body { min-width: 0; }
.node-body b { display: block; font-size: .86rem; font-weight: 700; }
.node-body span { font-size: .74rem; color: var(--ink-faint); }
.node.locked .node-body b, .node.locked .node-body span { color: #8A857F; }

/* Carte de lexique (structure réelle : term, IPA, POS, def, exemple) */
.lex {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 17px 14px 18px 15px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 16px;
}
.lex-term { font-family: var(--display); font-size: 1.9rem; line-height: 1.05; }
.lex-ipa { font-size: .8rem; color: var(--ink-faint); font-style: italic; }
.lex-pos {
  display: inline-block;
  font-size: .66rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  background: var(--coral-dim);
  border: 1.5px solid var(--coral-light);
  border-radius: 50px;
  padding: 2px 9px;
  margin: 8px 0 10px;
}
.lex-def { font-size: .87rem; margin: 0 0 8px; }
.lex-ex { font-size: .82rem; color: var(--ink-soft); font-style: italic; margin: 0; }
.lex-tr {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1.5px dashed var(--gray-soft);
  font-size: .8rem;
  color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 4px 12px;
}
.lex-tr b { font-weight: 700; color: var(--ink); }

/* Exercice de session */
.ex-progress {
  height: 8px;
  background: var(--locked);
  border: 2px solid var(--ink);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 14px;
}
.ex-progress i { display: block; height: 100%; width: 62%; background: var(--coral); }
.ex-prompt { font-size: .78rem; color: var(--ink-faint); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.ex-q { font-family: var(--display); font-size: 1.35rem; margin: 6px 0 14px; }
.opt {
  border: 2px solid var(--ink);
  border-radius: 14px 11px 15px 12px;
  background: var(--paper);
  padding: 11px 14px;
  margin-bottom: 9px;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 3px 3px 0 var(--shadow);
  display: flex; justify-content: space-between; align-items: center;
}
.opt.good { background: rgba(76,175,80,.14); border-color: var(--success); }
.opt.bad  { background: rgba(199,64,51,.10); border-color: var(--error); color: var(--error); }

/* ---------- Gorgie ---------- */

.gorgie { width: 200px; }
.gorgie--sm { width: 88px; }
.gorgie-row { display: flex; align-items: center; gap: 20px; }

/* ---------- Features ---------- */

.feat {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px 15px 22px 16px;
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 24px;
}
.feat-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  background: var(--coral-dim);
  border: 2px solid var(--ink);
  border-radius: 14px 11px 15px 12px;
  margin-bottom: 14px;
}
.feat h3 { font-size: 1.3rem; margin-bottom: 8px; }
.feat p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Niveaux CECRL ---------- */

.levels { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.level {
  flex: 1 1 110px;
  text-align: center;
  border: 2px solid var(--ink);
  border-radius: 16px 12px 17px 13px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 16px 10px;
}
.level b {
  display: block;
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--coral);
  line-height: 1;
}
.level span { font-size: .78rem; color: var(--ink-soft); }

/* ---------- Tableau free / Premium ---------- */

.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 34px;
}
.plan {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 20px 16px 22px 17px;
  box-shadow: 5px 5px 0 var(--shadow);
  padding: 26px;
  position: relative;
}
.plan--pro { background: var(--coral-dim); }
.plan-badge {
  position: absolute;
  top: -14px; right: 20px;
  background: var(--highlight);
  border: 2px solid var(--ink);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: .76rem;
  font-weight: 700;
}
.plan h3 { font-size: 1.5rem; margin-bottom: 4px; }
.plan-price { font-family: var(--display); font-size: 2.2rem; line-height: 1.1; }
.plan-price small { font-family: var(--body); font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li {
  display: flex; gap: 10px;
  font-size: .93rem;
  padding: 7px 0;
  border-bottom: 1.5px dashed var(--gray-soft);
}
.plan li:last-child { border-bottom: none; }
.plan li i { font-style: normal; flex: none; }

/* ---------- Confidentialité ---------- */

.privacy-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.privacy-list li {
  display: flex; gap: 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 16px 13px 17px 14px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 16px 18px;
  font-size: .95rem;
}
.privacy-list b { display: block; }

/* ---------- CTA final ---------- */

.cta-band {
  background: var(--coral);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 26px 20px 28px 22px;
  box-shadow: 7px 7px 0 #B84A3B;
  padding: 48px 40px;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 44ch; margin: 0 auto 26px; }
.cta-band .btn { background: var(--paper); box-shadow: 4px 4px 0 rgba(61,43,31,.55); }

/* ---------- Footer ---------- */

footer {
  border-top: 2px solid var(--ink);
  padding: 40px 0;
  font-size: .88rem;
  color: var(--ink-soft);
}
.footer-in { display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--coral); }
.footer-legal { flex-basis: 100%; font-size: .78rem; color: var(--ink-faint); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 66px 0; }
  .phone--tilt, .phone--tilt-r { transform: none; }
  .order-first { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Les images portent leurs dimensions intrinsèques dans le HTML pour réserver la place
   avant chargement. Le CSS garde la main sur la taille affichée. */
.gorgie, .logo img { height: auto; }

/* Le header est collant : une ancre doit s'arrêter sous lui, pas dessous. */
section[id], main[id] { scroll-margin-top: 76px; }

/* ---------- Barre de navigation ----------
   Le mot-logo reste visible jusqu'en bas de l'échelle : c'est lui qui rétrécit en
   dernier recours, jamais le sélecteur de langue qui déborderait par-dessus. */
.logo { min-width: 0; }
.logo span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 560px) {
  .nav-in { gap: 12px; padding: 10px 16px; }
  .logo { font-size: 1.3rem; }
  .lang select { font-size: .8rem; padding: 6px 28px 6px 38px; background-position: 12px center; }
  .lang::after { right: 12px; }
}

/* ---------- Captures d'écran réelles ----------
   Les maquettes reconstruites en CSS ont été remplacées par de vraies captures de
   l'app, posées dans le même cadre "carton" que le reste du site. La barre d'état
   iOS a été rognée à la source : elle datait les captures et affichait des batteries
   à 16 %. Le cadre garde son encoche pour que l'objet reste lisible comme un iPhone. */
.phone--shot { padding-bottom: 12px; }
.phone--shot img {
  width: 100%;
  height: auto;
  border-radius: 6px 6px 26px 26px;
}

/* Bandeau de captures : quatre écrans en ligne, qui défilent horizontalement sur
   mobile plutôt que de s'empiler sur quatre écrans de haut. */
.shots-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.shots-row .phone { width: 100%; }
.shots-row figure { margin: 0; }
.shots-row figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .shots-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -24px;
    padding: 4px 24px 8px;
  }
  .shots-row figure {
    flex: 0 0 76%;
    scroll-snap-align: center;
  }
}

/* ---------- Maquette fidèle de l'écran Recherche ----------
   Reconstruite d'après Features/Search/SearchView.swift et les captures réelles.
   Le châssis reste en anglais parce que l'interface de l'app l'est : seuls le mot
   cherché, le badge de niveau et la ligne « Show <langue> » varient d'une langue à
   l'autre, exactement comme dans l'app. */
.app-title {
  font-family: var(--display);
  font-size: 1.7rem;
  margin: 2px 0 10px;
}
.app-field {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--coral-light);
  border-radius: 50px;
  background: var(--paper);
  padding: 9px 13px;
  font-size: .92rem;
  box-shadow: 2px 2px 0 var(--shadow);
}
.app-field .q { flex: 1; font-weight: 600; }
.app-field .ico { color: var(--ink-faint); font-size: .9rem; }
.app-field .clear {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--gray-soft);
  color: var(--paper);
  font-size: .6rem;
  display: grid; place-items: center;
  flex: none;
}

/* Bandeau de redirection : « "meriter" → deserve » */
.app-redirect {
  margin: 9px 0 12px;
  padding: 7px 12px;
  border-radius: 50px;
  background: var(--coral-dim);
  color: var(--coral);
  font-size: .78rem;
  font-weight: 600;
}

.app-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 19px 16px 20px 17px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 15px 15px 12px;
}
.app-card-head { display: flex; align-items: flex-start; gap: 10px; }
.app-term { font-family: var(--display); font-size: 1.75rem; line-height: 1.05; flex: 1; }
.app-level {
  flex: none;
  text-align: center;
}
.app-level b {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 50px;
  background: var(--highlight);
  border: 1.5px solid #E3C79A;
}
.app-level span { display: block; font-size: .6rem; color: var(--coral); margin-top: 3px; }
.app-phon { font-size: .78rem; color: var(--ink-faint); margin-top: 2px; }
.app-phon i { font-style: normal; color: var(--coral); }
.app-pos {
  font-size: .78rem;
  font-style: italic;
  color: var(--coral);
  font-weight: 600;
  margin: 7px 0 3px;
}
.app-def { font-size: .87rem; margin: 0; }

.app-example {
  margin-top: 11px;
  padding: 9px 11px;
  background: #F7F1E6;
  border-left: 3px solid var(--coral-light);
  border-radius: 4px 10px 10px 4px;
}
.app-example b {
  display: block;
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.app-example p { margin: 0; font-size: .82rem; font-style: italic; color: var(--ink-soft); }

.app-reveal {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 12px;
  background: #F7F1E6;
  border-radius: 11px;
  font-size: .82rem;
  color: var(--ink-soft);
}
.app-reveal b { font-size: .64rem; letter-spacing: .08em; color: var(--ink-faint); }

.app-uses { margin-top: 12px; }
.app-uses > b {
  display: block;
  font-size: .58rem;
  letter-spacing: .12em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.app-coll {
  display: flex;
  gap: 6px;
  overflow: hidden;
}
.app-coll span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  background: var(--coral-dim);
  color: var(--coral);
  border-radius: 50px;
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 600;
}
.app-coll i {
  font-style: normal;
  font-size: .54rem;
  letter-spacing: .06em;
  background: var(--coral-light);
  color: var(--paper);
  border-radius: 4px;
  padding: 1px 4px;
}
.app-dots { display: flex; gap: 5px; justify-content: center; margin-top: 11px; }
.app-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral-light); opacity: .4; }
.app-dots i:first-child { opacity: 1; background: var(--coral); }

.app-actions { display: flex; gap: 8px; margin-top: 12px; }
.app-actions span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 50px;
  padding: 9px 14px;
  font-size: .82rem;
  font-weight: 700;
  background: var(--coral-dim);
  color: var(--coral);
}
.app-actions span:first-child { flex: 1; }


/* Bouton « Add this meaning » : dans l'app il passe sous la barre d'onglets, ce que la
   maquette n'a pas à reproduire. */
.app-add {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 11px;
  border-radius: 50px;
  background: var(--coral);
  color: #fff;
  font-size: .86rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 #B84A3B;
}

/* Ligne de traduction révélée : c'est ici que la langue du visiteur apparaît. */
.app-reveal--on { background: var(--coral-dim); color: var(--ink); align-items: flex-start; }
.app-reveal--on b { color: var(--coral); flex: none; padding-top: 2px; }

/* ---------- Vrai iPhone 17 Pro Max ----------
   Bezel officiel d'Apple (Apple Design Resources, « Product Bezels »), prévu pour
   encadrer des captures d'app dans des supports marketing. L'image n'est pas retouchée,
   seulement redimensionnée, comme l'exigent les Identity Guidelines.
   La découpe d'écran a été mesurée sur le PNG d'origine (1470 × 3000) : elle commence à
   x 75 / y 66 et fait 1320 × 2868, soit la définition native de l'appareil. Les
   pourcentages ci-dessous en découlent, donc le cadrage reste juste à toute taille.
   La Dynamic Island est dessinée DANS le bezel : ne pas la redessiner. */
.device {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}
.device-bezel {
  position: relative;
  z-index: 3;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.device-screen {
  position: absolute;
  left: 5.102%;
  top: 2.2%;
  width: 89.796%;
  height: 95.6%;
  z-index: 1;
  overflow: hidden;
  background: var(--cream);
  border-radius: 13% / 6%;
  display: flex;
  flex-direction: column;
}
.device-screen > img { width: 100%; height: auto; display: block; }

/* Barre d'état reconstruite : les captures ont été rognées au-dessus, et une batterie
   à 16 % en rouge n'a rien à faire sur une page de vente. 9:41 est l'heure canonique
   des visuels Apple. Elle laisse la place à la Dynamic Island au centre. */
.ios-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4.2% 7% 2.4%;
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink);
  flex: none;
}
.ios-status .ind { display: flex; align-items: center; gap: 5px; }
.ios-status svg { display: block; height: 9px; width: auto; }

.device-screen .app-body { padding: 0 5.5% 4%; overflow: hidden; }

@media (max-width: 900px) {
  .device { max-width: 300px; }
}

/* Le bandeau fait tenir quatre appareils de front : ils remplissent leur colonne. */
.shots-row .device { max-width: none; }

/* La fiche doit tenir dans les 663 px de l'écran : sans ça, « Add this meaning » et les
   boutons de prononciation passent sous le bord inférieur de l'appareil. */
.device-screen .app-title { font-size: 1.45rem; margin: 0 0 8px; }
.device-screen .app-field { padding: 7px 12px; font-size: .86rem; }
.device-screen .app-redirect { margin: 7px 0 9px; padding: 5px 10px; font-size: .72rem; }
.device-screen .app-card { padding: 12px 13px 10px; }
.device-screen .app-term { font-size: 1.55rem; }
.device-screen .app-def { font-size: .82rem; }
.device-screen .app-example { margin-top: 9px; padding: 8px 10px; }
.device-screen .app-example p { font-size: .78rem; }
.device-screen .app-reveal { margin-top: 8px; padding: 8px 10px; font-size: .78rem; }
.device-screen .app-add { margin-top: 10px; padding: 9px; font-size: .82rem; }
.device-screen .app-actions { margin-top: 8px; }
.device-screen .app-actions span { padding: 8px 12px; font-size: .78rem; }

/* ---------- Maquette d'un exercice de la séance quotidienne ----------
   Reconstruite d'après Features/Parcours/SessionViewModel.swift : l'exercice
   `swipeBinary` présente un mot apparié à une définition, correcte ou empruntée à un
   autre mot, et l'apprenant tranche. Le libellé « TRUE/FALSE » est en dur en anglais
   dans la séance quotidienne (il n'est traduit que dans Journey, via JourneyL10n). */
.ex-head { display: flex; align-items: center; gap: 10px; }
.ex-close {
  width: 24px; height: 24px;
  flex: none;
  border-radius: 50%;
  background: var(--coral-dim);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: .7rem;
}
.ex-count b { display: block; font-size: .82rem; font-weight: 700; line-height: 1.1; }
.ex-count span {
  font-size: .56rem;
  letter-spacing: .12em;
  color: var(--ink-faint);
  font-weight: 700;
}
.ex-bar {
  height: 4px;
  border-radius: 50px;
  background: var(--locked);
  margin: 10px 0 18px;
  overflow: hidden;
}
.ex-bar i { display: block; height: 100%; width: 8%; background: var(--coral); border-radius: 50px; }

.ex-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 19px 16px 20px 17px;
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 16px 15px;
  text-align: center;
}
.ex-tag {
  font-size: .56rem;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--coral);
  text-align: left;
}
.ex-tag::before { content: '\2022  '; }
.ex-word { font-family: var(--display); font-size: 1.75rem; margin: 10px 0 4px; }
.ex-eq { color: var(--ink-faint); font-size: .9rem; margin-bottom: 6px; }
.ex-def { font-size: .82rem; color: var(--ink-soft); font-style: italic; margin: 0; }
.ex-answer {
  margin-top: 14px;
  padding: 12px 11px;
  border: 2px solid var(--success);
  border-radius: 12px;
  background: rgba(76, 175, 80, .14);
  font-size: .8rem;
}
.ex-answer .check {
  width: 24px; height: 24px;
  margin: 0 auto 7px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: grid; place-items: center;
  font-size: .76rem;
}
.ex-continue {
  margin-top: 14px;
  padding: 11px;
  border-radius: 50px;
  background: var(--success);
  color: #fff;
  text-align: center;
  font-size: .86rem;
  font-weight: 700;
  box-shadow: 3px 3px 0 #3B8C3F;
}
.ex-continue span { display: block; font-size: .66rem; font-weight: 600; opacity: .9; }
