@font-face{font-family:"Atkinson Hyperlegible";font-style:italic;font-weight:400;font-display:swap;src:url("/assets/fonts/atkinsonhyperlegible-400-italic.bc8825fd.woff2") format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:400;font-display:swap;src:url("/assets/fonts/atkinsonhyperlegible-400.d64ba838.woff2") format("woff2")}
@font-face{font-family:"Atkinson Hyperlegible";font-style:normal;font-weight:700;font-display:swap;src:url("/assets/fonts/atkinsonhyperlegible-700.140e2bd2.woff2") format("woff2")}
@font-face{font-family:"Manrope";font-style:normal;font-weight:500 800;font-display:swap;src:url("/assets/fonts/manrope-variable.a30ddcd3.woff2") format("woff2")}

/* AA Digital Learning — feuille de style unique.
   Jetons (couleurs, espacements) en variables CSS ; thème sombre automatique ou forcé (data-theme). */

/* ---------- Jetons ---------- */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --line: #E2E8F0;
  --text: #0F172A;
  --muted: #475569;
  --brand: #1A3A8C;
  --brand-strong: #142C6B;
  --brand-soft: #E8EDF7;
  --link: #1A3A8C;
  --action: #EA580C;
  --on-action: #0F172A;
  --chip: #E8EDF7;
  --chip-text: #1A3A8C;
  --ok: #15803D;
  --err: #B91C1C;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px -12px rgba(15, 23, 42, .18);
  --footer-bg: #142C6B;
  --scene-sky: 248, 250, 252;       /* scène : ciel (= fond de page) */
  --scene-rock: 221, 216, 237;      /* scène : roche, versant éclairé en haut */
  --scene-rock-base: 225, 225, 242; /* scène : roche au pied */
  --scene-shade: 26, 58, 140;       /* scène : face ombrée (voile, 4e valeur = force) */
  --scene-snow: 255, 255, 255;      /* scène : neige */
  --scene-forest: 168, 200, 208;    /* scène : forêt (étage bas) */
  --scene-tree: 150, 181, 189;      /* scène : arbres stylisés (forêt un cran plus sombre) */
  --scene-cloud: 241, 237, 247;     /* scène : nuages */
  --scene-line: 137, 154, 196;      /* scène : contours */
  --scene-crest: 137, 154, 196;     /* scène : trait de crête des montagnes */
  --scene-figure: 26, 58, 140;      /* scène : grimpeur (= bleu du titre) */
  --scene-halo: 255, 255, 255;      /* scène : liseré du grimpeur */
  --font-title: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 8px; --radius: 12px; --radius-l: 20px; --pill: 999px;   /* lot 2, D4 : 8 (petits éléments), 12 (commandes, cartes, encadrés), 20 (écran du téléphone), pilule */
  --device: #0F172A;
  --line-strong: #84909F;   /* lot 2, A2 : bord des champs, 3,1:1 sur le fond du champ, 3,3:1 sur la carte */
  --action-press: #E35100;  /* lot 2, D3 : bouton plein appuyé, texte à 4,6:1 */
  --press: #D7DDE8;         /* lot 2, D3 : bouton contour ou icône appuyé, texte à 9,6:1, icône à 13,1:1 */
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F172A; --surface: #1E293B; --line: #334155; --text: #F1F5F9; --muted: #CBD5E1;
    --brand: #F1F5F9; --brand-strong: #93C5FD; --brand-soft: #1E3A8A; --link: #93C5FD;
    --action: #FB923C; --on-action: #0F172A; --chip: #1E3A8A; --chip-text: #DBEAFE;
    --ok: #4ADE80; --err: #F87171;
    --line-strong: #677586; --action-press: #EA8227; --press: #2A499A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
    --footer-bg: #0B1740; --scene-sky: 15, 23, 42; --scene-rock: 49, 43, 68; --scene-rock-base: 39, 38, 61; --scene-shade: 2, 6, 23, 2.6; --scene-snow: 68, 93, 126; --scene-forest: 15, 30, 33; --scene-tree: 11, 26, 29; --scene-cloud: 59, 50, 72; --scene-line: 57, 79, 110; --scene-crest: 97, 121, 154; --scene-figure: 219, 234, 254; --scene-halo: 15, 23, 42;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F172A; --surface: #1E293B; --line: #334155; --text: #F1F5F9; --muted: #CBD5E1;
  --brand: #F1F5F9; --brand-strong: #93C5FD; --brand-soft: #1E3A8A; --link: #93C5FD;
  --action: #FB923C; --on-action: #0F172A; --chip: #1E3A8A; --chip-text: #DBEAFE;
  --ok: #4ADE80; --err: #F87171;
  --line-strong: #677586; --action-press: #EA8227; --press: #2A499A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -12px rgba(0, 0, 0, .6);
  --footer-bg: #0B1740; --scene-sky: 15, 23, 42; --scene-rock: 49, 43, 68; --scene-rock-base: 39, 38, 61; --scene-shade: 2, 6, 23, 2.6; --scene-snow: 68, 93, 126; --scene-forest: 15, 30, 33; --scene-tree: 11, 26, 29; --scene-cloud: 59, 50, 72; --scene-line: 57, 79, 110; --scene-crest: 97, 121, 154; --scene-figure: 219, 234, 254; --scene-halo: 15, 23, 42;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: inherit; }
[hidden] { display: none !important; }
/* Lot 4, étape 2 : hauteur sur html, sans quoi « body { min-height: 100% } » ne s'applique pas et le pied de page des pages
   courtes (Contact, 404) s'arrêtait avant le bas de l'écran (jusqu'à 331 px de bande vide). */
html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  min-height: 100%; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 4px; }
a:hover { color: var(--brand-strong); }
button, input { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-title); color: var(--brand); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--text); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
li { margin: .25em 0; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--action); color: var(--on-action); border-radius: var(--radius-s); font-weight: 700; }
.skip:focus { top: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.section { padding-block: clamp(40px, 7vw, 80px); }
.section + .section { padding-top: 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(20px, 3vw, 32px); }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Boutons et puces ---------- */
.btn, .btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 12px 24px; border-radius: var(--radius); font-weight: 700; font-size: 1.05rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform .12s ease, box-shadow .12s ease;
}
.btn { background: var(--action); color: var(--on-action); }
.btn:hover { color: var(--on-action); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--brand-strong); border-color: currentColor; }
.btn-outline:hover { background: var(--brand-soft); }
/* Lot 2, D3 : état d'appui, sans décalage ni ombre (le survol soulève le bouton plein ; l'appui le remet à plat et fonce le fond) */
.btn:active { transform: none; box-shadow: none; background: var(--action-press); transition: none; }
.chip { display: inline-block; padding: 4px 12px; border-radius: var(--pill); font-size: .9rem; font-weight: 700; background: var(--chip); color: var(--chip-text); white-space: nowrap; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; color: var(--muted); font-size: .98rem; }

/* ---------- En-tête ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 8px; min-height: 76px; }
.site-header .site-nav { margin-left: auto; }
.logo-link { display: inline-flex; align-items: center; padding: 8px 0; }
.logo-link picture, .logo-link img { display: block; }
.logo-link img { height: calc(190px * 149 / 720); width: auto; }   /* logo « AA Digital Learning » : même hauteur que l'ancien logo de 190 px */
/* Lot 2, D1 : le logo blanc était mis en page en thème clair (invisible, blanc sur blanc) : « .logo-link img » l'emportait sur
   « .logo-dark ». Il dépassait de 16 px à 360 px dès que le logo grandissait. Sélecteurs renforcés : un seul logo en place. */
.logo-link .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-link .logo-light { display: none; } :root:not([data-theme="light"]) .logo-link .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-link .logo-light { display: none; }
:root[data-theme="dark"] .logo-link .logo-dark { display: block; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { padding: 10px 12px; color: var(--text); text-decoration: none; font-size: 1.02rem; border-radius: var(--radius-s); white-space: nowrap; }
.site-nav a:hover { background: var(--brand-soft); color: var(--text); }
.site-nav a[aria-current="page"] { font-weight: 700; color: var(--brand-strong); }
.nav-tools { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: none; }
.lang-link { padding: 10px 12px; color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; border-radius: var(--radius-s); }
.lang-link:hover { background: var(--brand-soft); }
.lang-court { display: none; }   /* lot 2, D1 : code court (EN, FR) sur téléphone ; nom accessible complet (aria-label) */
.icon-btn { width: 44px; height: 44px; padding: 0; border-radius: var(--pill); border: 1px solid var(--line); background: transparent; color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--brand-soft); }
.theme-btn .ico-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-btn .ico-moon { display: none; } :root:not([data-theme="light"]) .theme-btn .ico-sun { display: block; } }
:root[data-theme="dark"] .theme-btn .ico-moon { display: none; }
:root[data-theme="dark"] .theme-btn .ico-sun { display: block; }
.menu-btn { display: none; }
.menu-btn .ico-close { display: none; }
@media (max-width: 800px) {
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 16px 8px; font-size: 1.1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-tools { margin-left: auto; gap: 2px; }
  .logo-link img { height: calc(180px * 149 / 720); }   /* lot 2, D1 : 37 px de haut, gardés */
  .lang-long { display: none; }
  .lang-court { display: inline; }
  .site-header.menu-open .menu-btn .ico-burger { display: none; }
  .site-header.menu-open .menu-btn .ico-close { display: block; }
}

/* ---------- Accueil : bandeau avec scène animée (montagnes, nuages, grimpeur) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 120px); isolation: isolate; min-height: 660px; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.hero .lead { margin-bottom: 1.6em; max-width: 52ch; text-wrap: pretty; }   /* 50 à 75 caractères par ligne, pas de mot seul en dernière ligne */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
/* Lot 2, F1 (maquette 3, retenue le 28/09/2026) : sur ordinateur, la rangée de boutons s'arrête 80 px avant la pointe du
   petit sommet (à 66,5 % de la largeur ; 76 px mesurés suffisent pour la garder visible) ; le second bouton ne passe à la ligne
   que s'il la cacherait : de 801 à 935 px en français, de 801 à 817 px en anglais. Pointe visible de 801 à 1 440 px. */
@media (min-width: 801px) { .hero-actions { max-width: calc(66.5vw - 80px - var(--gutter)); } }
@media (max-width: 800px) { .hero { min-height: 0; padding-bottom: 260px; } }
@media (max-width: 383px) { html:lang(fr) .hero h1 { font-size: 1.95rem; } }   /* lot 2, C1 (maquette 2) : titre FR sur 2 lignes au lieu de 3 de 360 à 383 px ; EN inchangé (3 lignes jusqu'à 430 px) */
@media (min-width: 801px) and (max-width: 1199px) { .hero .lead { max-width: 50%; } }   /* tablettes : paragraphe hors des sommets */
/* Lot 2, B1 : bouton pause du décor, hors du bloc .wrap (la réserve du texte ne bouge pas). Fond plein : icône à 17,9:1
   (clair) et 13,4:1 (sombre) ; bord --line-strong à 3,3:1 et 3,1:1 sur ce fond. */
.scene-pause { position: absolute; z-index: 2; background: var(--surface); border-color: var(--line-strong); box-shadow: var(--shadow); }
.scene-pause .ico-play { display: none; }
.scene-pause[aria-pressed="true"] .ico-pause { display: none; }
.scene-pause[aria-pressed="true"] .ico-play { display: block; }
/* Position : maquette 2, retenue par Alban le 28/09/2026 : dans le coin, au-dessus des arbres d'avant-plan (cime la plus
   haute : 207 px sur ordinateur, 126 px sur téléphone). Contrôle de 360 à 1 920 px, parallaxe comprise : ni le grimpeur, ni les
   arbres d'avant-plan, ni le texte ne sont touchés. Même seuil de 800 px que la composition du décor. */
.scene-pause { right: 16px; bottom: 216px; }
@media (max-width: 800px) { .scene-pause { right: 16px; bottom: 136px; } }
/* Lot 3, R1 (maquette 2, retenue par Alban le 28/09/2026) : au focus clavier, pastille de la couleur du bouton, 8 px autour,
   sous l'anneau orange : l'anneau ne touche plus le décor. 3,6:1 en clair (orange sur blanc), 6,5:1 en sombre, quel que soit
   le décor (avant : 1,2:1 et 2,0:1 au pire, là où le trait de crête passe sous l'anneau). Même aspect que les autres anneaux. */
.scene-pause:focus-visible { box-shadow: 0 0 0 8px var(--surface), var(--shadow); }
/* Lot 3, idée 1 : « la cordée », les 5 emblèmes sous les boutons du bandeau, reliés par une corde fine (réglage CORDEE,
   apps.py). Cadre des cartes (lot 2, D2) ramené à 40 px, rayon 8. Corde : couleur du grimpeur (--scene-figure), 1,5 px.
   Sur ordinateur, marge basse du bandeau ramenée à 56 px : la cordée tient dans la hauteur actuelle (660 px). */
.cordee { position: relative; margin-top: 32px; width: min(100%, 400px); }
.cordee ul { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.cordee li { margin: 0; display: flex; justify-content: center; }
.cordee a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); text-decoration: none; border-radius: var(--radius-s); }
.cordee a:hover .cordee-nom { text-decoration: underline; text-underline-offset: 3px; }
.cordee a:focus-visible { background: var(--bg); box-shadow: 0 0 0 8px var(--bg); }   /* comme le bouton pause (R1) : l'anneau ne touche pas le décor */
.cordee .emblem { width: 40px; height: 40px; }
.cordee .emblem--carte { display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-s); background: var(--emb-fond); }
.cordee .emblem--pale { box-shadow: 0 0 0 1px var(--line-strong); }
.cordee .emblem--tuile svg { width: 100%; height: 100%; }
.cordee .emblem--rond svg { width: 31px; height: 31px; }   /* même proportion que sur les cartes (44 / 56) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cordee .emblem--carte { box-shadow: 0 0 0 1px var(--line-strong); } }
:root[data-theme="dark"] .cordee .emblem--carte { box-shadow: 0 0 0 1px var(--line-strong); }
.cordee-nom { font-size: 14px; line-height: 1.25; white-space: nowrap; }
.cordee-corde { position: absolute; z-index: 0; left: 10%; width: 80%; top: 18px; height: 16px; overflow: visible; fill: none; stroke: rgb(var(--scene-figure)); stroke-width: 1.5px; stroke-linecap: round; }
@media (min-width: 801px) { .hero--cordee { padding-bottom: 56px; } }

/* ---------- Grille des applications ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
/* Lot 5 (01/10/2026) : grille en groupes (« Pour apprendre », « Pour s'organiser »…), maquette 1 « deux étages ».
   4 colonnes sur ordinateur, 2 sur tablette, 1 sur téléphone : une rangée de plus à chaque application ajoutée. */
@media (min-width: 1020px) { .apps-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1019px) { .apps-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.groupe + .groupe { margin-top: clamp(32px, 5vw, 48px); }
.groupe-tete { margin-bottom: 16px; }
.groupe-tete .groupe-titre { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0 0 4px; }
.groupe-tete p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.app-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--app-accent, var(--brand)); border-radius: var(--radius); box-shadow: var(--shadow); }
.app-card .emblem { width: 56px; height: 56px; }
/* Lot 2, D2 : même cadre pour les 5 emblèmes des cartes : carré arrondi de 56 px (rayon 12), fond propre à l'app (--emb-fond,
   apps.py), emblèmes ronds à 44 px au centre ; en sombre, liseré clair --line-strong (3,1:1 sur la carte). */
.app-card .emblem--carte { display: grid; place-items: center; overflow: hidden; border-radius: var(--radius); background: var(--emb-fond); }
.app-card .emblem--pale { box-shadow: 0 0 0 1px var(--line-strong); }   /* fond clair (Arpente) : liseré aussi en clair, 3,3:1 */
.app-card .emblem--tuile svg { width: 100%; height: 100%; }
.app-card .emblem--rond svg { width: 44px; height: 44px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .app-card .emblem--carte { box-shadow: 0 0 0 1px var(--line-strong); } }
:root[data-theme="dark"] .app-card .emblem--carte { box-shadow: 0 0 0 1px var(--line-strong); }
.app-card .carte-titre { font-size: 1.35rem; font-weight: 700; color: var(--text); margin: 0; }   /* lot 5 : h3 (catalogue) ou h4 (accueil) */
.app-card .carte-titre a { color: var(--text); text-decoration: none; }
.app-card .carte-titre a::after { content: ""; position: absolute; inset: 0; }
.app-card .carte-titre a:hover { color: var(--brand-strong); }
.app-card p { margin: 0; color: var(--muted); }
.app-card .meta { margin-top: auto; padding-top: 6px; font-size: .92rem; }
/* Lot 2, D3 : anneau de focus sur toute la carte quand son lien (qui couvre la carte) a le focus clavier ; les badges gardent le leur */
@supports selector(:has(a)) {
  .app-card:has(.carte-titre a:focus-visible) { outline: 3px solid var(--action); outline-offset: 3px; }
  .app-card .carte-titre a:focus-visible { outline: none; }
}
/* Carte « à la une » (apps.py : A_LA_UNE) — lot 1, action 5, maquette 2 validée le 27/09/2026 : deux colonnes de
   la grille dès 1 020 px, pleine largeur de 640 à 1 019 px ; première capture dans un téléphone rogné par le bas. */
@media (min-width: 1020px) { .apps-grid .app-card--une { grid-column: span 2; } }
@media (min-width: 640px) and (max-width: 1019px) { .apps-grid .app-card--une { grid-column: 1 / -1; } }
.app-card--une { overflow: hidden; }
.une-texte { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.une-texte .meta { margin-top: 0; }
.une-capture { margin: 0; }
/* Lot 2, F2 : carte à la une sans capture, sans vide à droite (A_LA_UNE_SANS_CAPTURE dans apps.py) */
@media (min-width: 640px) {
  .app-card--une.une--atouts, .app-card--une.une--embleme { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: center; }
  .apps-grid .app-card--une.une--simple { grid-column: auto; }
  .une--embleme .une-texte .emblem { display: none; }          /* le grand emblème le remplace */
}
.une-atouts { list-style: none; margin: 0; padding: 20px 24px; display: grid; gap: 12px; border-radius: var(--radius); background: var(--vit-bg); color: var(--vit-text); }
.une-atouts li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.une-atouts svg { width: 24px; height: 24px; fill: none; stroke: var(--app-accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.une-embleme { display: grid; place-items: center; min-height: 200px; border-radius: var(--radius); background: var(--vit-bg); }
.une-embleme .emblem { width: 128px; height: 128px; }
@media (max-width: 639px) { .une-atouts, .une-embleme { display: none; } }   /* téléphone : une seule colonne, aucun vide ; carte inchangée */
@media (min-width: 640px) {
  .app-card--une.avec-capture { display: grid; grid-template-columns: minmax(0, 1fr) 220px; column-gap: 32px; }
  .avec-capture .une-visuel { position: relative; min-height: 270px; margin-bottom: -24px; }
  .avec-capture .une-capture { position: absolute; top: 2px; left: 0; width: 220px; }
}
@media (max-width: 639px) {
  .avec-capture .une-visuel { position: relative; height: 250px; margin: 6px -24px -24px; overflow: hidden; }
  .avec-capture .une-capture { position: absolute; top: 10px; left: 50%; width: 210px; margin-left: -105px; }
}
/* Téléphone neutre dessiné en CSS (aucun modèle de marque) : cadre à l'encre du site (17,9:1 sur carte claire) ;
   en thème sombre, liseré --muted (9,9:1 sur la carte sombre). */
.telephone { position: relative; width: 100%; aspect-ratio: 9 / 19.5; border: 8px solid var(--device); border-radius: calc(var(--radius-l) + 8px); background: var(--device); overflow: hidden; box-shadow: 0 18px 36px -18px rgba(15, 23, 42, .45); }
.telephone::before { content: ""; position: absolute; top: 6px; left: 50%; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--device); z-index: 1; }
.telephone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: var(--radius-l); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .telephone { box-shadow: 0 0 0 1px var(--muted), 0 18px 36px -18px rgba(0, 0, 0, .6); } }
:root[data-theme="dark"] .telephone { box-shadow: 0 0 0 1px var(--muted), 0 18px 36px -18px rgba(0, 0, 0, .6); }
/* Badges officiels des boutiques (action 2) : 40 px de haut ; marge libre d'un quart de la hauteur (10 px) au moins.
   Sur les cartes en thème sombre, badge officiel clair quand le sombre se confond avec le fond (Microsoft : 1,1:1). */
.badges { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 4px 0 0; padding: 0; }
.badges a { display: block; border-radius: var(--radius-s); }
.badges img { display: block; height: 40px; width: auto; }
.badges .badge-nuit { display: none; }
.badges .badge-texte { display: inline-block; padding: 8px 0; font-weight: 700; }
/* Lot 2 (recette) : même bascule dans le bandeau des vitrines, sombres en thème sombre depuis A1 (Microsoft y était à 1,0:1),
   et toujours dans les vitrines sombres dans les deux thèmes (Zijin, Globille : classe fond-sombre). */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.app-card, .vitrine-hero) .badges .badge-jour { display: none; } :root:not([data-theme="light"]) :is(.app-card, .vitrine-hero) .badges .badge-nuit { display: block; } }
:root[data-theme="dark"] :is(.app-card, .vitrine-hero) .badges .badge-jour { display: none; } :root[data-theme="dark"] :is(.app-card, .vitrine-hero) .badges .badge-nuit { display: block; }
.vitrine-hero.fond-sombre .badges .badge-jour { display: none; } .vitrine-hero.fond-sombre .badges .badge-nuit { display: block; }
.emblem { display: block; border-radius: var(--radius); }
.emblem svg { display: block; width: 100%; height: 100%; }

/* ---------- Vitrine d'application ---------- */
.vitrine-hero { background: var(--vit-bg); color: var(--vit-text); padding-block: clamp(40px, 7vw, 88px); }
.vitrine-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }
@media (min-width: 900px) { .vitrine-hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.vitrine-hero h1 { color: var(--vit-title); }
.vitrine-hero .lead { color: var(--vit-muted); }
.vitrine-hero .chip { background: var(--vit-chip); color: var(--vit-chip-text); }
.vitrine-hero .meta { color: var(--vit-muted); }
.vitrine-hero .emblem { width: 96px; height: 96px; margin-bottom: 16px; }
/* Lot 2, D2 : tuile pâle (Arpente) sur un bandeau clair : même liseré que sur les cartes, coins à la proportion des cartes (12/56) */
.vitrine-hero .emblem--pale { overflow: hidden; border-radius: 21.4%; background: var(--emb-fond); box-shadow: 0 0 0 1px var(--line-strong); }
.vitrine-art { display: flex; justify-content: center; }
.vitrine-art svg { width: min(100%, 460px); height: auto; }
.availability { margin-top: 20px; padding: 16px 20px; border-radius: var(--radius); background: var(--vit-surface); color: var(--vit-text); border: 1px solid var(--vit-line); }
.availability p { margin: 0; }
.availability ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.availability li { margin: 0; font-weight: 700; }
.availability a { color: inherit; }
.availability .notes { color: var(--vit-muted); margin-top: 8px; }
.availability .badges { margin-top: 12px; gap: 12px; }
/* Lot 3, idée 3 : code QR vers la vitrine (réglage QR_VITRINE, apps.py). Modules #0F172A sur fond blanc dans les deux thèmes
   (17,9:1), marge blanche de 4 modules comprise dans l'image ; 123 px (3 px par module). Ordinateur seulement : écran de
   801 px au moins, avec souris ou pavé tactile (téléphones et tablettes exclus, quelle que soit leur largeur). */
.qr { display: none; margin: 0; }
.qr img { display: block; width: 123px; height: 123px; border-radius: var(--radius-s); }
.qr figcaption { width: 123px; margin-top: 8px; font-size: 14px; line-height: 1.35; color: var(--vit-muted); }
@media (min-width: 801px) and (hover: hover) and (pointer: fine) {
  .qr { display: block; }
  .availability--qr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 24px; align-items: start; }
  .obtenir { display: flex; gap: 16px; align-items: stretch; margin-top: 20px; }
  .obtenir .availability { flex: 1 1 auto; margin-top: 0; }
  .qr--carte { flex: none; padding: 16px; border-radius: var(--radius); background: var(--vit-surface); border: 1px solid var(--vit-line); }
}
.app-section h2 { position: relative; padding-bottom: 12px; }
.app-section h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 4px; border-radius: 2px; background: var(--app-accent, var(--brand)); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 28px; margin: 0; padding: 0; list-style: none; }
.feature-grid li { margin: 0; }
.feature-grid h3 { margin-bottom: .3em; }
.feature-grid p { margin: 0; color: var(--muted); }
.feature-grid .ico { display: block; width: 32px; height: 32px; margin-bottom: 10px; color: var(--app-accent, var(--brand)); }
.feature-grid .ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.steps { counter-reset: etape; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 28px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: etape; margin: 0; padding-top: 16px; border-top: 3px solid var(--app-accent, var(--brand)); }
.steps li::before { content: counter(etape); display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--pill); margin-bottom: 10px; background: var(--chip); color: var(--chip-text); font-family: var(--font-title); font-weight: 800; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { margin: 0; }
.quote { margin: 0; padding: 24px 28px; border-left: 4px solid var(--app-accent, var(--brand)); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; }
.quote footer { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.notes { font-size: .95rem; color: var(--muted); }
.notes p { margin: .4em 0; }
.links-list { padding: 0; margin: 0; list-style: none; }
.links-list li { margin: 0; }
.links-list a { display: inline-block; padding: 8px 0; font-size: 1.05rem; }
.screenshots { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 240px)); gap: 28px; padding: 0; margin: 0; list-style: none; }
.screenshots figure { margin: 0; }
.screenshots figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: .95rem; }

/* ---------- Démo Hopado ---------- */
.demo-box { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; max-width: 460px; }
.demo-box h3 { margin: 0 0 4px; }
.demo-box .hint { margin: 0 0 12px; color: var(--muted); font-size: .95rem; }
.demo-form { display: flex; gap: 8px; }
/* Lot 4, étape 2 : largeur de départ nulle pour le champ (il s'étire ensuite comme avant) ; il gardait sa largeur naturelle
   et poussait la démo hors de l'écran de 320 à 375 px et hors des marges jusqu'à 409 px. */
.demo-form input { flex: 1 1 auto; width: 0; min-width: 0; min-height: 46px; padding: 8px 12px; border-radius: var(--radius); border: 2px solid var(--line-strong); background: var(--bg); color: var(--text); }
.demo-form input::placeholder { color: var(--muted); opacity: 1; }
.demo-form button { min-height: 46px; padding: 8px 16px; border-radius: var(--radius); border: 2px solid var(--brand-strong); background: transparent; color: var(--brand-strong); font-weight: 700; cursor: pointer; }
.demo-msg { min-height: 1.4em; margin: 8px 0 4px; font-size: .95rem; font-weight: 700; color: var(--err); }
/* Lot 7 (prompt 3) : messages d'information (« Ajouté », doublon) en style discret ; l'erreur (champ vide) garde le rouge. */
.demo-msg.info { color: var(--muted); font-weight: 400; }
.demo-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.demo-list li { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 4px 4px 12px; border-radius: var(--radius-s); background: var(--bg); }
/* Lot 8 (prompt 4, demande d'Alban du 02/10/2026) : case à cocher restaurée, comme dans l'application. Case native dans
   une étiquette (.item) : toute la ligne, case et nom, se touche (44 px de haut au moins). Bord --line-strong : 3,1:1 sur
   la ligne en clair, 3,8:1 en sombre ; case cochée --brand-strong et coche --bg : 12,5:1 et 9,9:1. Article coché : barré,
   en --muted (7,2:1 en clair, 12,0:1 en sombre), comme l'application (texte barré et grisé). */
.demo-list .item { flex: 1 1 auto; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.demo-list .check { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--bg); display: inline-grid; place-content: center; cursor: pointer; }
.demo-list .check::before { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--bg); border-bottom: 2.5px solid var(--bg); transform: translateY(-1px) rotate(-45deg); opacity: 0; }
.demo-list .check:checked { background: var(--brand-strong); border-color: var(--brand-strong); }
.demo-list .check:checked::before { opacity: 1; }
.demo-list .label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.demo-list li.done .label { text-decoration: line-through; color: var(--muted); }
/* Lot 7 (prompt 3), maquette 2 retenue par Alban le 01/10/2026 : article déjà présent repéré par une barre de 4 px
   (--brand-strong : 12,5:1 sur la ligne en clair, 9,9:1 en sombre), jusqu'à la saisie suivante. */
.demo-list li.repere { box-shadow: inset 4px 0 0 var(--brand-strong); }
.demo-list .remove { flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-s); background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.demo-list .remove svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo-list .remove:hover { color: var(--err); }
.demo-count { margin: 12px 0 0; color: var(--muted); font-size: .95rem; }

/* Lot 2, D3 : appui des boutons contour et icône (placé après tous les survols pour l'emporter sur eux) */
.btn-outline:active, .icon-btn:active, .demo-form button:active, .demo-list .remove:active { background: var(--press); }

/* ---------- Pages simples ---------- */
.prose { max-width: 72ch; }
.prose h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.2em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--muted); font-weight: 700; }
.encadre { margin: 1.2em 0; padding: 20px 24px; border: 1px solid var(--line); border-left: 4px solid var(--brand-strong); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.encadre p { margin: 0 0 .8em; }
.encadre p:last-child { margin-bottom: 0; }
.doc-meta { color: var(--muted); font-size: .95rem; margin-bottom: 1.8em; }
.contact-list { list-style: none; padding: 0; margin: 0; font-size: 1.15rem; }
.contact-list li { margin: 0 0 10px; }
.contact-list a { font-weight: 700; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 48px; align-items: start; }
/* Lot 2, E1 : portrait de la page À propos (4:5, 320 × 400 à l'écran) */
/* Lot 6, objectif 5 (demande d'Alban, 30/09/2026) : portrait réduit de 37 % et centré dans sa colonne.
   63 % de la colonne, plafonné à 202 px (320 × 0,63) : la réduction vaut aussi sur les écrans les plus étroits. */
.about-photo { display: block; width: 63%; max-width: 202px; height: auto; margin: 0 auto 24px; border-radius: var(--radius); }
.identity { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.identity dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; }
.identity dt { color: var(--muted); }
.identity dd { margin: 0; }
/* Lot 4, étape 2 (maquette 1, retenue par Alban le 29/09/2026) : deux colonnes si l'encadré a 360 px de contenu (libellé
   le plus long + adresse e-mail), sinon libellé au-dessus de la valeur ; l'adresse n'est jamais coupée. Filet de sécurité
   pour les navigateurs sans requêtes de conteneur : coupure des mots trop longs plutôt qu'un débordement. */
.identity { container-type: inline-size; }
.identity dd { overflow-wrap: anywhere; }
@container (max-width: 359.98px) { .identity dl { grid-template-columns: minmax(0, 1fr); gap: 0; } .identity dd { margin-bottom: 10px; } .identity dd:last-of-type { margin-bottom: 0; } }
.mini-hero { padding-block: clamp(36px, 6vw, 64px) 0; }
.mini-hero h1 { max-width: 20ch; }

/* ---------- Pied de page ---------- */
.site-footer { margin-top: clamp(48px, 8vw, 96px); background: var(--footer-bg); color: #FFFFFF; padding-block: 44px 36px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 24px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-top img { display: block; height: calc(170px * 149 / 720); width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.footer-nav a { padding: 10px 12px; color: #FFFFFF; font-size: .98rem; }
.footer-nav a:hover { color: #DBE4F5; }
.site-footer p { margin: 0; color: #DBE4F5; font-size: .95rem; line-height: 1.6; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(60px, 12vw, 140px); }
.notfound h1 { font-size: clamp(2rem, 6vw, 4rem); }
.notfound .hero-actions { justify-content: center; margin-top: 24px; }

/* ---------- Mouvement réduit, impression ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .hero canvas, .scene-pause, .skip, .nav-tools { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* ---------- Palettes des vitrines (générées depuis src/content/apps.py) ---------- */
.vitrine--globille{--app-accent:#39C6E8;--vit-bg:#121118;--vit-text:#EAFDFF;--vit-title:#7FE6FF;--vit-muted:#B7D8DF;--vit-chip:#7FE6FF;--vit-chip-text:#121118;--vit-surface:#1B1A22;--vit-line:#2E2C38;--emb-fond:#121118}
.vitrine--permilia{--app-accent:#1D5638;--vit-bg:#FAF6EC;--vit-text:#212429;--vit-title:#1D5638;--vit-muted:#6F6B61;--vit-chip:#F5C633;--vit-chip-text:#1D5638;--vit-surface:#FFFFFF;--vit-line:#E7DFCB;--emb-fond:#1D5638}
.vitrine--arpente{--app-accent:#3E7C59;--vit-bg:#FBFAF6;--vit-text:#193440;--vit-title:#193440;--vit-muted:#4A6570;--vit-chip:#E0972B;--vit-chip-text:#193440;--vit-surface:#FFFFFF;--vit-line:#E7E2D6;--emb-fond:#BC7121}
.vitrine--zijin{--app-accent:#B8860B;--vit-bg:#0B1626;--vit-text:#CFDCEA;--vit-title:#F5C04E;--vit-muted:#9DB0C6;--vit-chip:#F5C04E;--vit-chip-text:#0B1626;--vit-surface:#16324F;--vit-line:#2B4A6E;--emb-fond:#0B1626}
.vitrine--hopado{--app-accent:#0077BE;--vit-bg:#F4FBFF;--vit-text:#05314F;--vit-title:#003A63;--vit-muted:#27506E;--vit-chip:#FFD23F;--vit-chip-text:#05314F;--vit-surface:#FFFFFF;--vit-line:#BFE3F5;--emb-fond:transparent}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .vitrine--permilia{--app-accent:#9AD4B0;--vit-bg:#08180F;--vit-text:#D3DCD6;--vit-title:#7FB895;--vit-muted:#8BA393;--vit-chip:#F5C633;--vit-chip-text:#061E11;--vit-surface:#14231A;--vit-line:#33533F}
:root:not([data-theme="light"]) .vitrine--arpente{--app-accent:#65A47F;--vit-bg:#0D1519;--vit-text:#D1DADF;--vit-title:#91B0BE;--vit-muted:#919FA5;--vit-chip:#E0972B;--vit-chip-text:#0F1A20;--vit-surface:#182125;--vit-line:#3C4F57}
:root:not([data-theme="light"]) .vitrine--hopado{--app-accent:#459ADD;--vit-bg:#071521;--vit-text:#D3DAE0;--vit-title:#7BB0E0;--vit-muted:#8AA0B5;--vit-chip:#FFD23F;--vit-chip-text:#051A2C;--vit-surface:#12212E;--vit-line:#354F66}
}
:root[data-theme="dark"] .vitrine--permilia{--app-accent:#9AD4B0;--vit-bg:#08180F;--vit-text:#D3DCD6;--vit-title:#7FB895;--vit-muted:#8BA393;--vit-chip:#F5C633;--vit-chip-text:#061E11;--vit-surface:#14231A;--vit-line:#33533F}
:root[data-theme="dark"] .vitrine--arpente{--app-accent:#65A47F;--vit-bg:#0D1519;--vit-text:#D1DADF;--vit-title:#91B0BE;--vit-muted:#919FA5;--vit-chip:#E0972B;--vit-chip-text:#0F1A20;--vit-surface:#182125;--vit-line:#3C4F57}
:root[data-theme="dark"] .vitrine--hopado{--app-accent:#459ADD;--vit-bg:#071521;--vit-text:#D3DAE0;--vit-title:#7BB0E0;--vit-muted:#8AA0B5;--vit-chip:#FFD23F;--vit-chip-text:#051A2C;--vit-surface:#12212E;--vit-line:#354F66}
