/* koalalingo.com : les couleurs de l'application, sur une page qui respire. */

:root {
  --ink: #1d2433;
  --ink-2: #4b5567;
  --ink-3: #7b8597;
  --line: #e6eaf1;
  --paper: #ffffff;
  --cream: #fbf7f0;

  --blue: #2f7fe0;
  --blue-deep: #1f5fb8;
  --blue-soft: #e8f2ff;
  --sky: #eaf6fb;
  --sky-ink: #1b7aa6;
  --amber: #ef9f27;
  --amber-deep: #a85b08;
  --amber-soft: #fdf0db;
  --green: #1fa971;
  /* Le vert des textes : 5,6:1 sur blanc, la ou --green n'atteint que 3:1. */
  --green-deep: #11754d;
  --green-soft: #e3f6ec;
  --pink: #ee5a8a;
  --pink-deep: #b3295a;
  --pink-soft: #fde8ef;
  --violet: #7a5cf0;
  --violet-deep: #4e35c4;
  --violet-soft: #efeaff;

  --radius: 22px;
  --shadow: 0 10px 30px rgba(29, 36, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(31, 95, 184, 0.18);

  /* Ce qui passe au-dessus de quoi. */
  --z-collant: 40;
  --z-barre: 50;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-deep); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.ic { flex: none; }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.2;
  padding: 14px 24px; min-height: 48px; border-radius: 999px; text-wrap: balance;
  transition: background-color 0.15s ease-out, transform 0.15s ease-out;
}
.btn.primary { background: var(--blue-deep); color: #fff; box-shadow: 0 8px 20px rgba(31, 95, 184, 0.28); }
.btn.primary:hover { background: #184f9c; }
.btn.primary:active { transform: translateY(1px); }
.btn.big { font-size: 18px; padding: 17px 30px; min-height: 56px; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }

/* ---------- Barre ---------- */

.bar {
  position: sticky; top: 0; z-index: var(--z-barre);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.bar-in { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; }
.brand img { border-radius: 10px; }
.menu { display: flex; gap: 22px; margin-left: 12px; }
.menu a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover { color: var(--blue); }
.lang { margin-left: auto; position: relative; }
.lang summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink-2);
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  display: inline-flex; align-items: center; gap: 6px;
}
.lang summary::-webkit-details-marker { display: none; }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; min-width: 170px;
  display: grid;
}
.lang-list a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; }
.lang-list a:hover, .lang-list a[aria-current] { background: var(--blue-soft); color: var(--blue-deep); }
.bar-cta {
  background: var(--blue-deep); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(31, 95, 184, 0.28); white-space: nowrap;
}
.bar-cta:hover { background: #184f9c; }

.arrivee { background: var(--amber); color: #3b2102; font-weight: 700; padding: 12px 0; }
.arrivee .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }

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

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #eaf3ff 0%, #f5f9ff 55%, #ffffff 100%);
  padding: 72px 0 90px;
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; }
.b1 { width: 380px; height: 380px; background: #bfe0ff; top: -120px; right: 8%; }
.b2 { width: 300px; height: 300px; background: #ffe2b8; bottom: -80px; left: -60px; }
.b3 { width: 240px; height: 240px; background: #ffd3e2; top: 40%; right: -80px; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px;
  background: var(--paper); color: var(--green-deep); padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin: 22px 0 18px; }
.accent { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 500; color: var(--blue-deep); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0 0 26px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge img { height: 46px; width: auto; }
.note { color: var(--ink-2); font-size: 15px; margin: 16px 0 0; max-width: 520px; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .ic { color: var(--green-deep); }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 460px; }
.hero-visual .koala { position: absolute; left: -10px; bottom: 0; width: 170px; height: 170px; object-fit: contain; z-index: 3; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.12)); }
.phones { display: flex; gap: 18px; align-items: flex-start; }
.phones .p1 { margin-top: 56px; }

/* ---------- Telephones ---------- */

.phone {
  position: relative; width: 210px; border-radius: 34px; padding: 9px; background: #121722;
  box-shadow: var(--shadow-lg);
}
.phone img { border-radius: 26px; }
.phone .status { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 70px; height: 20px; background: #121722; border-radius: 12px; z-index: 2; }
.phone.small { width: 190px; }
.phone.lift { transform: translateY(-28px); }

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

.band { padding: 96px 0; }
.band.tint { background: linear-gradient(180deg, #f7f9fd 0%, #fbf7f0 100%); }
.title { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; text-align: center; }
.sub { text-align: center; color: var(--ink-2); font-size: 18px; max-width: 700px; margin: 14px auto 0; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.step { border-radius: var(--radius); padding: 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step .n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); }
.step.blue .n { background: var(--blue-soft); color: var(--blue-deep); }
.step.amber .n { background: var(--amber-soft); color: var(--amber-deep); }
.step.green .n { background: var(--green-soft); color: var(--green); }

.gallery { display: flex; justify-content: center; gap: 26px; margin-top: 70px; flex-wrap: wrap; }
.relance { text-align: center; margin-top: 64px; }
.relance h3 { font-size: clamp(22px, 2.6vw, 28px); font-weight: 800; }
.relance p { color: var(--ink-2); font-size: 17px; margin: 10px auto 22px; max-width: 520px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature { border-radius: var(--radius); padding: 26px; }
.feature .icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255, 255, 255, 0.85); margin-bottom: 14px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.feature.blue { background: var(--blue-soft); }
.feature.amber { background: var(--amber-soft); }
.feature.green { background: var(--green-soft); }
.feature.pink { background: var(--pink-soft); }
.feature.violet { background: var(--violet-soft); }
.feature.sky { background: var(--sky); }
/* L'icone prend le ton fonce de sa carte. */
.feature.blue .icon { color: var(--blue-deep); }
.feature.amber .icon { color: var(--amber-deep); }
.feature.green .icon { color: var(--green-deep); }
.feature.pink .icon { color: var(--pink-deep); }
.feature.violet .icon { color: var(--violet-deep); }
.feature.sky .icon { color: var(--sky-ink); }
.skins { display: flex; justify-content: center; gap: 18px; margin-top: 48px; flex-wrap: wrap; }
.skins img { width: 120px; height: 120px; object-fit: contain; background: var(--paper); border-radius: 28px; padding: 10px; box-shadow: var(--shadow); }

/* ---------- Langues ---------- */

.filtre-zone { position: relative; display: block; margin: 34px auto 26px; width: min(420px, 100%); }
.filtre-zone .ic { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.filtre {
  display: block; width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: 14px 20px 14px 46px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow);
}
.filtre::placeholder { color: var(--ink-2); }
.filtre:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.langues { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.langues li {
  position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px;
  align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.langues li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.langues li[hidden] { display: none; }
/* Un vrai drapeau, au format 4:3, avec un filet pour que le blanc ne se perde pas. */
.drapeau { grid-row: span 2; width: 32px; height: 24px; object-fit: cover; border-radius: 5px; background: var(--line); box-shadow: 0 0 0 1px rgba(29, 36, 51, 0.14); }
.nom { font-weight: 700; }
.niveaux { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.nouveau.bientot { background: var(--amber); color: #3b2102; }
.nouveau { position: absolute; top: -8px; right: 10px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }

/* ---------- FAQ ---------- */

.faq { margin-top: 40px; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; transition: box-shadow 0.15s ease; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; padding: 16px 30px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--blue); font-weight: 600; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 18px; color: var(--ink-2); }
.faq .vedette { background: var(--amber-soft); border-color: #f3d6a4; }

/* ---------- Telecharger ---------- */

.cta { background: linear-gradient(135deg, #2f7fe0 0%, #5b6cf0 55%, #8a5cf0 100%); color: #fff; text-align: center; padding: 90px 0; }
.cta .koala { margin: 0 auto 10px; width: 130px; height: 130px; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.2)); }
.cta h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; }
.cta p { font-size: 18px; margin: 12px auto 0; max-width: 620px; }
.cta .scan { font-size: 15px; margin-top: 22px; }
/* Sur un telephone on ne scanne pas son propre ecran : les codes s'effacent. */
.mobile .cta .scan, .mobile .store-qr { display: none; }
.mobile .store { padding: 12px 16px; border-radius: 18px; }
.stores { display: flex; justify-content: center; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.store { background: var(--paper); border-radius: 26px; padding: 18px; display: grid; gap: 12px; justify-items: center; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18); }
.store-qr { width: 150px; height: 150px; }
.store .store-badge, .store img.store-badge { height: 44px; width: auto; }

/* ---------- Pied ---------- */

footer { background: #121722; color: #aab3c2; padding: 34px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: #dbe2ee; text-decoration: none; }
.foot a:hover { color: #fff; }

/* ---------- Petits ecrans ---------- */

@media (max-width: 960px) {
  .menu { display: none; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { align-items: center; }
  .hero-stores { justify-content: center; }
  .note { margin-left: auto; margin-right: auto; }
  .facts { justify-content: center; }
  .hero-visual { min-height: 0; margin-top: 10px; }
  .hero-visual .koala { width: 120px; height: 120px; left: 0; }
  .phone { width: 170px; }
  .steps, .features, .prix { grid-template-columns: 1fr; }
  .livre { flex-direction: column; text-align: center; }
  .phone.lift { transform: none; }
}
@media (max-width: 560px) {
  .bar-cta { display: none; }
  .band { padding: 70px 0; }
  .btn.big { width: 100%; }
  .phones .p1 { display: none; }
  .gallery .phone:nth-child(n + 3) { display: none; }
  .langues { grid-template-columns: repeat(2, 1fr); }
  .drapeau { width: 28px; height: 21px; }
}

.pastille { display: inline-block; vertical-align: middle; background: var(--amber); color: #3b2102; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 999px; margin-left: 6px; letter-spacing: 0; }

/* ---------- Barre du bas, sur telephone ---------- */

.collant {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-collant);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(29, 36, 51, 0.08);
}
.collant[hidden] { display: none; }
.collant .btn { width: 100%; }
/* La barre ne doit pas masquer les liens du pied de page. */
.mobile footer { padding-bottom: 104px; }

/* ---------- Page introuvable ---------- */

.introuvable { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 40px 20px; }
.introuvable h1 { font-size: clamp(28px, 5vw, 40px); margin: 6px 0 0; }
.introuvable p { color: var(--ink-2); margin: 0 0 10px; max-width: 420px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .langues li, .faq details { transition: none; }
  .langues li:hover { transform: none; }
}

/* Un nom de langue qui mene a sa page : toute la carte se clique. */
.langues a.nom { color: inherit; text-decoration: none; }
.langues a.nom::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }
.langues a.nom:focus-visible { outline: none; }
.langues a.nom:focus-visible::after { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Pages par langue ---------- */

.hero.lp { padding: 36px 0 72px; }
.lp-in { position: relative; max-width: 860px; }
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 30px; }
.fil a { color: var(--ink-2); text-decoration: none; }
.fil a:hover { color: var(--blue-deep); }
.lp-drapeau { width: 72px; height: 54px; object-fit: cover; border-radius: 10px; background: var(--line); box-shadow: 0 0 0 1px rgba(29, 36, 51, 0.14), var(--shadow); }
.lp h1 { font-size: clamp(34px, 4.6vw, 54px); margin-top: 20px; }

/* Ce que le cours contient, en phrases courtes. */
.points { list-style: none; padding: 0; margin: 0 0 64px; display: grid; gap: 12px; }
.points li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.points .ic { color: var(--green-deep); margin-top: 5px; }
.lp-h2 { margin-top: 80px; }
.points + .lp-h2 { margin-top: 0; }

/* L'extrait se lit comme dans l'application : serif, sur le fond creme. */
.extrait { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.extrait li { background: var(--cream); border-radius: 18px; padding: 18px 22px; }
.extrait p { margin: 0; }
.extrait .cible { font-family: 'Newsreader', Georgia, serif; font-weight: 500; font-size: 22px; line-height: 1.5; }
.extrait .roman { font-size: 14.5px; font-style: italic; color: var(--ink-2); margin-top: 4px; }
.extrait .trad { font-size: 16px; color: var(--blue-deep); margin-top: 8px; }

.mots { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.mots li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.mots .cible { font-weight: 700; font-size: 18px; text-align: left; }
.mots .roman { font-size: 13.5px; font-style: italic; color: var(--ink-2); }
.mots .trad { font-size: 15px; color: var(--ink-2); }

.chapitres { max-width: 980px; margin: 32px auto 0; padding: 0; columns: 3 250px; column-gap: 36px; list-style-position: inside; }
.chapitres li { padding: 7px 0; break-inside: avoid; }
.chapitres li::marker { color: var(--ink-2); font-weight: 700; }
.lp-autres { margin-top: 36px; }

@media (max-width: 960px) {
  .lp-in { text-align: center; }
  .fil { justify-content: center; }
  .lp-drapeau { margin: 0 auto; }
  .points li { text-align: left; }
}
@media (max-width: 560px) {
  .extrait .cible { font-size: 20px; }
  .mots { grid-template-columns: repeat(2, 1fr); }
}
