:root {
  --ground: #EEF0F7;
  --card: #FFFFFF;
  --ink: #12161F;
  --muted: #5D6472;
  --line: #DCDFE8;
  --brand: #16119C;
  --brand-2: #3B2FD9;
  --brand-soft: #E6E4FB;
  --on-brand: #D9D6FF;
  --green: #1E9E57;
  --green-soft: #DDF3E5;
  --blue: #2F6FE4;
  --blue-soft: #DFE9FC;
  --orange: #EC7A1C;
  --orange-soft: #FFEBD6;
  --red: #C8322F;
  --rounded: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--brand); }

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

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { font-family: var(--rounded); }

h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
}

h3 { font-size: 21px; line-height: 1.25; margin: 0 0 8px; }

p { margin: 0 0 14px; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.intro { color: var(--muted); font-size: 19px; max-width: 38em; margin: 0 0 44px; }

.center { text-align: center; }
.center .intro { margin-left: auto; margin-right: auto; }

section { padding: 96px 0; }

/* Fond indigo à vagues, repris des captures App Store */

.waves {
  background: var(--brand) url("/img/hero-waves.jpg") center / cover no-repeat;
  color: #fff;
}

/* En-tête */

header.top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--rounded);
  font-weight: 700;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
}

.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }

.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.top nav a { color: var(--on-brand); text-decoration: none; }
.top nav a:hover { color: #fff; }
.top nav .lang { padding: 6px 12px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 99px; color: #fff; }

/* Bouton App Store */

.store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px 12px 18px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  line-height: 1.15;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 12px; opacity: 0.8; }
.store strong { display: block; font-size: 19px; font-weight: 600; }
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.store.light { background: #fff; color: #000; }

/* Hero */

.hero {
  overflow: hidden;
  /* Voile indigo profond : les vagues seules sont trop saturées et fatiguent les yeux */
  background-image: linear-gradient(rgba(13, 11, 64, 0.42), rgba(13, 11, 64, 0.42)), url("/img/hero-waves.jpg");
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: end;
}

.hero-copy { align-self: center; padding: 24px 0 72px; }

.hero h1 {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.02;
  letter-spacing: -1.5px;
  margin: 0 0 22px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #9FD3FF, #C9B8FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead { font-size: 20px; color: #E2E0FA; margin: 0 0 30px; max-width: 32em; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 14px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 500;
}

.hero-visual { position: relative; align-self: end; }
.hero-visual > img { width: 100%; max-width: 440px; margin: 0 auto -1px; }

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(8, 6, 60, 0.35);
  font-size: 14px;
  line-height: 1.3;
  animation: float 6s ease-in-out infinite;
}

.float b { display: block; font-size: 16px; }
.float span { color: var(--muted); }
.float i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font-style: normal; font-size: 18px; }
.float.one { left: -2%; top: 60%; }
.float.two { right: -2%; top: 82%; animation-delay: -3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Bandeau des matières */

.marquee {
  padding: 26px 0;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.marquee p { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 16px; }

.track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: slide 60s linear infinite;
}

.track + .track { margin-top: 12px; animation-direction: reverse; animation-duration: 70s; }

.track span {
  padding: 9px 16px;
  border-radius: 12px;
  background: var(--ground);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.track span:nth-child(4n+1) { background: var(--green-soft); }
.track span:nth-child(4n+2) { background: var(--blue-soft); }
.track span:nth-child(4n+3) { background: var(--orange-soft); }
.track span:nth-child(4n) { background: var(--brand-soft); }

@keyframes slide { to { transform: translateX(-50%); } }

/* Étapes */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 30px 26px 28px;
  border-radius: 24px;
  background: #fff;
}

.steps .icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
}

.steps .icon svg { width: 26px; height: 26px; }
.steps .num { position: absolute; top: 24px; right: 26px; font-family: var(--rounded); font-size: 44px; font-weight: 800; color: var(--ground); }
.steps p { color: var(--muted); margin: 0; }

.i-green { background: var(--green-soft); color: var(--green); }
.i-blue { background: var(--blue-soft); color: var(--blue); }
.i-orange { background: var(--orange-soft); color: var(--orange); }
.i-brand { background: var(--brand-soft); color: var(--brand); }

svg.stroke { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Démo interactive */

.demo { background: #fff; }

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.demo-copy ul { padding: 0; margin: 20px 0 0; list-style: none; }
.demo-copy li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); }
.demo-copy li + li { margin-top: 10px; }
.demo-copy li b { color: var(--ink); min-width: 92px; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; transform: translateY(-1px); }

.player {
  padding: 26px;
  border-radius: 28px;
  background: var(--ground);
}

.player-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.progress { height: 8px; border-radius: 8px; background: #fff; overflow: hidden; margin-bottom: 18px; }
.progress div { height: 100%; width: 20%; background: var(--ink); border-radius: 8px; transition: width 0.3s ease; }

.flip {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 0;
  background: none;
  perspective: 1200px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.flip-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.3, 1);
}

.flip.flipped .flip-inner { transform: rotateY(180deg); }

.face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px;
  border-radius: 22px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  text-align: center;
  box-shadow: 0 18px 40px rgba(22, 17, 156, 0.18);
}

.face.front { background: var(--brand) url("/img/waves.webp") center / cover; color: #fff; }
.face.back { background: #fff; transform: rotateY(180deg); }
.face .tag { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; opacity: 0.75; }
.face .text { font-family: var(--rounded); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.3; }
.face .hint { font-size: 13px; opacity: 0.7; }

.rate {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.rate button {
  padding: 12px 4px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font: 600 15px/1.2 -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  transition: transform 0.1s ease, opacity 0.2s ease;
}

.rate button small { display: block; font-size: 12px; font-weight: 500; opacity: 0.85; margin-top: 2px; }
.rate button:active { transform: scale(0.96); }
.rate button:disabled { opacity: 0.35; cursor: default; }
.rate .again { background: var(--red); }
.rate .hard { background: var(--orange); }
.rate .ok { background: var(--green); }
.rate .perfect { background: var(--blue); }

.player-note { min-height: 1.6em; margin: 14px 0 0; text-align: center; font-size: 15px; color: var(--muted); }

/* Bento des fonctionnalités */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.tile {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  padding: 32px 30px 0;
}

.tile.big { grid-column: span 3; display: flex; flex-direction: column; }
.tile.small { grid-column: span 2; padding-bottom: 28px; }
.tile p { color: var(--muted); }
.tile.big p { max-width: 30em; }
.tile.big img { width: 78%; max-width: 380px; margin: 16px auto 0; aspect-ratio: 660 / 560; object-fit: cover; object-position: top; }

.tile.green { background: var(--green-soft); }
.tile.blue { background: var(--blue-soft); }
.tile.orange { background: var(--orange-soft); }
.tile.waves p { color: var(--on-brand); }
.tile .label { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.tile.green .label { color: var(--green); }
.tile.blue .label { color: var(--blue); }
.tile.orange .label { color: var(--orange); }
.tile.waves .label { color: #B9B2FF; }

.tile .icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 14px; }
.tile .icon svg { width: 24px; height: 24px; }

/* Courbe de l'oubli */

.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.curve {
  padding: 26px 24px 18px;
  border-radius: 28px;
  background: #fff;
}

.curve svg { width: 100%; height: auto; display: block; }
.curve .axis { stroke: var(--line); stroke-width: 2; }
.curve .forget { fill: none; stroke: #B7BCC9; stroke-width: 3; stroke-dasharray: 7 7; }
.curve .fsrs { fill: none; stroke: var(--brand); stroke-width: 4; stroke-linejoin: round; }
.curve .area { fill: url(#fade); }
.curve circle { fill: var(--orange); stroke: #fff; stroke-width: 3; }
.curve text { font: 600 13px -apple-system, BlinkMacSystemFont, sans-serif; fill: var(--muted); }
.curve text.brand { fill: var(--brand); }

.points { margin: 0; padding: 0; list-style: none; }
.points li { display: flex; gap: 16px; }
.points li + li { margin-top: 22px; }
.points p { color: var(--muted); margin: 0; }
.points .icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; }
.points .icon svg { width: 22px; height: 22px; }

/* Tableau comparatif */

.compare { background: #fff; }

.table-scroll { overflow-x: auto; border-radius: 24px; border: 1px solid var(--line); }

table { width: 100%; min-width: 600px; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
th, td { padding: 18px 16px; vertical-align: middle; }
thead th { font-family: var(--rounded); font-size: 16px; line-height: 1.3; text-align: center; background: var(--ground); }
thead th:first-child { width: 28%; }
thead th.us { background: var(--brand); color: #fff; }
tbody tr + tr > * { border-top: 1px solid var(--line); }
tbody th { font-weight: 600; text-align: left; padding-left: 22px; }
td { color: var(--muted); text-align: center; line-height: 1.35; }
td.us { background: #F5F4FF; color: var(--ink); font-weight: 600; }

/* Une pastille par case, posée au-dessus du texte pour que tout reste aligné */
.yes, .no, .mid {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
/* Symboles dessinés en SVG : les caractères ✓ ✕ – ne sont jamais centrés pareil selon la police */
.yes, .no, .mid { font-size: 0; background-position: center; background-size: 14px; background-repeat: no-repeat; }
.yes { background-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.no { background-color: #C3C7D2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.mid { background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }

/* Tarifs */

.plans {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.plan { border-radius: 28px; padding: 34px 32px; background: #fff; }
.plan h3 { font-size: 18px; color: var(--muted); margin: 0; }
.plan .price { font-family: var(--rounded); font-size: 40px; line-height: 1.15; font-weight: 800; letter-spacing: -1px; margin: 6px 0 4px; }
.plan .price small { font-size: 18px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan ul { padding: 0; margin: 22px 0 0; list-style: none; }
.plan li { display: flex; gap: 10px; }
.plan li + li { margin-top: 10px; }
.plan li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 800; transform: translateY(2px); }
.plan.premium { position: relative; box-shadow: 0 24px 50px rgba(22, 17, 156, 0.3); }
.plan.premium h3, .plan.premium .price small, .plan.premium .note { color: var(--on-brand); }
.plan.premium li::before { background: rgba(255, 255, 255, 0.18); color: #fff; }
.plan .note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.badge { position: absolute; top: 24px; right: 24px; padding: 5px 12px; border-radius: 99px; background: #FFD66B; color: #3A2A00; font-size: 13px; font-weight: 700; }

/* FAQ */

.faq-wrap { max-width: 860px; }

.faq-list {
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 20px 50px rgba(22, 17, 156, 0.06);
}

.faq details { border-top: 1px solid var(--line); transition: background 0.2s ease; }
.faq details:first-child { border-top: 0; }
.faq details[open] { background: #F8F7FF; }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
}
.faq summary:hover { color: var(--brand); }
.faq summary::-webkit-details-marker { display: none; }

/* Le + est dessiné en CSS : un caractère de police n'est jamais centré pareil partout */
.faq summary::after {
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--brand), var(--brand)) center / 12px 2px no-repeat,
    linear-gradient(var(--brand), var(--brand)) center / 2px 12px no-repeat,
    var(--brand-soft);
  transition: transform 0.25s ease, background-color 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(#fff, #fff) center / 12px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 12px no-repeat,
    var(--brand);
}
.faq details p { margin: -8px 0 0; padding: 0 76px 26px 28px; color: var(--muted); }

.faq-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 20px;
  padding: 18px 24px 18px 18px;
  border-radius: 24px;
  background: #fff;
}
.faq-contact img { width: 64px; height: 64px; flex: none; }
.faq-contact div { flex: 1; }
.faq-contact strong { font-family: var(--rounded); font-size: 19px; }
.faq-contact p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.faq-contact a {
  flex: none;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.faq-contact a:hover { background: var(--brand-2); }

@media (max-width: 560px) {
  .faq summary { padding: 20px; font-size: 17px; }
  .faq details p { padding: 0 20px 22px; }
  .faq-contact { flex-wrap: wrap; }
  .faq-contact a { width: 100%; text-align: center; }
}

/* Appel final */

.cta {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: end;
  overflow: hidden;
  border-radius: 36px;
  padding: 0 56px;
  margin-bottom: 96px;
}

.cta .copy { padding: 64px 0; }
.cta h2 { color: #fff; }
.cta p { color: var(--on-brand); font-size: 19px; margin-bottom: 30px; }
.cta img { width: 100%; max-width: 340px; margin: 40px auto -1px; }

/* Pied de page */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 48px;
  font-size: 15px;
  color: var(--muted);
}

footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
footer .brand { color: var(--ink); font-size: 17px; }
footer .brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: none; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
footer a { color: var(--muted); }

/* Tablette et mobile */

@media (max-width: 900px) {
  .top nav .hide-sm { display: none; }
  .hero-grid, .demo-grid, .why-grid, .cta { grid-template-columns: 1fr; }
  .hero-copy { padding: 24px 0 8px; }
  .hero-visual > img { max-width: 400px; }
  .float.one { left: 0; }
  .float.two { right: 0; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.big { grid-column: span 2; }
  .tile.small { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; }
  .cta { padding: 0 24px; text-align: center; }
  .cta .copy { padding: 48px 0 0; }
  .cta img { max-width: 260px; margin-top: 8px; }
  section { padding: 72px 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile.big, .tile.small { grid-column: span 1; }
  .tile.big img { width: 90%; }
  .float { font-size: 13px; padding: 10px 12px; }
  .float b { font-size: 14px; }
  .float i { width: 30px; height: 30px; font-size: 15px; }
  .rate button { font-size: 14px; }
  .rate button small { font-size: 11px; }
  .face { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .track, .float { animation: none; }
  .flip-inner { transition: none; }
}

/* Les tuiles et cartes indigo gardent le fond à vagues malgré leur fond blanc par défaut */
.tile.waves, .plan.waves {
  background: var(--brand) url("/img/hero-waves.jpg") center / cover no-repeat;
  color: #fff;
}

/* Déblocage par flashcards */

.unlock { background: #0D0B40; color: #fff; }
.unlock .eyebrow { background: rgba(255, 255, 255, 0.12); color: #FFD66B; }
.unlock .intro { color: var(--on-brand); }

.unlock-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.shield {
  position: relative;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 26px 30px;
  border: 10px solid #1B1B1F;
  border-radius: 52px;
  background: linear-gradient(180deg, #1D1896, #16119C);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 0 2px #3A3A40;
  text-align: center;
}

.shield::before {
  content: "";
  position: absolute;
  top: 12px;
  width: 90px;
  height: 26px;
  border-radius: 20px;
  background: #000;
}

.shield img { width: 150px; margin-bottom: 18px; }
.shield strong { font-family: var(--rounded); font-size: 24px; line-height: 1.2; }
.shield p { margin: 10px 0 0; color: #C8C8E6; font-size: 16px; line-height: 1.4; }
.shield .primary { width: 100%; margin-top: auto; padding: 14px; border-radius: 16px; background: #5C54FF; font-weight: 600; }
.shield .secondary { margin-top: 12px; color: rgba(255, 255, 255, 0.75); font-weight: 500; font-size: 15px; }

.unlock-steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; }
.unlock-steps li { display: flex; gap: 14px; align-items: center; counter-increment: s; font-size: 18px; font-weight: 600; }
.unlock-steps li + li { margin-top: 14px; }
.unlock-steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #5C54FF; font-family: var(--rounded); }

.unlock-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.unlock-facts li { padding: 7px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); color: var(--on-brand); font-size: 14px; }

footer .about { flex-basis: 100%; margin: 0; font-size: 14px; }

@media (max-width: 900px) {
  .unlock-grid { grid-template-columns: 1fr; gap: 40px; }
  .shield { max-width: 280px; }
}

/* Keep the download action accessible throughout the mobile page. */
.top nav .mobile-download { display: none; }
/* Pages de decks et guide : le bouton reste visible sur ordinateur, le téléchargement est l'objectif */
.deck-hero .top nav .mobile-download { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 12px; background: #fff; color: var(--brand); font-weight: 700; }
.unlock-facts .free-feature { background: var(--green-soft); color: #146C3B; font-weight: 700; }

@media (max-width: 900px) {
  html { scroll-padding-top: calc(84px + env(safe-area-inset-top, 0px)); }
  .hero { padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
  header.top {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    min-height: calc(76px + env(safe-area-inset-top, 0px));
    padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px));
    background: #211A83;
    box-shadow: 0 2px 12px rgba(13, 11, 64, 0.18);
    gap: 12px;
  }
  .top nav { gap: 12px; }
  .top nav .mobile-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff;
    color: var(--brand);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
  }
  .mobile-download:focus-visible { outline: 3px solid #FFD66B; outline-offset: 3px; }
}

@media (max-width: 560px) {
  header.top .brand { font-size: 15px; gap: 7px; }
  header.top .brand img { width: 30px; height: 30px; }
  .top nav .lang { display: none; } /* Language links remain in the footer. */
}

/* Compact comparison: all options stay visible on a phone. */
.compare-short, .compare-mobile-note { display: none; }
@media (max-width: 560px) {
  .table-scroll { border-radius: 16px; }
  .table-scroll table { min-width: 0; font-size: 13px; line-height: 1.35; }
  .table-scroll th, .table-scroll td { padding: 12px 5px; overflow-wrap: anywhere; }
  .table-scroll thead th { font-size: 13px; padding-inline: 2px; white-space: nowrap; }
  .table-scroll thead th:first-child { width: 27%; }
  .table-scroll tbody th { padding-left: 8px; }
  .table-scroll .yes, .table-scroll .no, .table-scroll .mid { width: 20px; height: 20px; margin-bottom: 5px; background-size: 12px; }
  .compare-full { display: none; }
  .compare-short { display: inline; }
  .compare-mobile-note { display: block; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
}

/* Sélecteur de langue (en-tête) et liste des langues (pied de page) */

.lang-menu { position: relative; }
.lang-menu summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang-menu[open] summary::after { transform: translateY(1px) rotate(225deg); }
.lang-menu ul {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 170px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(8, 6, 60, 0.3);
}
.top nav .lang-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--ink); }
.top nav .lang-menu a:hover { background: var(--ground); color: var(--ink); }
.top nav .lang-menu a[aria-current="page"] { color: var(--brand); font-weight: 700; }

footer nav.langs { flex-basis: 100%; gap: 14px; font-size: 14px; }
footer nav.langs a[aria-current="page"] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Coréen : on ne coupe qu'entre les mots. Japonais : titres coupés par groupes de mots quand le navigateur sait le faire */
:lang(ko) { word-break: keep-all; }
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }

/* Articles (guides et comparatifs) */

.article-hero { padding-bottom: 64px; }
.article-hero .wrap { max-width: 900px; }
.article-hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -1px; margin: 32px 0 16px; }
.article-hero .lead { font-size: 20px; color: var(--on-brand); margin: 0; max-width: 40em; }
.article-hero .byline { margin-top: 22px; }

.article { max-width: 820px; margin: 0 auto; padding: 56px 20px 24px; }
.article h2 { font-size: clamp(26px, 3.2vw, 34px); margin: 56px 0 14px; }
.article h3 { font-size: 22px; margin: 0 0 6px; }
.article p, .article li { color: #3E4452; }
.article ul { padding-left: 20px; }
.article li + li { margin-top: 6px; }
.article .table-scroll { margin: 20px 0 8px; }
.article table { min-width: 720px; font-size: 14px; }
.article td { text-align: left; }
.article .table-note { font-size: 14px; color: var(--muted); }

.disclosure {
  margin: 0 0 32px;
  padding: 18px 20px;
  border-left: 4px solid var(--orange);
  border-radius: 0 16px 16px 0;
  background: var(--orange-soft);
  font-size: 16px;
}
.disclosure p { margin: 0; color: #5B3A12; }

.verdict { padding: 26px 26px 16px; border-radius: 24px; background: #fff; }
.verdict h2 { margin-top: 0; font-size: 24px; }
.verdict ul { list-style: none; padding: 0; }
.verdict li { display: flex; gap: 10px; }
.verdict li::before { content: "→"; color: var(--brand); font-weight: 800; }

.app-review {
  position: relative;
  margin: 24px 0;
  padding: 28px 28px 20px;
  border-radius: 24px;
  background: #fff;
}
.app-review.ours { box-shadow: inset 0 0 0 2px var(--brand); }
.app-review .rank {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--rounded);
  font-size: 40px;
  font-weight: 800;
  color: var(--ground);
}
.app-review .best {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.app-review dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 14px 0; font-size: 15px; }
.app-review dt { font-weight: 700; color: var(--ink); }
.app-review dd { margin: 0; color: #3E4452; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.pros-cons h4 { margin: 0 0 6px; font-size: 15px; }
.pros-cons ul { margin: 0; font-size: 15px; }
.pros-cons .pros h4 { color: var(--green); }
.pros-cons .cons h4 { color: var(--red); }

.article-cta { margin: 56px 0 16px; padding: 32px 28px; border-radius: 28px; text-align: center; }
.article-cta h2 { margin: 0 0 10px; color: #fff; }
.article-cta p { color: var(--on-brand); margin-bottom: 22px; }
.article-cta.waves { background: var(--brand) url("/img/hero-waves.jpg") center / cover no-repeat; }

@media (max-width: 640px) {
  .pros-cons { grid-template-columns: 1fr; }
  .app-review { padding: 24px 20px 16px; }
  .app-review .rank { font-size: 32px; top: 20px; right: 20px; }
  .app-review dl { grid-template-columns: 1fr; gap: 2px; }
  .app-review dd { margin-bottom: 8px; }
}
.article table { table-layout: auto; }
.article thead th { text-align: left; }
.article thead th:first-child { width: auto; }
.article tbody th { white-space: nowrap; }
.article td:nth-child(5) { white-space: normal; min-width: 130px; }
.app-review .sources { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.app-review .sources a { color: var(--muted); }
.compare-more { margin: 18px 0 0; text-align: center; font-size: 16px; color: var(--muted); }

/* Decks à ajouter dans l'app */

.deck-hero { padding-bottom: 48px; color: #fff; background: radial-gradient(circle at 88% 0%, var(--c, var(--brand-2)) 0, transparent 55%), var(--brand); }
.deck-hero .wrap { max-width: 1040px; }
.deck-hero h1 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.08; letter-spacing: -1px; margin: 18px 0 10px; }
.deck-hero h1 .lvl { display: inline-block; margin-left: 10px; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); font-size: 0.45em; letter-spacing: 0; vertical-align: middle; }
.deck-hero .sub { margin: 0; color: var(--on-brand); font-size: 18px; max-width: 36em; }
.crumbs { margin: 28px 0 0; font-size: 14px; color: var(--on-brand); }
.crumbs a { color: #fff; }
.add-btn { display: inline-block; margin-top: 26px; padding: 15px 24px; border-radius: 16px; background: #fff; color: var(--brand); font-weight: 700; text-decoration: none; transition: transform 0.2s ease; }
.add-btn:hover { transform: translateY(-2px); }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; margin-top: 26px; }
.hero-actions .add-btn { margin-top: 0; display: inline-flex; align-items: center; }
.add-btn img { width: 28px; height: 28px; margin-right: 10px; border-radius: 7px; flex: none; }
.cta-note { margin: 10px 0 0; font-size: 14px; color: var(--on-brand); }
.part-of-link { margin-top: 18px; color: var(--on-brand); font-size: 15px; text-decoration: none; }
.part-of-link strong { color: #fff; }
.part-of-link:hover { text-decoration: underline; }
.pdf-link { margin-top: 8px; color: var(--on-brand); font-size: 15px; font-weight: 600; text-decoration: none; }
.pdf-link:hover { color: #fff; text-decoration: underline; }
.bar-actions { display: flex; gap: 8px; }
.bar-actions a.pill-btn { text-decoration: none; }
/* Rappel après les cartes : sur fond clair, le bouton prend la couleur de la marque */
.cta-end { display: flex; flex-direction: column; align-items: center; margin-top: 32px; text-align: center; }
.cta-end .add-btn { display: inline-flex; align-items: center; margin-top: 0; background: var(--brand); color: #fff; }
.cta-end .cta-note { color: var(--muted); }
.qr-dialog { max-width: 340px; padding: 28px; border: 0; border-radius: 24px; text-align: center; box-shadow: 0 24px 60px rgba(18, 22, 31, 0.25); }
.qr-dialog::backdrop { background: rgba(18, 22, 31, 0.45); }
.qr-dialog h2 { margin: 0 0 8px; font-size: 22px; }
.qr-dialog p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }
.qr-dialog .qr svg { display: block; width: 220px; height: 220px; margin: 0 auto 14px; }
.qr-dialog a { color: var(--brand); font-size: 14px; font-weight: 600; }
.qr-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }

.deck-page { max-width: 1040px; margin: 0 auto; padding: 40px 20px 24px; }
.deck-page h2 { font-size: clamp(24px, 3vw, 30px); margin: 0; }
.deck-page section { padding: 0; }
.deck-page section + section { margin-top: 56px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pill-btn { padding: 9px 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.pill-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Une carte par mot, retournée au toucher : les deux faces restent dans la page */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.fc { display: block; width: 100%; aspect-ratio: 3 / 2; padding: 0; border: 0; background: none; perspective: 1000px; cursor: pointer; font: inherit; color: inherit; }
.fc-inner { display: block; position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.5s cubic-bezier(0.3, 0.7, 0.3, 1); }
.fc.flipped .fc-inner { transform: rotateY(180deg); }
.fc-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 18px; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; font-family: var(--rounded); font-size: 19px; font-weight: 700; line-height: 1.3; }
.fc-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.fc-front { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), inset 0 5px 0 var(--c, var(--brand)); }
.fc-back { background: var(--c, var(--brand)); color: var(--on-c, #fff); transform: rotateY(180deg); }
.fc-face small { font-size: 0.8em; font-weight: 500; opacity: 0.75; }
.fc.long .fc-face { font-size: 15px; }
.fc:hover .fc-front { box-shadow: inset 0 0 0 2px var(--c, var(--brand)), inset 0 5px 0 var(--c, var(--brand)); }

/* Pièges du deck : une seule rangée, qui défile à partir du quatrième */
.notes-wrap h2 { font-size: 20px; }
.deck-page .notes-wrap + section { margin-top: 36px; }
.notes { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -20px 0; padding: 0 20px 6px; list-style: none; scrollbar-width: thin; }
.notes li { flex: 0 0 calc((100% - 28px) / 3); scroll-snap-align: start; padding: 16px 18px; border-radius: 16px; background: var(--orange-soft); color: #4A3110; font-size: 15px; line-height: 1.45;
  /* Texte centré verticalement : un conseil court ne reste pas collé en haut à côté d'un long */
  display: flex; align-items: center; }

/* Leçon d'un deck de grammaire : les règles en clair, avant les exercices */
.rules { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 18px; }
.rule { padding: 18px 20px; border-radius: 18px; background: #fff; border-left: 6px solid var(--c, var(--brand)); }
.rule h3 { margin: 0 0 8px; font-size: 16px; line-height: 1.35; }
.rule p { margin: 0; color: #3E4452; font-size: 15px; line-height: 1.55; }
.rule small { font-size: 0.9em; color: var(--muted); }
.cards.wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.see-also { margin: 14px 0 0; font-weight: 600; }
.see-also a { color: var(--brand); }

/* Guide : un article sobre, colonne de lecture, tableau du plan */
.g-bar { padding-bottom: 0; background: var(--brand); }
/* Le menu des langues dépasse de l'en-tête : on ne le coupe pas, et il passe au-dessus du contenu */
.deck-hero { position: relative; z-index: 5; overflow: visible; }
.g-article { max-width: 760px; margin: 0 auto; }
.g-head { padding: 8px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.g-crumbs, .g-crumbs a { color: var(--muted); }
.g-head h1 { margin: 10px 0 14px; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; letter-spacing: -0.5px; color: var(--ink); }
.g-dek { margin: 0 0 16px; font-size: 20px; line-height: 1.5; color: #3E4452; }
.g-meta { margin: 0; font-size: 14px; color: var(--muted); }
.g-article > p, .g-article section > p { font-size: 18px; line-height: 1.7; color: #2B3040; }
.g-article section { margin-top: 48px; }
.g-article h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 28px); }
.g-article a { color: var(--brand); }
.g-plan-wrap { margin: 16px 0 0; }
.g-plan { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0 8px; font-size: 14.5px; }
.g-plan th, .g-plan td { padding: 14px 12px; text-align: left; vertical-align: top; line-height: 1.45; }
.g-plan tbody th, .g-plan tbody td { background: #fff; }
.g-plan tbody th { padding-left: 16px; border-radius: 14px 0 0 14px; }
.g-plan tbody td:last-child { padding-right: 16px; border-radius: 0 14px 14px 0; }
.g-plan thead th { padding-top: 0; padding-bottom: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
.g-plan thead th:first-child { width: 60px; padding-left: 16px; }
.g-plan thead th:last-child { width: 32%; }
.g-wk { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px; font-weight: 800; }
.g-deck { display: block; color: var(--ink) !important; text-decoration: none; }
.g-deck + .g-deck { margin-top: 4px; }
.g-deck:hover { color: var(--brand) !important; text-decoration: underline; }
.g-skill { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; }
.g-skill-listening { background: #DDF6F4; color: #0B7A72; }
.g-skill-reading { background: var(--green-soft); color: var(--green); }
.g-skill-writing { background: var(--orange-soft); color: #A85A00; }
.g-skill-speaking { background: #FFE1E8; color: #B8173D; }
.g-skill-test { background: var(--brand-soft); color: var(--brand); }
.g-focus { display: block; color: #3E4452; }
.g-meta a { color: var(--muted); }
/* Sommaire : une ligne de liens courts, qui passe à la ligne sur mobile */
.g-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; }
.g-toc a { padding: 5px 11px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.g-toc a:hover { box-shadow: inset 0 0 0 1px var(--brand); color: var(--brand); }
.g-article section, .g-method { scroll-margin-top: 20px; }
.deck-page .g-method { margin: 56px 0 0; }
.deck-page .g-step { margin-top: 20px; padding: 24px; border-radius: 20px; background: #fff; }
.deck-page .g-method + .g-step { margin-top: 16px; }
.g-step h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 21px; }
.g-num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 16px; font-weight: 800; }
.g-step p { margin: 12px 0 0; }
.g-step .g-cta { margin: 20px 0 0; border-radius: 14px; background: var(--brand-soft); }
.g-prompt { position: relative; margin: 12px 0; padding: 14px 16px; border-radius: 14px; background: var(--ground); }
.g-prompt p { margin: 0 !important; padding-right: 64px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px !important; line-height: 1.55 !important; color: var(--ink) !important; }
.g-copy { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border: 0; border-radius: 8px; background: #fff; color: var(--brand); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.g-routine { margin: 14px 0; padding: 0; list-style: none; }
.g-check { margin: 14px 0; padding: 24px; border-radius: 20px; background: #fff; list-style: none; }
.g-routine li { padding: 12px 16px; border-radius: 14px; background: #fff; font-size: 16px; line-height: 1.5; }
.g-routine li + li { margin-top: 6px; }
.g-check li { font-size: 16px; line-height: 1.5; }
.g-check li + li { margin-top: 8px; }
.g-check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.g-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.g-cta { margin: 28px 0 8px; padding: 24px; border-radius: 20px; background: var(--brand-soft); }
.g-cta h3 { margin: 0 0 6px; font-size: 21px; }
.g-cta p { margin: 0; font-size: 16px; line-height: 1.55; color: #2B3040; }
.g-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.g-article .g-btn { display: inline-block; padding: 12px 18px; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; text-decoration: none; }
.g-article .g-btn-2 { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.g-article .g-cta-link { font-weight: 600; }
.g-cta-end { margin-top: 44px; }
.g-week-label { display: none; }
@media (max-width: 640px) {
  .deck-page .g-step { padding: 20px 18px 22px; }
  /* Le plan devient une carte par semaine, sans défilement horizontal */
  .g-plan-wrap { overflow: visible; margin: 18px 0 0; padding: 0; }
  .g-plan, .g-plan tbody, .g-plan tr, .g-plan th, .g-plan td { display: block; width: auto; min-width: 0; }
  .g-plan thead { display: none; }
  .g-plan tr { margin-bottom: 12px; padding: 14px 16px; border-radius: 16px; background: #fff; }
  .g-plan th, .g-plan td { padding: 4px 0; border: 0; }
  .g-plan tbody th { font-size: 18px; color: var(--brand); }
  .g-week-label { display: inline; }
  .g-wk { display: none; }
  .g-plan tbody th, .g-plan tbody td { border-radius: 0; background: none; padding-left: 0; padding-right: 0; }
  .g-plan td::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); }
}

/* Accès au guide depuis /decks/ et les pages de deck */
.guide-card { display: block; margin: 0 0 22px; padding: 24px; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; transition: box-shadow 0.2s ease; }
.guide-card:hover { box-shadow: 0 12px 28px rgba(18, 22, 31, 0.08); }
.guide-card small { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--brand); }
.guide-card strong { display: block; margin: 4px 0; font-family: var(--rounded); font-size: 21px; }
.guide-card span { color: var(--muted); font-size: 15px; }
.part-of-link.guide-link { margin-top: 8px; }

/* Blog : un article par carte */
.posts { display: grid; gap: 14px; margin-top: 8px; }
.post { display: block; padding: 24px; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; transition: box-shadow 0.2s ease; }
.post:hover { box-shadow: 0 12px 28px rgba(18, 22, 31, 0.08); }
.post strong { display: block; font-family: var(--rounded); font-size: 21px; line-height: 1.3; }
.post span { display: block; margin: 8px 0 12px; color: #3E4452; font-size: 16px; line-height: 1.55; }
.post b { color: var(--brand); font-size: 15px; }

/* Tuiles de deck et de collection */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.tile-deck { display: flex; flex-direction: column; height: 100%; padding: 18px 18px 16px; border-radius: 18px; background: #fff; text-decoration: none; color: var(--ink); border-top: 6px solid var(--c, var(--brand)); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.tile-deck:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(18, 22, 31, 0.08); }
.tile-deck strong { font-family: var(--rounded); font-size: 18px; line-height: 1.25; }
.tile-deck span { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--muted); }
.tiles li[hidden] { display: none; }

.collections { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; list-style: none; }
.collections li { flex: 0 0 min(100%, 420px); scroll-snap-align: start; }
.collections.pair { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0 0 14px; padding: 0; }
@media (max-width: 700px) { .collections.pair { grid-template-columns: 1fr; } }
.collection { display: block; height: 100%; padding: 26px; border-radius: 24px; color: #fff; text-decoration: none; background: radial-gradient(circle at 90% 0%, var(--c, var(--brand-2)) 0, transparent 60%), var(--brand); }
.collection small { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--on-brand); }
.collection strong { display: block; margin: 6px 0 4px; font-family: var(--rounded); font-size: 28px; }
.collection span { color: var(--on-brand); }

.more { display: none; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.deck-about p { color: #3E4452; }
.deck-about h2 { margin-bottom: 18px; }
.deck-about h3 { margin: 22px 0 8px; font-size: 17px; }
.sources { margin: 0; padding-left: 18px; font-size: 15px; }
.sources li + li { margin-top: 6px; }
.byline-small { margin: 48px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fc { aspect-ratio: 16 / 10; }
  .notes li { flex-basis: 82%; }
  .hero-actions { align-items: stretch; }
  .hero-actions .add-btn, .cta-end .add-btn { justify-content: center; text-align: left; }
  /* Sur téléphone, les 12 premières cartes puis un bouton : le reste est dans la page, seulement replié */
  .cards.folded li:nth-child(n+13) { display: none; }
  .more { display: block; width: 100%; margin-top: 12px; }
  .fc-face { padding: 12px; font-size: 16px; border-radius: 14px; }
  .fc.long .fc-face { font-size: 12px; }
  .cards.wide { grid-template-columns: 1fr; }
  .cards.wide .fc { aspect-ratio: 5 / 2; }
  .cards.wide .fc.long .fc-face { font-size: 15px; }
  .rules { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .tile-deck { padding: 14px; }
  .tile-deck strong { font-size: 16px; }
}
