/* 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;
  --green-soft: #e3f6ec;
  --pink: #ee5a8a;
  --pink-soft: #fde8ef;
  --violet: #7a5cf0;
  --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);
}

* { 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); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.wrap.narrow { width: min(820px, 100% - 40px); }

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

.bar {
  position: sticky; top: 0; z-index: 50;
  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);
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::before { content: '🌐 '; }
.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); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(47, 127, 224, 0.3);
}
.bar-cta:hover { background: var(--blue-deep); }

.arrivee { background: var(--amber); color: #3b2102; font-weight: 700; padding: 12px 0; 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); 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;
  background: linear-gradient(90deg, var(--blue) 0%, var(--violet) 55%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: 19px; color: var(--ink-2); max-width: 560px; margin: 0 0 26px; }
.hero-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge img { height: 52px; width: auto; }
.note { color: var(--green); font-weight: 600; margin: 16px 0 0; }
.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); }

/* ---------- Bandeau livre ---------- */

.livre-band { background: var(--amber-soft); border-top: 1px solid #f6dcb1; border-bottom: 1px solid #f6dcb1; }
.livre { display: flex; align-items: center; gap: 26px; padding: 34px 0; }
.livre-icon { font-size: 46px; flex: none; width: 84px; height: 84px; border-radius: 24px; background: var(--paper); display: grid; place-items: center; box-shadow: var(--shadow); }
.livre-text { flex: 1; }
.livre-tag { font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber-deep); }
.livre h2 { font-size: 24px; margin: 6px 0 8px; }
.livre p { margin: 0; color: var(--ink-2); }
.btn { display: inline-block; text-decoration: none; font-weight: 700; padding: 14px 22px; border-radius: 999px; white-space: nowrap; }
.btn.amber { background: var(--amber); color: #3b2102; box-shadow: 0 8px 20px rgba(239, 159, 39, 0.35); }
.btn.amber:hover { background: #f5ad3f; }

/* ---------- 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; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.feature { border-radius: var(--radius); padding: 26px; }
.feature .icon { font-size: 30px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255, 255, 255, 0.8); 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); }
.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 {
  display: block; margin: 34px auto 26px; width: min(420px, 100%); font: inherit; font-size: 16px;
  padding: 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow);
}
.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; }
.drapeau { grid-row: span 2; font-size: 28px; }
.nom { font-weight: 700; }
.niveaux { font-size: 12.5px; color: var(--ink-3); 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; }

/* ---------- Prix ---------- */

.prix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; align-items: stretch; }
.offre { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow); }
.offre h3 { font-size: 20px; }
.offre.essai { background: var(--green-soft); border-color: #bfe8d2; }
.offre.essai .gros { font-size: 40px; display: block; margin-bottom: 8px; }
.offre.essai h3 { color: #11754d; font-size: 24px; }
.offre.essai p { color: var(--ink-2); margin: 10px 0 0; }
.montant { font-size: 44px; font-weight: 800; margin: 14px 0 0; letter-spacing: -0.03em; }
.par { margin: 0; color: var(--ink-3); font-weight: 600; }
.petit { margin: 12px 0 0; color: var(--green); font-weight: 700; font-size: 14px; }
.offre.meilleure { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.ruban { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-weight: 800; font-size: 12.5px; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.fine { text-align: center; color: var(--ink-3); font-size: 14px; max-width: 680px; margin: 26px auto 0; }

/* ---------- 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; }
.faq .vedette summary::before { content: '📖 '; }
.more { text-align: center; margin-top: 28px; color: var(--ink-2); }

/* ---------- 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 { opacity: 0.92; font-size: 18px; margin: 12px 0 0; }
.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-stores { 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; }
  .phones .p1 { display: none; }
  .gallery .phone:nth-child(n + 3) { display: none; }
  .langues { grid-template-columns: repeat(2, 1fr); }
  .drapeau { font-size: 22px; }
}

.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; }
