/* atentiko App : écrans élève (plein écran, d'après les maquettes Figma « APP Connected »).
   S'appuie sur les variables, polices et boutons du thème atentiko. */

/* ---------- Base : l'app prend toute la largeur (pas de capsule) ---------- */
body.atk-app { background: var(--c-lavender-50, #fef4ff); min-height: 100vh; min-height: 100dvh; }
body.atk-app--indigo, body.atk-app--player { background: var(--c-indigo-900, #3c01d6); color: #fff; }
body.atk-app--photo { background: var(--c-indigo-900, #3c01d6); }
.atk-site { max-width: none; background: transparent; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.atk-main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) 16px clamp(48px, 6vw, 90px); }
.atk-narrow { max-width: 820px; }
.atk-center { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 20px; }
.atk-center-text { text-align: center; }
.atk-title { font-family: var(--f-title); font-weight: 700; font-size: clamp(30px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.02em; }
.atk-title strong { font-weight: 800; }
.atk-light { font-weight: 400; }
.atk-lead { font-size: var(--fs-lead); }
.atk-block { display: flex; width: 100%; }
.atk-link { color: inherit; font-weight: 600; text-underline-offset: 4px; }
.btn--outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn--outline-white:hover { background: #fff; color: var(--c-indigo-900); }
.btn[disabled], .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.atk-app :focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* ---------- En-tête ---------- */
.atk-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: 1384px; margin: 0 auto; padding: 20px 16px; position: relative; z-index: 2; }
.atk-header__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.atk-header__logo img { height: 32px; width: auto; }
/* Menu : Cours en ligne (coché) | Profs en ligne | Experts locaux | Expériences (grisés) | Mon compte */
.atk-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 16px; background: #fff; box-shadow: 0 4px 18px rgba(60, 1, 214, .08); }
.atk-nav__item { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 12px; font-family: var(--f-title); font-weight: 500; font-size: 17px; white-space: nowrap; text-decoration: none; color: var(--c-black); transition: background .15s ease; }
a.atk-nav__item:hover { background: var(--c-indigo-50); }
.atk-nav__item.is-active { background: var(--c-indigo-900); color: #fff; }
.atk-nav__check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--c-indigo-900); font-size: 13px; font-weight: 800; }
.atk-nav__item.is-soon { color: var(--c-grey-300); cursor: not-allowed; }
.atk-nav__item--account { margin-left: 8px; }
.atk-nav__item--account::before { content: ""; position: relative; left: -10px; width: 1px; height: 22px; background: var(--c-grey-200); }
.atk-nav__item--account.is-active::before { visibility: hidden; }
.atk-app--photo .atk-nav { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.atk-close { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font-family: var(--f-title); font-weight: 500; font-size: 18px; text-decoration: none; color: #fff; }
.atk-close span { font-size: 24px; line-height: 1; }
@media (max-width: 1080px) {
	.atk-header { flex-wrap: wrap; }
	.atk-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
	.atk-nav::-webkit-scrollbar { display: none; }
	.atk-nav__item { font-size: 15px; padding: 8px 10px; }
}
@media (max-width: 600px) {
	.atk-header__logo img + img { display: none; }
}

/* ---------- Pied de page ---------- */
.atk-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 10px; padding: 32px 16px; background: var(--c-black); color: #fff; justify-content: center; }
.atk-footer img { height: 30px; width: auto; }
.atk-footer p { flex-basis: 100%; text-align: center; font-size: 14px; color: #bbb; }

/* ---------- Accueil ---------- */
/* Pastilles Langues (2 lignes) / Pays (après choix d'une langue), drapeaux ronds */
.atk-pills { max-width: 1100px; margin: 28px auto 0; display: grid; gap: 10px; justify-items: center; }
.atk-pills[hidden] { display: none; }
.atk-pills + .atk-cities { margin-top: 44px; }
.atk-pills__label { font-family: var(--f-title); font-weight: 600; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--c-indigo-900); }
.atk-pills__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 100%; }
.atk-pills--lang .atk-pills__list { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; justify-content: safe center; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.atk-pills--lang .atk-pills__list::-webkit-scrollbar { display: none; }
.atk-pills__item[hidden] { display: none; }
.atk-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border: 0; border-radius: var(--r-pill, 38px); background: #fff; font: inherit; font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--c-black); box-shadow: 0 2px 10px rgba(60, 1, 214, .06); }
button.atk-pill { cursor: pointer; outline: 2px solid var(--c-indigo-900); outline-offset: -2px; }
button.atk-pill:hover { background: var(--c-indigo-50); }
.atk-pill img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.atk-pill__check { display: none; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--c-indigo-900); font-size: 11px; font-weight: 800; }
.atk-pill.is-active { background: var(--c-indigo-900); color: #fff; }
.atk-pill.is-active .atk-pill__check { display: inline-grid; }
.atk-pill.is-soon { color: var(--c-grey-600); background: rgba(255,255,255,.6); box-shadow: none; cursor: not-allowed; }
.atk-pill.is-soon img { filter: grayscale(1); opacity: .45; }
.atk-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.atk-city { background: #fff; border-radius: var(--r-card, 24px); padding: 12px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 24px rgba(60, 1, 214, .08); }
.atk-city[hidden] { display: none; }
.atk-city__media { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--c-indigo-50); }
.atk-city__media img { width: 100%; height: 100%; object-fit: cover; }
.atk-city__media h2 { position: absolute; left: 14px; bottom: 10px; color: #fff; font-family: var(--f-title); font-size: 28px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.atk-city__dims { display: grid; gap: 8px; padding: 0 4px; }
.atk-city__dims li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.atk-city__dims img { width: 28px; height: 28px; padding: 5px; border-radius: 8px; background: var(--c-indigo-900); }
.atk-city__dims span { flex: 1; }
.atk-city__dims b { font-size: 13px; padding: 2px 8px; border-radius: 20px; background: var(--c-indigo-50); color: var(--c-indigo-900); }
.atk-city.is-soon { opacity: .6; }
.atk-city.is-soon .atk-city__media img { filter: grayscale(.6); }
.atk-soon { display: block; text-align: center; padding: 12px; border-radius: var(--r-btn, 12px); background: var(--c-grey-200); color: var(--c-grey-600); font-weight: 700; }

/* ---------- Ville ---------- */
.atk-app--photo .atk-header { position: absolute; left: 0; right: 0; top: 0; }
.atk-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(240px, 26vw, 310px); background: var(--c-indigo-900); }
.atk-hero__bg { position: absolute; inset: -24px; background-size: cover; background-position: center; filter: blur(14px) saturate(1.1); transform: scale(1.06); }
.atk-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.15) 50%, rgba(0,0,0,.4) 100%); }
.atk-hero__inner { position: relative; z-index: 2; width: 100%; max-width: 1384px; margin: 0 auto; padding: 96px 16px 76px; color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.atk-hero .atk-title { text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.atk-themes { position: relative; margin-top: -48px; background: var(--c-indigo-900); color: #fff; border-radius: 40px 40px 0 0; padding: clamp(32px, 4vw, 56px) 16px clamp(48px, 6vw, 90px); flex: 1; }
.atk-themes__title { max-width: 1352px; margin: 0 auto 28px; font-family: var(--f-title); font-size: var(--fs-h2); font-weight: 700; }
.atk-themes__grid { max-width: 1352px; margin: 0 auto; display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: 24px; align-items: start; }
.atk-tabs { display: grid; gap: 12px; }
.atk-tab { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px; border-radius: 18px; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; transition: background .15s ease; }
.atk-tab:hover { background: rgba(255,255,255,.16); }
.atk-tab.is-active { background: rgba(0,0,0,.28); }
.atk-tab__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.15); }
.atk-tab.is-active .atk-tab__icon { background: #fff; }
.atk-tab.is-active .atk-tab__icon img { filter: brightness(0) saturate(100%) invert(12%) sepia(98%) saturate(6000%) hue-rotate(258deg); }
.atk-tab__text { flex: 1; display: grid; gap: 2px; }
.atk-tab__text strong { font-family: var(--f-title); font-size: 20px; }
.atk-tab__text small { font-size: 13px; opacity: .8; line-height: 1.35; }
.atk-tab__count { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: #fff; color: var(--c-indigo-900); }
.atk-units { display: grid; gap: 10px; counter-reset: none; }
.atk-units[hidden] { display: none; }
.atk-unit { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 20px; border-radius: 16px; background: #fff; color: var(--c-black); }
.atk-unit__title { flex: 1; font-weight: 600; font-size: 17px; }
.atk-unit__btn { flex-shrink: 0; padding: 10px 16px; border-radius: var(--r-btn, 12px); background: var(--c-indigo-900); color: #fff; font-weight: 700; text-decoration: none; }
.atk-unit__btn.is-disabled { background: var(--c-grey-200); color: var(--c-grey-600); }
.atk-unit.is-done { background: var(--c-lavender-900); }
.atk-unit.is-done .atk-unit__btn { background: #fff; color: var(--c-indigo-900); }
.atk-unit.is-soon .atk-unit__title { color: var(--c-grey-600); }
@media (max-width: 860px) {
	.atk-themes__grid { grid-template-columns: 1fr; }
	.atk-tabs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.atk-tab { flex-direction: column; text-align: center; padding: 10px 6px; gap: 6px; }
	.atk-tab__text small { display: none; }
	.atk-tab__text strong { font-size: 14px; }
	.atk-tab__icon { width: 40px; height: 40px; }
	.atk-unit { flex-wrap: wrap; padding: 12px 14px; }
	.atk-unit__title { flex-basis: 100%; }
}

/* ---------- Étoiles et piments ---------- */
.atk-stars { display: inline-flex; gap: 3px; font-size: 28px; line-height: 1; color: var(--c-grey-300); }
.atk-stars .is-on { color: var(--c-star, #ffc700); }
.atk-chilis { letter-spacing: 2px; }
.atk-chilis .is-off { filter: grayscale(1); opacity: .35; }

/* ---------- Leçon : introduction ---------- */
.atk-player { flex: 1; width: 100%; max-width: 900px; margin: 0 auto; padding: 16px 16px 24px; display: flex; flex-direction: column; }
.atk-intro { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 24px 0 48px; }
.atk-intro__text { font-size: var(--fs-lead); line-height: 1.5; opacity: .95; }
.atk-intro__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: 18px; text-align: center; }
.atk-intro__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 24px; margin-top: 8px; }
.atk-intro__actions .btn { min-width: 200px; }

/* ---------- Lecteur ---------- */
.atk-player.is-playing { min-height: calc(100dvh - 90px); }
.atk-top { display: flex; align-items: center; gap: 16px; padding: 4px 0 8px; }
.atk-progress { flex: 1; height: 14px; border-radius: 10px; background: rgba(255,255,255,.2); overflow: hidden; }
.atk-progress__fill { display: block; height: 100%; width: 0; border-radius: 10px; background: var(--c-green-500); transition: width .4s ease; }
.atk-top__stats { display: flex; gap: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.atk-top__streak:empty { display: none; }
.atk-stage { flex: 1; display: flex; flex-direction: column; gap: 22px; padding: 28px 0 24px; animation: atk-in .3s ease; }
@keyframes atk-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.atk-stage__head { text-align: center; display: grid; gap: 6px; }
.atk-stage__count { font-size: 14px; opacity: .7; }
.atk-stage__title { font-family: var(--f-title); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }
.atk-speak { display: flex; justify-content: center; gap: 10px; }
.atk-speak__btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fff; font-size: 28px; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.2); transition: transform .1s ease; }
.atk-speak__btn--slow { width: 48px; height: 48px; font-size: 20px; align-self: center; }
.atk-speak__btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.atk-ex { display: flex; flex-direction: column; gap: 18px; }
.atk-ex__question, .atk-ex__statement { text-align: center; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; }
.atk-ex__statement { background: #fff; color: var(--c-black); border-radius: 20px; padding: 24px; }
.atk-ex__hint { text-align: center; font-size: 14px; opacity: .75; }

/* Choix (QCM, vrai/faux) */
.atk-choices { display: grid; gap: 12px; }
.atk-ex--truefalse .atk-choices { grid-template-columns: 1fr 1fr; }
.atk-choice { padding: 18px 20px; border-radius: 16px; border: 3px solid transparent; background: #fff; color: var(--c-black); font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.18); transition: transform .1s ease, border-color .1s ease; }
.atk-ex--truefalse .atk-choice { text-align: center; font-size: 22px; }
.atk-choice:hover:not(:disabled) { transform: translateY(-1px); }
.atk-choice.is-picked { border-color: var(--c-lavender-900); background: var(--c-lavender-50); }
.atk-choice.is-right { border-color: var(--c-green-500); background: var(--c-green-50); }
.atk-choice.is-wrong { border-color: var(--c-red-600); background: var(--c-red-50); }
.atk-choice:disabled { cursor: default; }
.atk-choice:disabled:not(.is-right):not(.is-wrong) { opacity: .6; }

/* Texte à trous */
.atk-gaps__sentence { background: #fff; color: var(--c-black); border-radius: 20px; padding: 24px; font-size: clamp(20px, 2.4vw, 28px); line-height: 2.1; text-align: center; }
.atk-gap { display: inline-block; min-width: 92px; min-height: 1.5em; margin: 0 4px; padding: 0 12px; vertical-align: middle; line-height: 1.5; border: 0; border-bottom: 3px solid var(--c-indigo-900); border-radius: 8px 8px 0 0; background: var(--c-indigo-50); color: var(--c-indigo-900); font-weight: 700; cursor: pointer; }
.atk-gap.is-filled { background: var(--c-indigo-900); color: #fff; border-radius: 10px; border-bottom-color: transparent; }
.atk-gap.is-right { background: var(--c-green-500); color: #fff; }
.atk-gap.is-wrong { background: var(--c-red-600); color: #fff; }
.atk-gap:disabled { cursor: default; }
.atk-bank { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.atk-chip-word { padding: 12px 18px; border-radius: 14px; border: 0; background: #fff; color: var(--c-black); font-size: 18px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.atk-chip-word.is-used { opacity: .25; box-shadow: none; cursor: default; }

/* Ordre de la conversation */
.atk-order { display: grid; gap: 10px; }
.atk-order__line { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.atk-order__line--right { flex-direction: row-reverse; }
.atk-order__line.is-empty { border: 2px dashed rgba(255,255,255,.35); border-radius: 18px; padding: 0 10px; }
.atk-order__num { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c-indigo-900); font-weight: 800; }
.atk-order__line.is-right .atk-order__num { background: var(--c-green-500); color: #fff; }
.atk-order__line.is-wrong .atk-order__num { background: var(--c-red-600); color: #fff; }
.atk-pool { display: grid; gap: 10px; }
.atk-pool[hidden] { display: none; }
.atk-bubble { max-width: 80%; padding: 14px 18px; border: 0; border-radius: 20px; background: #fff; color: var(--c-black); font-size: 17px; font-weight: 500; text-align: left; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.atk-bubble--left { justify-self: start; border-bottom-left-radius: 4px; }
.atk-bubble--right { justify-self: end; border-bottom-right-radius: 4px; background: var(--c-lavender-900); }
.atk-bubble:disabled { cursor: default; }

/* Barre du bas : bouton + retour bonne / mauvaise réponse */
.atk-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin: 0 calc(50% - 50vw); padding: 16px max(16px, calc(50vw - 434px)) calc(16px + env(safe-area-inset-bottom)); background: var(--c-indigo-900); border-top: 2px solid rgba(255,255,255,.15); }
.atk-foot.is-good { background: var(--c-green-50); color: #00804f; border-top-color: var(--c-green-500); }
.atk-foot.is-bad { background: var(--c-red-50); color: var(--c-red-600); border-top-color: var(--c-red-600); }
.atk-foot__btn { margin-left: auto; min-width: 200px; }
.atk-foot.is-good .atk-foot__btn { background: var(--c-green-500); color: #fff; }
.atk-foot.is-bad .atk-foot__btn { background: var(--c-red-600); color: #fff; }
.atk-feedback { flex: 1 1 360px; display: grid; gap: 6px; animation: atk-in .25s ease; }
.atk-feedback[hidden] { display: none; }
.atk-feedback__title { font-family: var(--f-title); font-size: 24px; font-weight: 800; }
.atk-feedback__pts { font-size: 16px; font-weight: 700; }
.atk-feedback__solution { font-weight: 700; }
.atk-feedback__explain { color: var(--c-black); opacity: .8; }
.atk-feedback .atk-speak { justify-content: flex-start; }
.atk-feedback .atk-speak__btn { width: 44px; height: 44px; font-size: 20px; box-shadow: none; border: 2px solid currentColor; }
.atk-feedback .atk-speak__btn--slow { width: 36px; height: 36px; font-size: 16px; }
@media (max-width: 600px) {
	.atk-foot__btn { width: 100%; }
	.atk-ex--truefalse .atk-choices { grid-template-columns: 1fr; }
	.atk-bubble { max-width: 92%; }
}

/* ---------- Fin de leçon ---------- */
.atk-end { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 24px 0 48px; animation: atk-in .3s ease; }
.atk-end__stars { display: flex; gap: 8px; font-size: 64px; line-height: 1; color: rgba(255,255,255,.25); }
.atk-end__stars .is-on { color: var(--c-star, #ffc700); animation: atk-star .5s ease both; }
@keyframes atk-star { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.25); } 100% { transform: none; } }
.atk-end__text { font-size: 18px; opacity: .9; }
.atk-end__grid { display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr)); gap: 12px; margin: 8px 0 0; width: 100%; max-width: 520px; }
.atk-end__stat { background: rgba(255,255,255,.12); border-radius: 16px; padding: 14px; }
.atk-end__stat dt { font-size: 14px; opacity: .8; }
.atk-end__stat dd { margin: 4px 0 0; font-family: var(--f-title); font-size: 24px; font-weight: 700; }
.atk-end__saved { font-size: 14px; opacity: .8; }
.atk-end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Mon compte ---------- */
.atk-account { display: grid; gap: 20px; max-width: 1100px; }
.atk-account > section { margin-top: 20px; }
.atk-h2 { font-family: var(--f-title); font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; margin-bottom: 16px; }
.atk-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.atk-stat { display: grid; gap: 4px; padding: 20px; border-radius: 20px; background: #fff; box-shadow: 0 6px 24px rgba(60, 1, 214, .06); }
.atk-stat__icon { font-size: 24px; }
.atk-stat__value { font-family: var(--f-title); font-size: 30px; font-weight: 800; color: var(--c-indigo-900); line-height: 1.1; }
.atk-stat__label { font-size: 14px; color: var(--c-grey-600); }
.atk-progress-cities { display: grid; grid-template-columns: 1fr; gap: 14px; }
.atk-pcity { margin: 0; }
.atk-pcity h3 { font-family: var(--f-title); font-size: 22px; margin-bottom: 4px; }
.atk-pcity h3 a { text-decoration: none; }
.atk-pcity__row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; align-items: center; gap: 10px 16px; font-size: 15px; }
@media (max-width: 600px) { .atk-pcity__row { grid-template-columns: 1fr auto; } .atk-pcity__row .atk-bar { grid-column: 1 / -1; grid-row: 2; } }
.atk-bar { height: 10px; border-radius: 10px; background: var(--c-indigo-50); overflow: hidden; }
.atk-bar span { display: block; height: 100%; border-radius: 10px; background: var(--c-green-500); }
.atk-recent { display: grid; gap: 10px; }
.atk-recent__item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 14px 18px; border-radius: 16px; background: #fff; }
.atk-recent__main { flex: 1 1 260px; display: grid; gap: 2px; }
.atk-recent__main small { color: var(--c-grey-600); }
.atk-recent__nums { font-size: 14px; color: var(--c-grey-600); }
.atk-panel { background: #fff; border-radius: 20px; padding: 24px; margin: 24px 0; display: grid; gap: 8px; }
.atk-panel h2 { font-family: var(--f-title); font-size: 22px; margin-bottom: 6px; }

/* ---------- Favoris ---------- */
.atk-fav { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--c-indigo-900); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .15s ease; }
.atk-fav:hover { transform: scale(1.12); }
.atk-fav.is-on { color: #e8355a; }
.atk-end__fav { display: flex; align-items: center; gap: 4px; font-weight: 600; }
.atk-end__fav .atk-fav { color: #fff; }
.atk-end__fav .atk-fav.is-on { color: #ff8fa6; }

/* ---------- Historique ---------- */
.atk-table-wrap { background: #fff; border-radius: 20px; padding: 8px 16px; overflow-x: auto; }
.atk-history { width: 100%; border-collapse: collapse; font-size: 15px; }
.atk-history th { text-align: left; font-size: 13px; font-weight: 600; color: var(--c-grey-600); padding: 12px 10px; border-bottom: 1px solid var(--c-grey-200); white-space: nowrap; }
.atk-history td { padding: 12px 10px; border-bottom: 1px solid var(--c-grey-200); vertical-align: middle; }
.atk-history tr:last-child td { border-bottom: 0; }
.atk-history td small { display: block; color: var(--c-grey-600); font-size: 13px; }
.atk-muted { color: var(--c-grey-600); font-size: 14px; margin-top: 8px; }
@media (max-width: 700px) {
	.atk-table-wrap { padding: 0; background: transparent; }
	.atk-history thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.atk-history, .atk-history tbody, .atk-history tr, .atk-history td { display: block; }
	.atk-history tr { background: #fff; border-radius: 16px; padding: 10px 14px; margin-bottom: 10px; }
	.atk-history td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border: 0; text-align: right; }
	.atk-history td::before { content: attr(data-label); color: var(--c-grey-600); font-size: 13px; text-align: left; }
	.atk-history td[data-label="Leçon"] { display: block; text-align: left; padding-bottom: 8px; }
	.atk-history td[data-label="Leçon"]::before { content: none; }
}

/* ---------- Lettre d'information ---------- */
.atk-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-weight: 500; }
.atk-check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--c-indigo-900); }
.atk-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.atk-saved { color: #00804f; font-weight: 600; }

/* ---------- Accessibilité : bouton permanent en bas à gauche ---------- */
.atk-a11y { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 50; }
.atk-app--player .atk-a11y { bottom: calc(110px + env(safe-area-inset-bottom)); }
.atk-a11y__btn { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; background: var(--c-indigo-900); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.atk-a11y__btn:hover { transform: scale(1.05); }
.atk-a11y__panel { position: absolute; left: 0; bottom: 64px; width: min(300px, calc(100vw - 32px)); padding: 18px; border-radius: 20px; background: #fff; color: var(--c-black); box-shadow: 0 12px 40px rgba(0,0,0,.25); display: grid; gap: 12px; }
.atk-a11y__panel[hidden] { display: none; }
.atk-a11y__title { font-family: var(--f-title); font-weight: 700; font-size: 20px; }
.atk-a11y__saved { font-size: 13px; color: #00804f; min-height: 1em; }
.atk-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 500; }
.atk-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.atk-switch__track { flex-shrink: 0; position: relative; width: 40px; height: 24px; border-radius: 12px; background: var(--c-grey-300); transition: background .15s ease; }
.atk-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.atk-switch input:checked + .atk-switch__track { background: var(--c-indigo-900); }
.atk-switch input:checked + .atk-switch__track::after { transform: translateX(16px); }
.atk-switch input:focus-visible + .atk-switch__track { outline: 3px solid var(--c-indigo-900); outline-offset: 2px; }

/* Réglages actifs (classes sur <body>) */
body.a11y-text .atk-site { zoom: 1.18; }
body.a11y-contrast { --c-grey-600: #222; --c-grey-300: #555; --c-grey-200: #777; }
body.a11y-contrast .atk-pill.is-soon, body.a11y-contrast .atk-nav__item.is-soon, body.a11y-contrast .atk-city.is-soon { opacity: 1; color: #222; }
body.a11y-contrast .atk-choice, body.a11y-contrast .atk-chip-word, body.a11y-contrast .atk-bubble, body.a11y-contrast .atk-gaps__sentence, body.a11y-contrast .atk-ex__statement { border: 3px solid #000; }
body.a11y-contrast .atk-progress { background: rgba(255,255,255,.45); }
body.a11y-motion *, body.a11y-motion *::before, body.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
body.a11y-dys, body.a11y-dys .atk-site, body.a11y-dys button, body.a11y-dys .atk-title, body.a11y-dys .atk-stage__title { font-family: Verdana, Tahoma, "Trebuchet MS", sans-serif !important; letter-spacing: .04em; word-spacing: .12em; }
body.a11y-dys .atk-site p, body.a11y-dys .atk-site li { line-height: 1.7; }
body.a11y-notimer .atk-top__timer { display: none; }
@media (prefers-reduced-motion: reduce) {
	.atk-app *, .atk-app *::before, .atk-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}.atk-a11y__saved.is-error { color: var(--c-red-600); }

/* ---------- Nouvelles mécaniques ---------- */
/* Association de paires */
.atk-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.atk-match__col { display: grid; gap: 10px; align-content: start; }
.atk-match__item { padding: 16px 14px; border-radius: 16px; border: 3px solid transparent; background: #fff; color: var(--c-black); font-size: 17px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.18); transition: opacity .2s ease, transform .1s ease; }
.atk-match__item.is-picked { border-color: var(--c-lavender-900); background: var(--c-lavender-50); }
.atk-match__item.is-wrong { border-color: var(--c-red-600); background: var(--c-red-50); animation: atk-shake .3s ease; }
.atk-match__item.is-matched { border-color: var(--c-green-500); background: var(--c-green-50); opacity: .55; box-shadow: none; cursor: default; }
@keyframes atk-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Phrase à reconstruire */
.atk-build__line { min-height: 64px; display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: center; gap: 8px; padding: 10px 0 12px; border-bottom: 2px solid rgba(255,255,255,.4); }
.atk-build__line.is-right .atk-chip-word { background: var(--c-green-50); color: #00804f; }
.atk-build__line.is-wrong .atk-chip-word { background: var(--c-red-50); color: var(--c-red-600); }

/* Dictée, traduction écrite */
.atk-input { width: 100%; padding: 18px 20px; border-radius: 16px; border: 3px solid transparent; background: #fff; color: var(--c-black); font-size: 20px; font-family: var(--f-text); }
.atk-input:focus { outline: none; border-color: var(--c-lavender-900); }
.atk-input.is-right { border-color: var(--c-green-500); background: var(--c-green-50); }
.atk-input.is-wrong { border-color: var(--c-red-600); background: var(--c-red-50); }

/* Cartes mémoire */
.atk-card { min-height: 200px; display: grid; place-items: center; gap: 12px; padding: 32px 24px; border-radius: 24px; background: #fff; color: var(--c-black); text-align: center; box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.atk-card.is-flipped { animation: atk-flip .35s ease; }
@keyframes atk-flip { 0% { transform: rotateY(90deg); } 100% { transform: none; } }
.atk-card__front { font-family: var(--f-title); font-size: clamp(30px, 4vw, 44px); font-weight: 700; }
.atk-card__back { font-size: 22px; color: var(--c-indigo-900); font-weight: 600; }
.atk-card__back[hidden], .atk-card__answers[hidden], .atk-card__flip[hidden], .atk-foot__btn[hidden] { display: none; }
.atk-card__flip { justify-self: center; }
.atk-card__answers { grid-template-columns: 1fr 1fr; }
.atk-card__answers .atk-choice { text-align: center; }
@media (max-width: 600px) {
	.atk-match__item { font-size: 15px; padding: 14px 10px; }
}
/* Mise en situation */
.atk-scene { display: grid; gap: 12px; }
.atk-scene__text { font-size: 18px; opacity: .9; }
.atk-scene__line { font-size: 22px; font-weight: 600; cursor: default; }

/* Compréhension de texte */
.atk-reading { white-space: pre-line; background: #fff; color: var(--c-black); border-radius: 20px; padding: 22px 24px; font-size: 17px; line-height: 1.6; font-family: "Courier New", ui-monospace, monospace; box-shadow: 0 6px 0 rgba(0,0,0,.18); }
.atk-reading__q { text-align: left; font-size: 19px; margin-top: 6px; }

/* Classer en catégories */
.atk-bank[hidden] { display: none; }
.atk-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.atk-cat { display: grid; align-content: start; gap: 8px; min-height: 140px; padding: 10px; border-radius: 18px; border: 2px dashed rgba(255,255,255,.45); }
.atk-cats.is-armed .atk-cat { border-color: #fff; background: rgba(255,255,255,.08); }
.atk-cat__head { padding: 10px; border: 0; border-radius: 12px; background: var(--c-lavender-900); color: var(--c-black); font-family: var(--f-title); font-weight: 700; font-size: 18px; cursor: pointer; }
.atk-cat__list { display: flex; flex-wrap: wrap; gap: 8px; }
.atk-chip-word.is-selected { outline: 3px solid var(--c-lavender-900); outline-offset: 2px; }
.atk-chip-word.is-right { background: var(--c-green-50); color: #00804f; }
.atk-chip-word.is-wrong { background: var(--c-red-50); color: var(--c-red-600); }

/* L'intrus */
.atk-ex--chips .atk-choices { grid-template-columns: repeat(2, 1fr); }
.atk-ex--chips .atk-choice { text-align: center; font-size: 20px; }

/* Conjugaison */
.atk-verb { color: var(--c-indigo-900); font-style: italic; }

/* Trouver l'erreur */
.atk-error__word { border: 0; background: transparent; padding: 2px 6px; border-radius: 8px; font: inherit; color: inherit; cursor: pointer; }
.atk-error__word:hover:not(:disabled) { background: var(--c-indigo-50); }
.atk-error__word.is-picked { background: var(--c-lavender-900); }
.atk-error__word.is-right { background: var(--c-green-500); color: #fff; }
.atk-error__word.is-wrong { background: var(--c-red-600); color: #fff; text-decoration: line-through; }
.atk-error__word:disabled { cursor: default; }

/* Nombres et prix */
.atk-input-wrap { display: flex; align-items: center; gap: 12px; }
.atk-input__unit { font-family: var(--f-title); font-size: 28px; font-weight: 700; }

/* Lettres dans l'ordre */
.atk-letters__slots, .atk-letters__pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 60px; }
.atk-letters__slots { padding: 10px; border-bottom: 2px solid rgba(255,255,255,.4); }
.atk-letter { width: 52px; height: 56px; border: 0; border-radius: 12px; background: #fff; color: var(--c-black); font-family: var(--f-title); font-size: 26px; font-weight: 700; text-transform: lowercase; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.atk-letters__slots.is-right .atk-letter { background: var(--c-green-50); color: #00804f; }
.atk-letters__slots.is-wrong .atk-letter { background: var(--c-red-50); color: var(--c-red-600); }
@media (max-width: 600px) { .atk-letter { width: 44px; height: 48px; font-size: 22px; } }
/* Message « On travaille dur, ça arrive ! » */
.atk-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 60; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 16px; background: var(--c-black); color: #fff; font-weight: 600; font-size: 16px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.atk-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
button.atk-pill.is-soon { cursor: pointer; outline: 0; }
button.atk-pill.is-soon:hover { background: #fff; }
/* ---------- Sélection bien visible (choix de réponse) ---------- */
.atk-choice { position: relative; display: flex; align-items: center; gap: 14px; }
.atk-ex--truefalse .atk-choice, .atk-ex--chips .atk-choice, .atk-card__answers .atk-choice { justify-content: center; }
.atk-choice::before { content: ""; flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--c-grey-300); background: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1; color: #fff; transition: background .12s ease, border-color .12s ease; }
.atk-choice.is-picked { background: var(--c-lavender-900); border-color: var(--c-indigo-900); box-shadow: 0 0 0 3px #fff, 0 6px 0 rgba(0,0,0,.22); transform: translateY(-2px); }
.atk-choice.is-picked::before { content: "✓"; background: var(--c-indigo-900); border-color: var(--c-indigo-900); }
.atk-choice.is-right::before { content: "✓"; background: var(--c-green-500); border-color: var(--c-green-500); }
.atk-choice.is-wrong::before { content: "✕"; background: var(--c-red-600); border-color: var(--c-red-600); }
.atk-choice.is-right, .atk-choice.is-wrong { transform: none; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.atk-match__item.is-picked { background: var(--c-lavender-900); border-color: var(--c-indigo-900); box-shadow: 0 0 0 3px #fff, 0 6px 0 rgba(0,0,0,.22); transform: translateY(-2px); }
.atk-chip-word.is-selected { background: var(--c-lavender-900); outline: 3px solid #fff; outline-offset: 2px; transform: translateY(-2px); }
.atk-error__word.is-picked { background: var(--c-lavender-900); box-shadow: 0 0 0 2px var(--c-indigo-900); }.atk-choice.is-picked.is-wrong { background: var(--c-red-50); border-color: var(--c-red-600); }
.atk-choice.is-picked.is-right { background: var(--c-green-50); border-color: var(--c-green-500); }

/* Barre de progression dans l'en-tête pendant la leçon */
.atk-header.has-progress { gap: 20px; }
.atk-header.has-progress .atk-top { flex: 1; max-width: 760px; margin: 0 auto; padding: 0; }
@media (max-width: 600px) {
	.atk-header.has-progress { gap: 12px; }
	.atk-header.has-progress .atk-top { gap: 10px; }
	.atk-header.has-progress .atk-top__stats { gap: 8px; font-size: 13px; }
	.atk-header.has-progress .atk-close { font-size: 0; gap: 0; }
	.atk-header.has-progress .atk-close span { font-size: 26px; }
}
/* ---------- Écrans peu hauts (petits PC, portables) : tout doit tenir sans défiler ---------- */
@media (min-width: 701px) {
	/* Plusieurs questions (lecture) : réponses côte à côte. */
	.atk-ex--reading .atk-choices { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
	.atk-ex--reading .atk-choice { padding: 12px 14px; font-size: 16px; }
}
@media (max-height: 820px) {
	.atk-header { padding-top: 10px; padding-bottom: 10px; }
	.atk-stage { gap: 14px; padding: 12px 0 16px; }
	.atk-stage__title { font-size: clamp(22px, 2.6vw, 32px); }
	.atk-stage__count { display: none; }
	.atk-ex { gap: 12px; }
	.atk-ex__question, .atk-ex__statement { font-size: 19px; }
	.atk-ex__statement, .atk-gaps__sentence, .atk-reading { padding: 14px 18px; }
	.atk-reading { font-size: 15px; line-height: 1.45; }
	.atk-choices { gap: 8px; }
	.atk-choice { padding: 11px 16px; font-size: 16px; }
	.atk-choice::before { width: 20px; height: 20px; font-size: 12px; }
	.atk-speak__btn { width: 48px; height: 48px; font-size: 22px; }
	.atk-speak__btn--slow { width: 38px; height: 38px; font-size: 16px; }
	.atk-scene__line { font-size: 19px; }
	.atk-bubble { padding: 10px 14px; font-size: 16px; }
	.atk-order__line { min-height: 44px; }
	.atk-foot { padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
	.atk-feedback__title { font-size: 20px; }
	.atk-app--player .atk-a11y { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
.atk-hero .atk-title { font-size: clamp(26px, 3.4vw, 48px); }
@media (max-width: 1080px) { .atk-hero__inner { padding: 130px 16px 68px; } } /* Le menu passe sous le logo : en-tête plus haut. */

/* Leçon faite : couleurs de la charte (lavande + coche indigo) */
.atk-unit.is-done { background: var(--c-lavender-900); }
.atk-unit.is-done .atk-unit__title { display: flex; align-items: center; gap: 10px; }
.atk-unit.is-done .atk-unit__title::after { content: "✓"; flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--c-indigo-900); color: #fff; font-size: 16px; font-weight: 800; }
.atk-unit.is-done .atk-unit__btn { background: #fff; color: var(--c-indigo-900); }
.atk-resume { gap: 10px; }
.atk-resume svg { flex-shrink: 0; }

/* Boutons Commencer / Recommencer / Bientôt : même largeur, alignés à droite */
.atk-unit__btn { min-width: 150px; text-align: center; box-sizing: border-box; }

/* Classer en catégories : mots rangés centrés */
.atk-cat__list { justify-content: center; }

/* Fin de leçon : « Garder dans mes favoris » plus visible */
.atk-end__fav { gap: 10px; font-size: 20px; }
.atk-end__fav .atk-fav { width: 52px; height: 52px; font-size: 36px; }
/* Progression par ville : pourcentage en anneau + mini-statistiques (couleurs de la charte) */
.atk-bar span { background: var(--c-indigo-900); }
.atk-pcity__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.atk-pcity__pct { --p: 0; flex-shrink: 0; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c-indigo-900) calc(var(--p) * 1%), var(--c-indigo-50) 0); }
.atk-pcity__pct b { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; font-family: var(--f-title); font-size: 18px; font-weight: 800; color: var(--c-indigo-900); }
.atk-pcity__mini { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.atk-pcity__mini li { padding: 6px 12px; border-radius: 20px; background: var(--c-lavender-50); font-size: 14px; color: var(--c-grey-600); }
.atk-pcity__mini b { color: var(--c-black); }
/* ---------- Mon compte : statistiques avancées ---------- */
html { scroll-behavior: smooth; }
.atk-account section[id] { scroll-margin-top: 16px; }
.atk-anchors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.atk-anchors a { padding: 6px 14px; border-radius: 20px; background: #fff; color: var(--c-indigo-900); font-size: 14px; font-weight: 600; text-decoration: none; }
.atk-anchors a:hover { background: var(--c-indigo-900); color: #fff; }
.atk-bar--big { display: block; height: 16px; }
.atk-goal p { font-size: 17px; }
.atk-stat__value--text { font-size: 22px; }
.atk-big-number { font-family: var(--f-title); font-size: 34px; color: var(--c-indigo-900); }
/* Calendrier d'activité */
.atk-heatmap { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
.atk-heatmap__col { display: grid; grid-template-rows: repeat(7, 14px); gap: 4px; }
.atk-heatmap__day { display: inline-block; width: 14px; height: 14px; border-radius: 3px; background: var(--c-indigo-50); }
.atk-heatmap__day.is-1 { background: var(--c-lavender-900); }
.atk-heatmap__day.is-2 { background: #b38cf0; }
.atk-heatmap__day.is-3 { background: var(--c-indigo-700); }
.atk-heatmap__day.is-4 { background: var(--c-indigo-900); }
.atk-heatmap__day.is-future { background: transparent; }
.atk-heatmap__legend { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--c-grey-600); margin-top: 8px; }
/* Points par semaine */
.atk-chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 180px; }
.atk-chart__col { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; }
.atk-chart__val { font-size: 11px; color: var(--c-grey-600); min-height: 14px; }
.atk-chart__bar { align-self: end; min-height: 2px; border-radius: 6px 6px 0 0; background: var(--c-indigo-900); }
.atk-chart__label { font-size: 11px; color: var(--c-grey-600); margin-top: 4px; }
/* Compétences, mots, badges */
.atk-skills__summary { font-size: 17px; margin-bottom: 6px; }
.atk-details { margin-top: 10px; }
.atk-details summary { cursor: pointer; font-weight: 600; color: var(--c-indigo-900); margin-bottom: 8px; }
.atk-words { display: flex; flex-wrap: wrap; gap: 8px; }
.atk-word { padding: 6px 12px; border-radius: 12px; background: var(--c-indigo-50); font-size: 14px; color: var(--c-grey-600); }
.atk-word b { color: var(--c-black); }
.atk-word.is-review { background: var(--c-lavender-900); }
.atk-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.atk-badge { display: grid; justify-items: center; gap: 4px; padding: 16px 10px; border-radius: 18px; background: #fff; text-align: center; opacity: .45; filter: grayscale(1); }
.atk-badge.is-earned { opacity: 1; filter: none; box-shadow: 0 0 0 3px var(--c-indigo-900); }
.atk-badge__icon { font-size: 34px; }
.atk-badge small { color: var(--c-grey-600); font-size: 12px; }
.atk-goal-field { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
@media (max-width: 600px) { .atk-chart { gap: 3px; height: 150px; } .atk-chart__val { visibility: hidden; } }
/* Grilles régulières (Mon compte) */
.atk-anchors { display: grid; grid-template-columns: repeat(6, 1fr); }
.atk-anchors a { text-align: center; }
.atk-stats { grid-template-columns: repeat(5, 1fr); }
.atk-badges { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
	.atk-anchors { grid-template-columns: repeat(4, 1fr); }
	.atk-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
	.atk-anchors { grid-template-columns: repeat(3, 1fr); }
	.atk-badges { grid-template-columns: repeat(2, 1fr); }
	.atk-stats { grid-template-columns: repeat(2, 1fr); }
}
/* Zone de suppression (RGPD) */
.atk-danger-zone { margin-top: 40px; }
.atk-danger-zone .atk-panel { border: 2px solid var(--c-red-600); }
.atk-btn-danger { background: #fff; color: var(--c-red-600); border-color: var(--c-red-600); }
.atk-btn-danger:hover { background: var(--c-red-600); color: #fff; }

/* Objectif de la semaine : capsules 1 à 10 (2 lignes de 5) */
.atk-goal-field { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.atk-goal__label { font-weight: 600; line-height: 1.2; }
.atk-goal__label small { font-weight: 400; color: var(--c-grey-600); }
.atk-goal__pills { display: grid; grid-template-columns: repeat(5, 48px); gap: 8px; }
.atk-goal__pill { height: 40px; border: 2px solid var(--c-indigo-900); border-radius: 20px; background: #fff; color: var(--c-indigo-900); font-family: var(--f-title); font-weight: 700; font-size: 16px; cursor: pointer; transition: background .15s ease, color .15s ease; }
.atk-goal__pill:hover { background: var(--c-indigo-50); }
.atk-goal__pill.is-active { background: var(--c-indigo-900); color: #fff; }
.atk-goal__remind { flex-basis: 100%; margin-top: 4px; }

/* Mon compte : « Se déconnecter » en haut à droite */
.atk-account__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }

/* « Se déconnecter » à côté de « Mon compte » */
.atk-nav__logout { color: var(--c-grey-600); font-size: 15px; }
.atk-nav__logout:hover { color: var(--c-indigo-900); }
@media (max-width: 600px) { .atk-nav__logout span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Sélecteur de langue (en haut à droite) */
.atk-lang { position: relative; margin-left: 8px; }
.atk-lang summary { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: #fff; font-family: var(--f-title); font-weight: 600; cursor: pointer; list-style: none; box-shadow: 0 4px 18px rgba(60, 1, 214, .08); }
.atk-lang summary::-webkit-details-marker { display: none; }
.atk-lang summary::after { content: "▾"; font-size: 12px; }
.atk-lang img { border-radius: 50%; }
.atk-lang__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 210px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.15); }
.atk-lang__item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; font: inherit; color: var(--c-black); text-align: left; }
.atk-lang__item.is-active { font-weight: 700; color: var(--c-indigo-900); }
.atk-lang__item.is-active b { margin-left: auto; }
.atk-lang__item.is-soon { color: var(--c-grey-600); cursor: pointer; }
.atk-lang__item.is-soon img { filter: grayscale(1); opacity: .5; }
.atk-lang__item.is-soon:hover { background: var(--c-indigo-50); }
.atk-lang__item small { margin-left: auto; font-size: 11px; }
@media (max-width: 1080px) { .atk-header .atk-lang { order: 2; margin-left: auto; } }

/* Mon abonnement */
.atk-plan__title { font-family: var(--f-title); font-size: 20px; }
.atk-plan__badge { display: inline-block; margin-right: 6px; padding: 3px 12px; border-radius: 20px; background: var(--c-indigo-900); color: #fff; font-weight: 700; font-size: 14px; }
/* « Bonjour Prénom ! » en haut à droite, à côté de la langue */
.atk-hello { margin-left: auto; font-family: var(--f-title); font-size: 15px; font-weight: 600; white-space: nowrap; }
.atk-app--indigo .atk-hello, .atk-app--photo .atk-hello { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.3); }
.atk-header .atk-lang { margin-left: 0; }
@media (max-width: 1080px) { .atk-hello { order: 2; } .atk-header .atk-lang { order: 2; margin-left: 0; } }
@media (max-width: 600px) { .atk-hello { font-size: 13px; } }

/* Mon abonnement : capsule compacte en tête de Mon compte */
.atk-plan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 0; }
.atk-plan p { margin: 0; }
.atk-plan .atk-muted { flex-basis: 100%; margin: 0; }
/* Capsule « Mon abonnement » (v2) */
.atk-plan { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 24px 28px; border-radius: 24px; background: linear-gradient(120deg, var(--c-indigo-900) 0%, var(--c-indigo-700) 100%); color: #fff; box-shadow: 0 12px 30px rgba(60, 1, 214, .25); }
.atk-plan::before, .atk-plan::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.atk-plan::before { width: 220px; height: 220px; right: -60px; top: -90px; }
.atk-plan::after { width: 140px; height: 140px; right: 140px; bottom: -80px; background: rgba(248, 206, 255, .15); }
.atk-plan__icon { position: relative; flex-shrink: 0; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 18px; background: rgba(255,255,255,.15); }
.atk-plan__body { position: relative; flex: 1 1 280px; display: grid; gap: 4px; }
.atk-plan__body p { margin: 0; }
.atk-plan__label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.atk-plan__preview { margin-left: 8px; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,.2); font-size: 11px; letter-spacing: 0; text-transform: none; }
.atk-plan__name { font-family: var(--f-title); font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.15; }
.atk-plan__name span { color: var(--c-lavender-900); }
.atk-plan__text { opacity: .9; }
.atk-plan__cta { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 40px; background: #fff; color: var(--c-indigo-900); font-weight: 700; text-decoration: none; box-shadow: 0 4px 0 rgba(0,0,0,.15); transition: transform .15s ease; }
.atk-plan__cta:hover { transform: translateY(-2px); }
.atk-plan__cta span { transition: transform .15s ease; }
.atk-plan__cta:hover span { transform: translateX(3px); }
@media (max-width: 600px) { .atk-plan { padding: 20px; } .atk-plan__cta { width: 100%; justify-content: center; } }
/* « Donner mon avis » (bêta) */
.atk-fb-btn { justify-self: center; margin-top: 2px; padding: 4px 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; background: transparent; color: inherit; font-size: 13px; opacity: .8; cursor: pointer; }
.atk-fb-btn:hover { opacity: 1; background: rgba(255,255,255,.1); }
.atk-fb { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.45); }
.atk-fb__card { width: min(480px, 100%); display: grid; gap: 12px; padding: 24px; border-radius: 20px; background: #fff; color: var(--c-black); box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.atk-fb__title { font-family: var(--f-title); font-size: 22px; font-weight: 700; margin: 0; }
.atk-fb__kinds { display: grid; gap: 6px; }
.atk-fb__kinds label { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--c-indigo-50); cursor: pointer; }
.atk-fb__kinds input { accent-color: var(--c-indigo-900); }
.atk-fb__card textarea { width: 100%; padding: 12px; border: 2px solid var(--c-grey-200); border-radius: 12px; font: inherit; resize: vertical; }
.atk-fb__card textarea:focus { outline: none; border-color: var(--c-indigo-900); }
.atk-fb__actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; margin: 0; }
.atk-fb__cancel { border: 0; background: none; cursor: pointer; }
.atk-fb__status { margin: 0; font-size: 14px; color: var(--c-indigo-900); min-height: 1em; }
/* « Donner mon avis » v2 : grande fenêtre en étapes */
.atk-fb__card { width: min(760px, 100%); min-height: min(520px, 90vh); padding: 32px 36px; gap: 18px; align-content: start; }
.atk-fb__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.atk-fb__x { border: 0; background: var(--c-indigo-50); width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.atk-fb__dots { display: flex; gap: 6px; }
.atk-fb__dots span { flex: 1; height: 6px; border-radius: 3px; background: var(--c-indigo-50); }
.atk-fb__dots span.is-done { background: var(--c-indigo-900); }
.atk-fb__dots span.is-current { background: var(--c-lavender-900); }
.atk-fb__step { display: grid; gap: 18px; }
.atk-fb__count { margin: 0; font-size: 13px; color: var(--c-grey-600); }
.atk-fb__q { margin: 0; font-family: var(--f-title); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.2; }
.atk-fb__q small { font-family: var(--f-text); font-size: 14px; font-weight: 400; color: var(--c-grey-600); }
.atk-fb__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.atk-fb__opt { min-height: 72px; padding: 14px; border: 2px solid var(--c-indigo-50); border-radius: 18px; background: #fff; font: inherit; font-size: 17px; font-weight: 600; color: var(--c-black); cursor: pointer; transition: border-color .12s ease, background .12s ease, transform .12s ease; }
.atk-fb__opt:hover { border-color: var(--c-indigo-900); transform: translateY(-2px); }
.atk-fb__opt.is-picked { border-color: var(--c-indigo-900); background: var(--c-lavender-50); }
.atk-fb__stars { display: flex; justify-content: center; gap: 10px; }
.atk-fb__star { border: 0; background: none; font-size: 56px; line-height: 1; color: var(--c-grey-300); cursor: pointer; transition: transform .1s ease, color .1s ease; }
.atk-fb__star.is-on, .atk-fb__star:hover, .atk-fb__star:has(~ .atk-fb__star:hover) { color: var(--c-star, #ffc700); transform: scale(1.08); }
.atk-fb__nav { display: flex; justify-content: space-between; margin: 0; }
.atk-fb__nav .atk-link { border: 0; background: none; color: var(--c-indigo-900); cursor: pointer; font: inherit; }
.atk-fb__form { display: grid; gap: 14px; }
.atk-fb__form textarea { min-height: 120px; }
.atk-fb__thanks { margin: 40px 0; text-align: center; font-family: var(--f-title); font-size: 24px; font-weight: 700; }
@media (max-width: 600px) { .atk-fb__card { padding: 22px 18px; } .atk-fb__opts { grid-template-columns: 1fr; } .atk-fb__opt { min-height: 54px; } .atk-fb__star { font-size: 44px; } }
/* Avis : échelle de 1 à 5 par critère */
.atk-fb__hint { margin: -10px 0 0; color: var(--c-grey-600); }
.atk-fb__scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.atk-fb__num { aspect-ratio: 1 / 1; max-height: 96px; border: 2px solid var(--c-indigo-50); border-radius: 50%; background: #fff; font-family: var(--f-title); font-size: 28px; font-weight: 800; color: var(--c-indigo-900); cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.atk-fb__num:hover { border-color: var(--c-indigo-900); transform: translateY(-2px); }
.atk-fb__num.is-picked { background: var(--c-indigo-900); border-color: var(--c-indigo-900); color: #fff; }
.atk-fb__legend { display: flex; justify-content: space-between; margin: -6px 0 0; font-size: 13px; color: var(--c-grey-600); }
@media (max-width: 600px) { .atk-fb__scale { gap: 8px; } .atk-fb__num { font-size: 22px; } }
/* ---------- Corrections mobile ---------- */
/* Pastilles de langue : chaque colonne prend la largeur de son texte (plus de texte coupé). */
.atk-pills--lang .atk-pills__list { grid-auto-columns: max-content; }
/* En-tête : logo, « Bonjour » et langue sur la 1re ligne, menu sur la 2e. */
@media (max-width: 600px) {
	.atk-header { gap: 8px 10px; padding-top: 12px; padding-bottom: 12px; }
	.atk-header__logo img { height: 26px; }
	.atk-hello { font-size: 12px; }
	.atk-lang summary { padding: 6px 8px; font-size: 13px; gap: 4px; }
	.atk-lang__list { min-width: 190px; }
	.atk-nav { padding: 3px; }
	.atk-hero__inner { padding-top: 120px; }
	.atk-title { overflow-wrap: anywhere; }
	.atk-unit__title { overflow-wrap: anywhere; }
	.atk-recent__item { padding: 12px; }
	.atk-recent__main { flex-basis: 100%; }
	.atk-history td { overflow-wrap: anywhere; }
	.atk-anchors a { padding: 6px 8px; font-size: 13px; }
	.atk-goal-field { gap: 10px; }
	.atk-goal__pills { grid-template-columns: repeat(5, 1fr); width: 100%; }
}

/* Bouton d'accessibilité : se range au bord gauche après quelques secondes (languette visible). */
.atk-a11y { transition: transform .3s ease, opacity .3s ease; }
.atk-a11y.is-tucked { transform: translateX(calc(-100% + 4px)); opacity: .7; }
.atk-a11y.is-tucked .atk-a11y__btn { border-radius: 0 50% 50% 0; }
.atk-a11y.is-tucked::after { content: ""; position: absolute; top: 50%; right: -10px; width: 10px; height: 34px; margin-top: -17px; border-radius: 0 8px 8px 0; background: var(--c-indigo-900); }
/* « Choisir mon thème du jour » : bien détachée de la photo floutée */
.atk-themes { margin-top: -36px; box-shadow: 0 -14px 34px rgba(0, 0, 0, .35); border-top: 1px solid rgba(255, 255, 255, .25); }
.atk-themes::before { content: ""; position: absolute; top: 10px; left: 50%; width: 48px; height: 5px; margin-left: -24px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.atk-hero::before { background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 55%, rgba(255,255,255,.08) 100%); }
/* Mon compte en mobile : aucun bloc ne doit élargir la page */
.atk-main > *, .atk-account > *, .atk-panel > *, .atk-account section > * { min-width: 0; }
.atk-heatmap { max-width: 100%; }
.atk-chart { grid-template-columns: repeat(12, minmax(0, 1fr)); }
@media (max-width: 600px) {
	.atk-heatmap { gap: 3px; }
	.atk-heatmap__col { grid-template-rows: repeat(7, 11px); gap: 3px; }
	.atk-heatmap__day { width: 11px; height: 11px; border-radius: 2px; }
	.atk-chart__label { font-size: 9px; }
	.atk-chart__col:nth-child(even) .atk-chart__label { visibility: hidden; }
	.atk-badge { padding: 12px 8px; }
	.atk-badge__icon { font-size: 28px; }
	.atk-pcity__head h3 { font-size: 19px; }
	.atk-pcity__pct { width: 64px; height: 64px; }
	.atk-pcity__pct b { width: 50px; height: 50px; font-size: 15px; }
	/* Introduction d'une leçon : tout centré sur téléphone */
	.atk-intro { text-align: center; }
}
/* Page ville sur téléphone : titre, bouton « Reprendre / Commencer » et boutons des leçons centrés */
@media (max-width: 600px) {
	.atk-hero__inner { flex-direction: column; justify-content: center; text-align: center; }
	.atk-hero__inner .atk-title { width: 100%; }
	.atk-themes__title { text-align: center; }
	.atk-unit { justify-content: center; text-align: center; }
	.atk-unit__title { justify-content: center; }
	.atk-unit .atk-stars { width: 100%; justify-content: center; }
}
/* ---------- Retours iPhone ---------- */
/* 1. Bouton d'accessibilité rangé : entièrement caché, seule une petite languette nette dépasse. */
.atk-a11y.is-tucked { transform: translateX(-100%); opacity: 1; }
.atk-a11y.is-tucked .atk-a11y__btn { visibility: hidden; }
.atk-a11y.is-tucked::after { content: "›"; display: grid; place-items: center; top: 50%; right: -18px; width: 18px; height: 44px; margin-top: -22px; border-radius: 0 10px 10px 0; background: var(--c-indigo-900); color: #fff; font-size: 18px; font-weight: 700; line-height: 1; box-shadow: 2px 0 8px rgba(0,0,0,.2); }
.atk-app--player .atk-a11y.is-tucked::after, .atk-app--indigo .atk-a11y.is-tucked::after { background: #fff; color: var(--c-indigo-900); }
/* 2. Rien sous la barre de Safari : marge en bas des écrans d'introduction et de fin. */
.atk-intro, .atk-end { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
/* 3. Mise en situation centrée sur téléphone. */
@media (max-width: 600px) {
	.atk-scene { justify-items: center; text-align: center; }
	.atk-scene__line { justify-self: center; }
}
/* Rangées qui défilent sur téléphone : fondu à droite pour signaler la suite (au lieu d'un texte qui semble coupé). */
@media (max-width: 600px) {
	.atk-nav, .atk-pills--lang .atk-pills__list {
		-webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
		mask-image: linear-gradient(to right, #000 82%, transparent);
		padding-right: 36px;
	}
	.atk-nav.is-end, .atk-pills--lang .atk-pills__list.is-end { -webkit-mask-image: none; mask-image: none; }
	.atk-nav__item { font-size: 14px; padding: 7px 10px; }
	.atk-pill { font-size: 14px; padding: 5px 12px 5px 5px; gap: 6px; }
	.atk-pill img { width: 22px; height: 22px; }
}
/* Langues : toutes les pastilles de la même largeur, espaces réguliers */
.atk-pills--lang .atk-pills__list { grid-auto-columns: 152px; }
.atk-pills--lang .atk-pills__item { display: flex; }
.atk-pills--lang .atk-pill { width: 100%; }
@media (max-width: 600px) { .atk-pills--lang .atk-pills__list { grid-auto-columns: 138px; } }
.atk-pills--lang { max-width: 1210px; }
@media (min-width: 601px) { .atk-pills--lang .atk-pills__list { grid-auto-columns: 140px; } }

/* « Bonjour … ! » plus lisible sur téléphone */
@media (max-width: 600px) { .atk-hello { font-size: 15px; } }
@media (max-width: 370px) { .atk-hello { font-size: 14px; } }

/* Capsules des leçons : toutes de la même hauteur (celle de la plus grande) et de la même largeur */
.atk-units { grid-auto-rows: 1fr; }
.atk-unit { height: 100%; box-sizing: border-box; }
@media (max-width: 860px) {
	.atk-unit { flex-direction: column; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 10px; }
	.atk-unit__title { flex: 0 0 auto; }
	.atk-unit .atk-stars { width: auto; }
	.atk-unit > .atk-fav, .atk-unit > .atk-unit__btn { flex: 0 0 auto; }
	/* Cœur et bouton côte à côte, en bas de la capsule */
	.atk-unit__actions { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: auto; }
	/* Onglets : icône en haut, compteur toujours en bas */
	.atk-tabs { align-items: stretch; }
	.atk-tab { height: 100%; justify-content: flex-start; }
	.atk-tab__count { margin-top: auto; }
}
.atk-unit__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.atk-tabs { grid-auto-rows: 1fr; }

/* Capsules des leçons : difficulté et durée */
.atk-unit__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; flex-shrink: 0; font-size: 13px; color: var(--c-grey-600); }
.atk-unit__meta > span { padding: 3px 10px; border-radius: 20px; background: var(--c-indigo-50); white-space: nowrap; }
.atk-unit.is-done .atk-unit__meta > span { background: rgba(255,255,255,.6); }
@media (max-width: 860px) { .atk-unit__meta { justify-content: center; } }
/* Accessibilité : pas de bouton flottant sur téléphone et tablette (réglages dans Mon compte). */
@media (max-width: 860px) { .atk-a11y { display: none; } }
.atk-a11y-settings { display: grid; gap: 12px; }
.atk-a11y-settings .atk-muted { margin: -6px 0 4px; }

/* Le prénom mène à Mon compte (pratique sur téléphone) */
.atk-hello { color: inherit; text-decoration: none; }
.atk-hello:hover, .atk-hello:focus-visible { text-decoration: underline; text-underline-offset: 3px; }


/* Mon compte : raccourcis de sections tous de la même taille, sur toutes les lignes */
.atk-anchors { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.atk-anchors a { display: flex; align-items: center; justify-content: center; min-height: 40px; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 900px) { .atk-anchors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .atk-anchors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .atk-anchors a { min-height: 44px; padding: 6px 4px; border-radius: 14px; font-size: 13px; } }

/* Boutons de suppression : jamais plus larges que l'écran */
.atk-danger-zone .atk-panel { min-width: 0; overflow-wrap: anywhere; }
.atk-btn-danger { max-width: 100%; white-space: normal; text-align: center; line-height: 1.3; }
@media (max-width: 600px) { .atk-btn-danger { width: 100%; } }
/* Page ville : l'en-tête (logo, menu, langue) reste cliquable au-dessus de la photo */
.atk-app--photo .atk-header { z-index: 10; }

/* Accueil (ordinateur) : langues en 2 lignes centrées, nom centré dans chaque capsule */
@media (min-width: 601px) {
	.atk-pills--lang .atk-pills__list { display: flex; flex-wrap: wrap; justify-content: center; max-width: 1184px; margin: 0 auto; overflow: visible; }
	.atk-pills--lang .atk-pills__item { width: 140px; }
}
.atk-pills--lang .atk-pill { justify-content: center; }
/* ---------- Menu burger (téléphone et petite tablette) ---------- */
.atk-burger { display: none; }
.atk-burger__close { display: none; }
@media (max-width: 860px) {
	.atk-header { flex-wrap: nowrap; }
	.atk-burger { display: inline-grid; place-items: center; order: 3; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 12px; background: #fff; color: var(--c-indigo-900); cursor: pointer; box-shadow: 0 4px 18px rgba(60, 1, 214, .08); position: relative; z-index: 31; }
	.atk-hello { margin-left: auto; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
	/* Le menu se range : il s'ouvre en plein écran au toucher du burger. */
	.atk-header .atk-nav { display: none; }
	body.atk-menu-open { overflow: hidden; }
	body.atk-menu-open .atk-header .atk-nav {
		display: flex; flex-direction: column; align-items: stretch; gap: 6px;
		position: fixed; inset: 0; z-index: 30; width: auto; margin: 0; overflow-y: auto;
		padding: 84px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 0;
		background: var(--c-indigo-900); box-shadow: none; backdrop-filter: none;
		-webkit-mask-image: none; mask-image: none;
	}
	body.atk-menu-open .atk-burger__open { display: none; }
	body.atk-menu-open .atk-burger__close { display: block; }
	body.atk-menu-open .atk-header .atk-nav__item { justify-content: flex-start; width: 100%; margin: 0; padding: 16px 18px; border-radius: 16px; font-size: 20px; color: #fff; background: rgba(255, 255, 255, .08); }
	body.atk-menu-open .atk-header .atk-nav__item.is-active { background: #fff; color: var(--c-indigo-900); }
	body.atk-menu-open .atk-header .atk-nav__item.is-active .atk-nav__check { background: var(--c-indigo-900); color: #fff; }
	body.atk-menu-open .atk-header .atk-nav__item.is-soon { color: rgba(255, 255, 255, .5); background: transparent; }
	body.atk-menu-open .atk-header .atk-nav__item.is-soon::after { content: "Prochainement"; margin-left: auto; padding: 3px 10px; border-radius: 20px; background: rgba(255, 255, 255, .12); font-size: 12px; font-weight: 600; }
	body.atk-menu-open .atk-header .atk-nav__item--account::before { display: none; }
	body.atk-menu-open .atk-header .atk-nav__logout { margin-top: 18px; background: transparent; color: rgba(255, 255, 255, .8); font-size: 17px; }
	body.atk-menu-open .atk-header .atk-nav__logout span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	/* Logo, prénom et langue restent visibles au-dessus du menu ouvert. */
	body.atk-menu-open .atk-header__logo, body.atk-menu-open .atk-hello, body.atk-menu-open .atk-header .atk-lang { position: relative; z-index: 31; }
	body.atk-menu-open .atk-hello { color: #fff; }
}

/* Page ville : plus de petite barre au-dessus de « Choisir mon thème » */
.atk-themes::before { content: none; }body.atk-menu-open .atk-header { z-index: 50; }

/* « Choisir mon thème » passe au-dessus du bas de la photo (le voile de la photo ne déborde plus dessus) */
.atk-themes { z-index: 3; }

/* Téléphone : logo complet en haut, choix de langue rangé dans le menu ☰ */
.atk-nav__lang { display: none; }
@media (max-width: 860px) {
	.atk-header__logo img + img { display: block; }
	.atk-header__logo { gap: 6px; flex: none; }
	.atk-header__logo img { height: 26px; }
	.atk-header > .atk-lang { display: none; }
	body.atk-menu-open .atk-header .atk-nav__lang { display: grid; gap: 8px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); }
	.atk-nav__lang-label { color: rgba(255, 255, 255, .7); font-family: var(--f-title); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
	.atk-nav__lang .atk-lang { margin: 0; }
	.atk-nav__lang .atk-lang summary { justify-content: flex-start; padding: 14px 18px; border-radius: 16px; font-size: 18px; gap: 10px; }
	.atk-nav__lang .atk-lang summary::after { margin-left: auto; }
	.atk-nav__lang .atk-lang__list { position: static; margin-top: 6px; min-width: 0; }
	body.atk-menu-open .atk-header .atk-nav__lang + .atk-nav__logout { margin-top: 10px; }
}
@media (max-width: 370px) { .atk-header__logo img { height: 22px; } .atk-header__logo img + img { height: 20px; } }
/* Téléphone : logo de la même taille sur toutes les pages (comme sur l'accueil : 26 px de haut, ~130 px de large) */
@media (max-width: 860px) {
	.atk-header__logo { gap: 6px; }
	.atk-header__logo img, .atk-header__logo img + img { height: 26px; }
	.atk-header__logo img:first-child:not(:only-child) { height: 25px; }
	.atk-header__logo img + img { height: 19px; }
}
/* Onglets de thème : même équilibre visuel pour les trois capsules */
/* Capsule choisie : même fond que les autres, entourée d'un contour blanc */
.atk-tab.is-active { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px #fff; }
.atk-tab.is-active:hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 860px) {
	.atk-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* Titre sur deux lignes réservées : « Culture locale » se centre dans le même espace que les autres */
	.atk-tab__text { flex: 0 0 auto; width: 100%; }
	.atk-tab__text strong { display: flex; align-items: center; justify-content: center; min-height: 2.5em; line-height: 1.25; }
}
/* Ordinateur : le logo n'est jamais rogné ; « Se déconnecter » devient une simple icône quand la place manque */
.atk-header__logo { flex: none; }
@media (max-width: 1360px) { .atk-header .atk-nav__logout span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (max-width: 860px) { body.atk-menu-open .atk-header .atk-nav__logout span { position: static; width: auto; height: auto; overflow: visible; clip: auto; } }@media (min-width: 861px) and (max-width: 1240px) {
	.atk-header { flex-wrap: wrap; }
	.atk-header .atk-nav { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
	.atk-hello { order: 2; margin-left: auto; }
	.atk-header > .atk-lang { order: 2; margin-left: 0; }
	.atk-hero__inner { padding-top: 130px; }
}
/* Pied de page : bande indigo de la charte (maquette Figma), logo blanc */
.atk-footer { background: var(--c-indigo-900); border-top: 1px solid rgba(255, 255, 255, .18); }
.atk-footer p { color: rgba(255, 255, 255, .75); }
/* ---------- Fin de leçon épurée ---------- */
.atk-end { gap: 16px; }
.atk-end .atk-title { margin: 4px 0 0; }
.atk-end__text { max-width: 30em; margin: 0; }
/* Bilan : une bande compacte de 4 chiffres */
.atk-end__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; max-width: 560px; margin: 8px 0 4px; padding: 14px 6px; border-radius: 18px; background: rgba(255, 255, 255, .1); }
.atk-end__stat { display: flex; flex-direction: column; gap: 2px; padding: 0 6px; border-radius: 0; background: none; }
.atk-end__stat + .atk-end__stat { border-left: 1px solid rgba(255, 255, 255, .18); }
.atk-end__stat dd { margin: 0; font-size: 22px; white-space: nowrap; }
.atk-end__stat dt { font-size: 13px; opacity: .75; }
/* Actions : un bouton principal, l'autre en lien discret */
.atk-end__actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.atk-end__main { min-width: 260px; justify-content: center; }
.atk-end__alt { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .45); }
.atk-end__alt:hover { text-decoration-color: #fff; }
/* Ligne du bas : favoris · avis */
.atk-end__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 22px; margin: 6px 0 0; font-size: 15px; }
.atk-end__links .atk-end__fav { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; }
.atk-end__links .atk-end__fav .atk-fav { width: 36px; height: 36px; font-size: 22px; }
.atk-end__link { padding: 6px 4px; border: 0; background: none; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.atk-end__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.atk-end__saved:empty { display: none; }
@media (max-width: 600px) {
	.atk-end__stars { font-size: 52px; }
	.atk-end__stat dd { font-size: 18px; }
	.atk-end__stat dt { font-size: 12px; }
	.atk-end__main { min-width: 0; width: 100%; max-width: 340px; }
}
/* ---------- Retours bêta : consignes plus claires ---------- */
.atk-ex__hint { opacity: .85; max-width: 34em; margin-left: auto; margin-right: auto; }
.atk-scene__ask { margin: 4px 0 0; font-size: 17px; opacity: .9; }
/* Nombres : touches « , » et « : » sous le champ */
.atk-numkeys { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.atk-numkey { min-width: 56px; height: 48px; padding: 0 16px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font: inherit; font-size: 24px; font-weight: 700; cursor: pointer; }
.atk-numkey:hover { background: rgba(255, 255, 255, .22); }
/* Lettres : bouton « Tout effacer » */
.atk-letters__clear { display: block; margin: 12px auto 0; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: #fff; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; opacity: .9; }/* Paires : reliées par numéro, correction seulement à la validation */
.atk-match__item { position: relative; }
.atk-match__item.is-linked { background: var(--c-lavender-50); border-color: var(--c-lavender-900); }
.atk-match__item.is-linked::after { content: attr(data-link); position: absolute; top: -9px; right: -9px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-indigo-900); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.atk-match__item.is-linked.is-matched { opacity: 1; }
.atk-match__item.is-linked.is-wrong { animation: none; }.atk-match__item.is-linked.is-matched { border-color: var(--c-green-500); background: var(--c-green-50); }
.atk-match__item.is-linked.is-wrong { border-color: var(--c-red-600); background: var(--c-red-50); }
.atk-match__item.is-linked.is-wrong::after { background: var(--c-red-600); }

/* Correction enrichie : vocabulaire, conjugation, bonne réponse à écouter */
.atk-feedback { max-height: 62vh; overflow-y: auto; }
.atk-feedback__vocab { margin: 8px 0 0; font-size: 15px; line-height: 1.5; }
.atk-tip { margin: 10px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); color: var(--c-black); text-align: left; }
.atk-tip__title { margin: 0 0 8px; font-weight: 700; font-size: 15px; }
.atk-tip__conj { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; margin: 0; }
.atk-tip__row { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; border-bottom: 1px dashed rgba(0, 0, 0, .12); padding: 2px 0; }
.atk-tip__row dt { opacity: .7; }
.atk-tip__row dd { margin: 0; font-weight: 700; }
.atk-speak--answer { align-items: center; }
.atk-speak__label { font-size: 14px; font-weight: 600; margin-right: 4px; }
@media (max-width: 600px) { .atk-tip__conj { grid-template-columns: 1fr; } }/* Tableau de conjugaison : singulier à gauche, pluriel à droite, aussi sur téléphone */
.atk-tip__conj { grid-template-rows: repeat(3, auto); grid-auto-flow: column; }
@media (max-width: 600px) { .atk-tip__conj { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; } .atk-tip__row { font-size: 13px; } }

/* Menu des langues : capsule assez large pour aligner toutes les étiquettes « Prochainement » */
.atk-lang__list { min-width: 280px; }
.atk-lang__item { white-space: nowrap; }
.atk-lang__item small { flex: none; padding-left: 12px; }
@media (max-width: 860px) { .atk-nav__lang .atk-lang__list { min-width: 0; } }

/* Réponses à choix centrées dans tous les exercices (pastille + texte au milieu), scène centrée aussi sur ordinateur */
.atk-choice { justify-content: center; text-align: center; }
.atk-scene { justify-items: center; text-align: center; }
.atk-scene__line { justify-self: center; }

/* Accueil : rangée des villes d'un pays */
.atk-pills--city { max-width: 1100px; }
.atk-pill--city { padding: 9px 16px; text-decoration: none; }
.atk-pill--city.is-open { background: var(--c-indigo-900); color: #fff; outline: 0; }
.atk-pill--city.is-open:hover { background: var(--c-indigo-900); filter: brightness(1.1); }
.atk-pill__go { font-weight: 700; }
.atk-pills + .atk-pills--city { margin-top: 22px; }
@media (max-width: 600px) { .atk-pill--city { padding: 8px 13px; font-size: 14px; } }
/* Pays choisi : seulement le fond indigo, sans coche */
.atk-pills--country .atk-pill__check, .atk-pills--country .atk-pill.is-active .atk-pill__check { display: none; }
/* Langue choisie aussi : plus aucune coche, le fond indigo suffit */
.atk-pill .atk-pill__check, .atk-pill.is-active .atk-pill__check { display: none !important; }

/* Page ville : un titre par colonne (« Choisir mon thème » | « Choisir ma leçon ») */
.atk-themes__grid > .atk-themes__title { max-width: none; margin: 0 0 4px; }
.atk-themes__title--themes { grid-column: 1; grid-row: 1; }
.atk-themes__title--lessons { grid-column: 2; grid-row: 1; }
.atk-themes__grid > .atk-tabs { grid-column: 1; grid-row: 2; }
.atk-themes__grid > .atk-units { grid-column: 2; grid-row: 2; }
@media (max-width: 860px) {
	/* Une seule colonne : chaque titre juste au-dessus de son bloc. */
	.atk-themes__title--themes, .atk-themes__title--lessons, .atk-themes__grid > .atk-tabs, .atk-themes__grid > .atk-units { grid-column: 1; grid-row: auto; }
	.atk-themes__title--themes { order: 1; }
	.atk-themes__grid > .atk-tabs { order: 2; }
	.atk-themes__title--lessons { order: 3; margin-top: 12px; }
	.atk-themes__grid > .atk-units { order: 4; }
}
@media (max-width: 600px) { .atk-themes__grid > .atk-themes__title { text-align: center; } }
/* PC : colonne des thèmes plus large, « Choisir mon thème » sur une seule ligne */
@media (min-width: 861px) {
	.atk-themes__grid { grid-template-columns: minmax(300px, 480px) 1fr; }
	.atk-themes__grid > .atk-themes__title { white-space: nowrap; }
}

/* Titres « Choisir mon thème » / « Choisir ma leçon » centrés au-dessus de leur colonne */
.atk-themes__grid > .atk-themes__title { text-align: center; }

/* Fenêtre « Prochainement disponible » (villes pas encore ouvertes) */
.atk-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(20, 0, 70, .55); backdrop-filter: blur(4px); animation: atk-in .2s ease; }
.atk-modal[hidden] { display: none; }
.atk-modal__card { width: 100%; max-width: 440px; padding: 36px 28px 28px; border-radius: 28px; background: #fff; color: var(--c-black); text-align: center; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.atk-modal__icon { margin: 0 0 6px; font-size: 56px; line-height: 1; }
.atk-modal__title { margin: 0; font-family: var(--f-title); font-size: clamp(26px, 4vw, 34px); font-weight: 700; color: var(--c-indigo-900); }
.atk-modal__city { margin: 8px 0 0; font-family: var(--f-title); font-size: 22px; font-weight: 600; }
.atk-modal__text { margin: 12px 0 22px; color: var(--c-grey-600); }
.atk-modal__ok { min-width: 160px; justify-content: center; }
body.atk-modal-open { overflow: hidden; }
/* Étapes 1 / 2 devant « Choisir mon thème » et « Choisir ma leçon » */
.atk-step { display: inline-grid; place-items: center; width: 1.15em; height: 1.15em; margin-right: .25em; border-radius: 50%; background: #fff; color: var(--c-indigo-900); font-size: .8em; line-height: 1; vertical-align: .08em; }

/* PC : la colonne des thèmes prend exactement la largeur du titre « 1 Choisir mon thème » */
@media (min-width: 861px) {
	.atk-themes__grid { grid-template-columns: auto minmax(0, 1fr); }
	.atk-themes__grid > .atk-tabs { width: 0; min-width: 100%; } /* Les capsules suivent la largeur du titre sans l'élargir. */
}

/* Introduction d'une leçon : titre et texte centrés aussi sur ordinateur */
.atk-intro { text-align: center; align-items: center; }
.atk-intro .atk-title { max-width: 22em; margin-left: auto; margin-right: auto; }
.atk-intro__text { max-width: 46em; margin-left: auto; margin-right: auto; }

/* Fenêtre « Prochainement disponible » : plus grande, avec « Pas d'accord » pour rire */
.atk-modal__card { max-width: 560px; padding: 48px 36px 36px; border-radius: 32px; }
.atk-modal__icon { font-size: 76px; margin-bottom: 10px; }
.atk-modal__title { font-size: clamp(30px, 5vw, 42px); }
.atk-modal__city { font-size: 26px; margin-top: 10px; }
.atk-modal__text { font-size: 18px; margin: 14px 0 26px; }
.atk-modal__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; }
.atk-modal__actions .btn { min-width: 170px; justify-content: center; }
.atk-modal__no { background: #fff; color: var(--c-black); border: 2px solid var(--c-black); }
.atk-modal__no:hover { background: var(--c-lavender-50); }
.atk-modal__joke { min-height: 1.4em; margin: 16px 0 0; font-weight: 600; color: var(--c-indigo-900); }
.atk-modal__card.is-shaking { animation: atk-shake .35s ease; }
@media (max-width: 600px) { .atk-modal__card { padding: 36px 22px 26px; } .atk-modal__actions .btn { flex: 1 1 100%; } }.atk-modal__joke { font-size: 44px; line-height: 1.1; }

/* ---------- Accueil : sélecteur en 3 colonnes (1 Langue → 2 Pays → 3 Ville) ---------- */
.atk-picker { max-width: 1100px; margin: 32px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.atk-picker + .atk-cities { margin-top: 44px; }
.atk-picker .atk-pills, .atk-picker .atk-pills[hidden] { display: flex; flex-direction: column; gap: 10px; max-width: none; margin: 0; }
.atk-picker .atk-pills + .atk-pills { margin-top: 0; }
.atk-picker .atk-pills__label { margin: 0; font-size: 18px; letter-spacing: 0; text-transform: none; }
.atk-picker .atk-step { background: var(--c-indigo-900); color: #fff; }
.atk-picker .atk-pills__list { display: flex !important; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; gap: 4px; height: 400px; max-width: none !important; margin: 0; padding: 8px; overflow-x: hidden; overflow-y: auto; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px rgba(60, 1, 214, .08); -webkit-mask-image: none !important; mask-image: none !important; grid-template-rows: none; }
.atk-picker .atk-pills__item { display: block !important; width: auto !important; }
.atk-picker .atk-pills__item[hidden] { display: none !important; }
.atk-picker .atk-pill { width: 100%; justify-content: flex-start; padding: 8px 12px 8px 8px; border-radius: 12px; background: transparent; box-shadow: none; outline: 0; font-size: 16px; white-space: normal; text-align: left; }
.atk-picker .atk-pill:hover { background: var(--c-indigo-50); }
.atk-picker .atk-pill.is-active, .atk-picker .atk-pill.is-active:hover { background: var(--c-indigo-900); color: #fff; }
.atk-picker .atk-pill--city { padding: 10px 14px; }
.atk-picker .atk-pill--city.is-open { background: var(--c-lavender-50); color: var(--c-indigo-900); font-weight: 700; }
.atk-picker .atk-pill--city.is-open:hover { background: var(--c-indigo-900); color: #fff; filter: none; }
.atk-picker .atk-pill__go { margin-left: auto; }
.atk-pills__empty { display: none; }
.atk-picker .atk-pills.is-empty .atk-pills__list { display: none !important; }
.atk-picker .atk-pills.is-empty .atk-pills__empty { display: grid; place-items: center; height: 400px; margin: 0; padding: 20px; border-radius: 20px; border: 2px dashed rgba(60, 1, 214, .2); color: var(--c-grey-600); text-align: center; }
@media (max-width: 860px) {
	.atk-picker { grid-template-columns: 1fr; gap: 22px; }
	.atk-picker .atk-pills__list, .atk-picker .atk-pills.is-empty .atk-pills__empty { height: auto; max-height: 260px; }
	.atk-picker .atk-pills.is-empty .atk-pills__empty { min-height: 90px; }
}/* PC : le sélecteur occupe toute la largeur, comme la rangée des villes en photo en dessous */
.atk-picker { max-width: none; gap: 24px; }

/* ---------- Page ville : 3 colonnes de même largeur (1 thème · 2 leçon · 3 continuer l'expérience) ---------- */
.atk-themes__title--more { grid-column: 3; grid-row: 1; }
.atk-more { grid-column: 3; grid-row: 2; display: grid; gap: 14px; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .1); border: 2px dashed rgba(255, 255, 255, .35); color: #fff; }
.atk-more__badge { justify-self: start; margin: 0; padding: 4px 12px; border-radius: 20px; background: #fff; color: var(--c-indigo-900); font-size: 13px; font-weight: 700; }
.atk-more__lead { margin: 0; font-family: var(--f-title); font-size: 19px; font-weight: 600; line-height: 1.35; }
.atk-more__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.atk-more__list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .12); }
.atk-more__list strong { display: block; margin-bottom: 2px; font-size: 17px; }
.atk-more__list span:last-child { font-size: 15px; line-height: 1.45; opacity: .92; }
.atk-more__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; font-size: 24px; }
.atk-more__quote { margin: 4px 0 0; font-style: italic; font-size: 15px; opacity: .85; }
@media (min-width: 1081px) {
	.atk-themes__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.atk-themes__grid > .atk-themes__title { white-space: normal; font-size: clamp(24px, 2.2vw, 30px); }
	/* Leçons dans une colonne plus étroite : titre sur sa ligne, infos et boutons en dessous. */
	.atk-themes__grid .atk-unit { flex-wrap: wrap; }
	.atk-themes__grid .atk-unit__title { flex: 1 1 100%; }
	.atk-themes__grid .atk-unit__actions { margin-left: auto; }
}
@media (min-width: 861px) and (max-width: 1080px) {
	.atk-themes__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.atk-themes__title--more, .atk-more { grid-column: 1 / -1; }
	.atk-themes__title--more { grid-row: 3; margin-top: 16px; }
	.atk-more { grid-row: 4; }
}
@media (max-width: 860px) {
	.atk-themes__title--more { order: 5; margin-top: 12px; grid-column: 1; grid-row: auto; }
	.atk-more { order: 6; grid-column: 1; grid-row: auto; text-align: left; }
}/* 3e colonne : visages des profs et vignettes d'expériences (photos d'illustration) */
.atk-more__list li > span:last-child { min-width: 0; }
.atk-more__faces { display: flex; margin-top: 10px; }
.atk-more__faces img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; }
.atk-more__faces img + img { margin-left: -10px; }
.atk-more__pics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.atk-more__pics img { width: 100%; aspect-ratio: 1; border-radius: 10px; object-fit: cover; }
/* ---------- Page ville (PC large) : colonnes dépliables. La 2 (leçons) reste ouverte, la 1 ou la 3 se replie. ---------- */
@media (min-width: 1081px) {
	.atk-themes__grid { transition: grid-template-columns .45s ease; }
	.atk-themes__grid[data-closed="3"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, .55fr); }
	.atk-themes__grid[data-closed="1"] { grid-template-columns: minmax(0, .55fr) minmax(0, 1.6fr) minmax(0, 1fr); }
	.atk-themes__grid [data-col] { transition: filter .35s ease, opacity .35s ease; }
	.atk-themes__grid[data-closed="1"] [data-col="1"], .atk-themes__grid[data-closed="3"] [data-col="3"] { filter: blur(3px); opacity: .55; cursor: pointer; user-select: none; }
	.atk-themes__grid[data-closed="1"] .atk-tabs[data-col="1"] *, .atk-themes__grid[data-closed="3"] .atk-more[data-col="3"] * { pointer-events: none; }
	.atk-themes__grid[data-closed="1"] [data-col="1"]:hover, .atk-themes__grid[data-closed="3"] [data-col="3"]:hover { filter: blur(1.5px); opacity: .8; }
	/* Petit bouton « Ouvrir » posé sur la colonne repliée (net, au-dessus du flou). */
	.atk-col-open { display: none; }
	.atk-themes__grid[data-closed] .atk-col-open { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: start; justify-self: center; margin-top: 90px; padding: 10px 18px; border: 0; border-radius: 30px; background: #fff; color: var(--c-indigo-900); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
	.atk-col-open[data-open="1"] { grid-column: 1; grid-row: 2; }
	.atk-col-open[data-open="3"] { grid-column: 3; grid-row: 2; }
	.atk-themes__grid[data-closed="3"] .atk-col-open[data-open="1"], .atk-themes__grid[data-closed="1"] .atk-col-open[data-open="3"] { display: none; }
	/* Leçons : la colonne est large, on revient à une capsule sur une ligne. */
	.atk-themes__grid .atk-unit { flex-wrap: nowrap; }
	.atk-themes__grid .atk-unit__title { flex: 1 1 auto; }
	.atk-themes__grid .atk-unit__actions { margin-left: 0; }
	/* Thèmes repliés : titre sur 2 lignes possible. */
	.atk-themes__grid > .atk-themes__title { white-space: normal; }
}@media (min-width: 1081px) {
	.atk-themes__grid[data-closed="3"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr) minmax(0, .5fr); }
	.atk-themes__grid[data-closed="1"] { grid-template-columns: minmax(0, .5fr) minmax(0, 1.9fr) minmax(0, 1fr); }
}
/* Colonnes 1 et 3 plus larges (ouvertes comme repliées), et grille plus large sur les grands écrans */
@media (min-width: 1081px) {
	.atk-themes__grid { max-width: 1480px; }
	.atk-themes__grid[data-closed="3"] { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.75fr) minmax(0, .75fr); }
	.atk-themes__grid[data-closed="1"] { grid-template-columns: minmax(0, .75fr) minmax(0, 1.75fr) minmax(0, 1.35fr); }
}
@media (min-width: 1081px) {
	/* Leçons : titre sur toute la largeur, infos et boutons en dessous (colonne du milieu plus étroite). */
	.atk-themes__grid .atk-unit { flex-wrap: wrap; }
	.atk-themes__grid .atk-unit__title { flex: 1 1 100%; }
	.atk-themes__grid .atk-unit__actions { margin-left: auto; }
}
/* Citation de Nelson Mandela en bas de la 3e colonne */
.atk-more__quote { margin: 4px 0 0; padding: 0 0 0 14px; border-left: 3px solid rgba(255, 255, 255, .5); }
.atk-more__quote p { margin: 0; font-style: italic; font-size: 15px; line-height: 1.5; opacity: .92; }
.atk-more__quote cite { display: block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: 14px; }
/* Les 2 colonnes déployées ont exactement la même largeur ; la repliée reste étroite */
@media (min-width: 1081px) {
	.atk-themes__grid[data-closed="3"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .45fr); }
	.atk-themes__grid[data-closed="1"] { grid-template-columns: minmax(0, .45fr) minmax(0, 1fr) minmax(0, 1fr); }
}
/* Profs en ligne : photos de personnes, cadrées sur le visage */
.atk-more__pics--people img { object-position: center 20%; }
/* Bascule au survol : plus de boutons « Voir les thèmes » / « Découvrir la suite » */
.atk-themes__grid[data-closed] .atk-col-open { display: none !important; }

/* Engagement de confidentialité des bêta-testeurs */
.atk-modal--beta { z-index: 200; }
.atk-beta-nda { max-width: 600px; max-height: calc(100vh - 40px); overflow-y: auto; }
.atk-beta-nda .atk-modal__text { margin-bottom: 18px; }
.atk-beta-nda__box { margin: 0 0 18px; padding: 16px 18px; border-radius: 16px; background: var(--c-lavender-50); text-align: left; }
.atk-beta-nda__box p { margin: 0 0 8px; }
.atk-beta-nda__box ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.atk-beta-nda__small { margin: 10px 0 0 !important; font-size: 13px; color: var(--c-grey-600); }
.atk-beta-nda__check { justify-content: center; margin: 0 0 18px; text-align: left; }
.atk-beta-nda__leave { margin: 14px 0 0; font-size: 14px; }
.atk-beta-nda__leave a { color: var(--c-grey-600); }.atk-beta-nda__box ul { list-style: disc; }
.atk-beta-nda__box li { display: list-item; }
/* Bascule entre colonnes : fondu au lieu d'une animation de largeur (le texte ne tremble plus) */
@media (min-width: 1081px) {
	.atk-themes__grid { transition: opacity .15s ease !important; }
	.atk-themes__grid.is-fading { opacity: 0; }
	.atk-themes__grid [data-col] { transition: none; }
}
@media (prefers-reduced-motion: reduce) { .atk-themes__grid { transition: none !important; } }
/* Bascule plus douce : disparition rapide, réapparition lente */
@media (min-width: 1081px) {
	.atk-themes__grid { transition: opacity .7s ease-out !important; }
	.atk-themes__grid.is-fading { opacity: 0; transition: opacity .2s ease-in !important; }
}
@media (prefers-reduced-motion: reduce) { .atk-themes__grid, .atk-themes__grid.is-fading { transition: none !important; } }

/* Page ville (PC large) : effet « rideau ». Le contenu des colonnes 1 et 3 garde la largeur d'une colonne ouverte (--openw) ;
   la colonne se dévoile ou se cache sans que le texte se recale. */
@media (min-width: 1081px) {
	.atk-themes__grid, .atk-themes__grid.is-fading { opacity: 1 !important; transition: grid-template-columns .55s ease !important; }
	.atk-themes__grid [data-col] { overflow: hidden; }
	.atk-themes__grid .atk-tabs[data-col] { width: auto !important; min-width: 0 !important; }
	.atk-themes__grid .atk-tabs[data-col] > * { width: var(--openw, 100%); flex: none; }
	.atk-themes__grid .atk-more { min-width: 0; }
	.atk-themes__grid .atk-more > * { width: calc(var(--openw, 100%) - 48px); }
	.atk-themes__grid > .atk-themes__title[data-col] { white-space: nowrap !important; }
	.atk-themes__grid > .atk-themes__title[data-col] .atk-col-inner { display: block; width: var(--openw, 100%); text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .atk-themes__grid { transition: none !important; } }
/* Paires reliées : bien visibles (indigo plein, texte blanc, numéro de la paire en blanc) */
.atk-match__item.is-linked { background: var(--c-indigo-900); border-color: var(--c-indigo-900); color: #fff; }
.atk-match__item.is-linked::after { background: #fff; color: var(--c-indigo-900); box-shadow: 0 0 0 2px var(--c-indigo-900); width: 26px; height: 26px; font-size: 14px; }
/* Après validation : vert / rouge restent prioritaires */
.atk-match__item.is-linked.is-matched { background: var(--c-green-50); border-color: var(--c-green-500); color: var(--c-black); }
.atk-match__item.is-linked.is-matched::after { background: var(--c-green-500); color: #fff; box-shadow: 0 0 0 2px #fff; }
.atk-match__item.is-linked.is-wrong { background: var(--c-red-50); border-color: var(--c-red-600); color: var(--c-black); }
.atk-match__item.is-linked.is-wrong::after { background: var(--c-red-600); color: #fff; box-shadow: 0 0 0 2px #fff; }/* Paires reliées : une couleur vive par paire (les deux mots d'une même paire ont la même teinte) */
.atk-match__item.is-linked { color: var(--c-black); box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.atk-match__item.is-linked::after { color: #fff; box-shadow: 0 0 0 2px #fff; }
.atk-match__item.is-linked[data-link="1"], .atk-match__item.is-linked[data-link="5"] { background: #ffd7a8; border-color: #e07a1f; }
.atk-match__item.is-linked[data-link="1"]::after, .atk-match__item.is-linked[data-link="5"]::after { background: #e07a1f; }
.atk-match__item.is-linked[data-link="2"], .atk-match__item.is-linked[data-link="6"] { background: #b9dcff; border-color: #1f6fd1; }
.atk-match__item.is-linked[data-link="2"]::after, .atk-match__item.is-linked[data-link="6"]::after { background: #1f6fd1; }
.atk-match__item.is-linked[data-link="3"], .atk-match__item.is-linked[data-link="7"] { background: #ffc4e6; border-color: #d1307f; }
.atk-match__item.is-linked[data-link="3"]::after, .atk-match__item.is-linked[data-link="7"]::after { background: #d1307f; }
.atk-match__item.is-linked[data-link="4"], .atk-match__item.is-linked[data-link="8"] { background: #fff1a6; border-color: #b38f00; }
.atk-match__item.is-linked[data-link="4"]::after, .atk-match__item.is-linked[data-link="8"]::after { background: #b38f00; }/* Après validation, vert / rouge passent avant la couleur de la paire */
.atk-match__item.is-linked.is-matched[data-link] { background: var(--c-green-50); border-color: var(--c-green-500); }
.atk-match__item.is-linked.is-matched[data-link]::after { background: var(--c-green-500); }
.atk-match__item.is-linked.is-wrong[data-link] { background: var(--c-red-50); border-color: var(--c-red-600); }
.atk-match__item.is-linked.is-wrong[data-link]::after { background: var(--c-red-600); }

/* Clavier des caractères spéciaux sous les champs d'écriture */
.atk-speckeys { flex-wrap: wrap; gap: 8px; max-width: 560px; margin-left: auto; margin-right: auto; }
.atk-speckeys .atk-numkey { min-width: 46px; height: 46px; padding: 0 10px; font-size: 22px; font-weight: 600; }
.atk-speckeys__shift.is-on { background: #fff; color: var(--c-indigo-900); }
@media (max-width: 600px) { .atk-speckeys { gap: 6px; } .atk-speckeys .atk-numkey { min-width: 40px; height: 42px; font-size: 20px; } }
a.atk-end__link { text-decoration: none; }
a.atk-end__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.atk-goal__fan { margin-top: 0; }

/* Calendrier d'activité : explication, mois, jours, aujourd'hui */
.atk-cal__intro { margin: 0 0 6px; color: var(--c-grey-600); font-size: 15px; }
.atk-cal__sum { margin: 0 0 14px; font-size: 16px; }
.atk-cal__sum strong { font-family: var(--f-title); font-size: 22px; color: var(--c-indigo-900); }
.atk-heatmap__col { grid-template-rows: 16px repeat(7, 14px); }
.atk-heatmap__month { font-size: 11px; line-height: 16px; color: var(--c-grey-600); white-space: nowrap; width: 14px; overflow: visible; }
.atk-heatmap__col--labels { margin-right: 4px; }
.atk-heatmap__dl { font-size: 10px; line-height: 14px; color: var(--c-grey-600); }
.atk-heatmap__day.is-today { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-indigo-900); }
.atk-heatmap__legend { flex-wrap: wrap; }
.atk-heatmap__today-key { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; }
@media (max-width: 600px) {
	.atk-heatmap__col { grid-template-rows: 14px repeat(7, 11px); }
	.atk-heatmap__month { font-size: 9px; line-height: 14px; width: 11px; }
	.atk-heatmap__dl { font-size: 9px; line-height: 11px; }
	.atk-heatmap__day.is-today { box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--c-indigo-900); }
}/* Fenêtre de confidentialité : choix FR / EN */
.atk-beta-nda__langs { display: flex; justify-content: center; gap: 6px; margin: -20px 0 14px; }
.atk-beta-nda__lang { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 2px solid var(--c-grey-200); border-radius: 20px; background: #fff; color: var(--c-black); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.atk-beta-nda__lang img { border-radius: 50%; }
.atk-beta-nda__lang.is-on { border-color: var(--c-indigo-900); background: var(--c-indigo-900); color: #fff; }

/* Villes à venir : badge sur la photo, leçons « Prochainement », pastilles de ville cliquables */
.atk-soon-badge { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; background: rgba(255, 255, 255, .92); color: var(--c-indigo-900); font-family: var(--f-title); font-weight: 700; font-size: 17px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
button.atk-unit__btn.is-disabled { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.atk-pill--city.is-program { background: #fff; color: var(--c-indigo-900); outline: 2px solid var(--c-indigo-900); outline-offset: -2px; }
.atk-pill--city.is-program:hover { background: var(--c-indigo-50); }
/* Accueil : villes à venir grisées (photo + compteurs), mais « Prochainement » en couleur */
.atk-city.is-soon { opacity: 1; }
.atk-city.is-soon .atk-city__media, .atk-city.is-soon .atk-city__dims { opacity: .55; }
.atk-city.is-soon .atk-city__media img { filter: grayscale(.8); }
.atk-soon { background: var(--c-indigo-900); color: #fff; box-shadow: 0 4px 14px rgba(60, 1, 214, .25); }
.atk-city.is-soon .btn { position: relative; }
/* « Prochainement » : blanc sur noir, comme le bouton « Continuer » de Séville */
.atk-soon { background: var(--c-black, #111); color: #fff; box-shadow: none; }
a.atk-soon { text-decoration: none; }
a.atk-soon:hover { background: var(--c-indigo-900); }
/* Colonne Ville : les villes d'Espagne à venir s'affichent comme les autres, sans contour */
.atk-picker .atk-pill--city.is-program { outline: 0; background: transparent; color: inherit; }
.atk-picker .atk-pill--city.is-program:hover { background: var(--c-indigo-50); }

/* « Prochainement » : un seul design partout (blanc sur noir, picto 🌍) */
.atk-soon, .atk-soon-badge, .atk-more__badge, .atk-unit__btn.is-disabled, button.atk-unit__btn.is-disabled { background: #111; color: #fff; }
.atk-soon-badge { box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.atk-more__badge::before, .atk-unit__btn.is-disabled::before { content: "🌍 "; }
.atk-unit__btn.is-disabled { opacity: 1; }
.atk-lang__item small, body.atk-menu-open .atk-header .atk-nav__item.is-soon::after { padding: 2px 8px; border-radius: 20px; background: #111; color: #fff; }
.atk-lang__item small::before { content: "🌍 "; }
body.atk-menu-open .atk-header .atk-nav__item.is-soon::after { content: "🌍 Prochainement"; }.atk-themes__grid .atk-more > .atk-more__badge { width: auto; justify-self: start; }
button.atk-soon { width: 100%; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
button.atk-soon:hover { background: var(--c-indigo-900); }

/* Page ville (PC) : colonnes ouvertes plus larges. Colonne repliée réduite à 150 px, grille jusqu'à 1760 px ; largeurs en px pour garder l'effet rideau */
@media (min-width: 1081px) {
	.atk-themes__grid { max-width: 1760px; }
	.atk-themes__grid[data-closed="3"] { grid-template-columns: var(--openw, 1fr) var(--openw, 1fr) var(--closedw, 150px); }
	.atk-themes__grid[data-closed="1"] { grid-template-columns: var(--closedw, 150px) var(--openw, 1fr) var(--openw, 1fr); }
}

/* Colonne 3 repliée : petit signe animé en haut à gauche pour donner envie de la survoler */
.atk-col-hint { display: none; }
@media (min-width: 1081px) {
	.atk-themes__grid[data-closed="3"] .atk-col-hint { display: grid; grid-column: 3; grid-row: 2; align-self: start; justify-self: start; position: relative; z-index: 3; place-items: center; width: 46px; height: 46px; margin: -12px 0 0 -12px; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); cursor: pointer; font-size: 24px; animation: atk-hint-bob 2.4s ease-in-out infinite; }
	.atk-themes__grid[data-closed="3"] .atk-col-hint::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #fff; animation: atk-hint-ring 2.4s ease-out infinite; }
	.atk-themes__grid[data-closed="3"] .atk-col-hint span { animation: atk-hint-look 2.4s ease-in-out infinite; }
}
@keyframes atk-hint-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes atk-hint-ring { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes atk-hint-look { 0%, 40%, 100% { transform: translateX(0); } 55% { transform: translateX(-3px); } 70% { transform: translateX(3px); } 85% { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .atk-col-hint, .atk-col-hint::before, .atk-col-hint span { animation: none !important; } }/* Pastille 👀 plus petite, les yeux tournés vers la droite (vers la colonne à découvrir) */
@media (min-width: 1081px) {
	.atk-themes__grid[data-closed="3"] .atk-col-hint { width: 34px; height: 34px; margin: -10px 0 0 -10px; font-size: 17px; }
	.atk-themes__grid[data-closed="3"] .atk-col-hint span { display: inline-block; animation: atk-hint-look-right 2.4s ease-in-out infinite; }
}
@keyframes atk-hint-look-right { 0%, 40%, 100% { transform: scaleX(-1) translateX(0); } 55%, 80% { transform: scaleX(-1) translateX(-3px); } }
/* Classer : mots en grille équilibrée. */
.atk-bank--grid { display: grid; grid-template-columns: repeat(var(--cols, 3), auto); justify-content: center; }
.atk-bank--grid .atk-chip-word { white-space: normal; }
@media (max-width: 520px) {
	.atk-bank--grid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); justify-content: stretch; gap: 8px; }
	.atk-bank--grid .atk-chip-word { padding: 10px 6px; font-size: 15px; overflow-wrap: normal; hyphens: none; }
}
/* Réserves de mots et de lettres : lignes égales quand elles passent à la ligne. */
.atk-even { display: grid; grid-template-columns: repeat(var(--cols, 3), var(--cw, max-content)); grid-auto-rows: 1fr; justify-content: center; }
.atk-even > * { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center; white-space: normal; overflow-wrap: normal; hyphens: none; }
/* Paires : texte centré verticalement dans des cases de même hauteur. */
.atk-match__item { display: flex; align-items: center; justify-content: center; text-align: center; }
/* Accueil : compteurs de langues, pays et villes. */
.atk-count { margin-left: 4px; font-weight: 500; opacity: .6; font-size: .9em; }
.atk-pills__label .atk-count { opacity: .55; }
/* Accueil mobile : pas de liste qui défile dans la page (un seul défilement). Les langues, pays et villes
   deviennent des pastilles qui passent à la ligne, la liste prend toute sa hauteur. */
@media (max-width: 860px) {
	.atk-picker .atk-pills__list { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; height: auto; max-height: none; overflow: visible; padding: 12px; }
	.atk-picker .atk-pills__label { justify-content: center; text-align: center; }
	.atk-picker .atk-pills__item { flex: 0 0 auto; max-width: 100%; }
	.atk-picker .atk-pill, .atk-picker .atk-pill--city.is-program { width: auto; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--c-indigo-50); }
	.atk-picker .atk-pill--city, .atk-picker .atk-pill--city.is-program { padding: 8px 14px; }
	.atk-picker .atk-pill__go { margin-left: 6px; }
}
@media (max-width: 520px) {
	.atk-even > .atk-chip-word { padding: 10px 6px; font-size: 16px; }
}

/* Lecteur : texte centré dans toutes les pastilles et tous les boutons de réponse. */
.atk-choice, .atk-chip-word, .atk-match__item, .atk-bubble, .atk-cat__head, .atk-letter, .atk-gap, .atk-numkey { text-align: center; }
.atk-chip-word, .atk-letter, .atk-cat__head { display: inline-flex; align-items: center; justify-content: center; }
/* Choix multiples : le rond de sélection reste à gauche sans décaler le texte, centré sur toute la largeur. */
.atk-choice { justify-content: center; padding-left: 56px; padding-right: 56px; }
.atk-choice::before { position: absolute; left: 18px; top: 50%; margin-top: -12px; }
@media (max-width: 520px) { .atk-choice { padding-left: 48px; padding-right: 48px; } .atk-choice::before { left: 14px; } }
