/* ═══ /application — la page de l'appli, piste A « Le défi » (17/11/2026, 2e passe : plus proche de la maquette) ═══
   Chargée par public/application.php seulement (via $pageHeadExtra), SERVIE TELLE QUELLE : pas de minification.
   Tout est préfixé `al-`. Les couleurs de lecture sont des jetons du thème (--paper, --ink, --ink-soft, --line, --wash,
   --accent, --accent-ink, --card), avec un repli : lisible sous tous les thèmes, belle sous Élan et Élan nuit.
   Les touches de couleur (corail, jaune, vert des pictogrammes) sont des décors, jamais du texte, SAUF le bouton de la
   lettre : blanc sur corail foncé #C23A1E = 5,4:1 (AA), dans les deux thèmes. Les badges de boutique sont noirs, texte blanc.
   Aucune image sous du texte : le bus (WebP détouré, transparent) est à côté ou au-dessus du titre, jamais derrière. */

.al { position: relative; max-width: 72rem; margin: 0 auto; overflow-x: clip;
  --al-gap: 1.25rem; --al-fond: var(--wash, #eef3f1); --al-carte: var(--elan-surface, var(--card, var(--paper, #fff)));
  --al-corail: #E8583A; --al-corail-bouton: #C23A1E; --al-jaune: #F9B72B; }
.al-page.page-wide { padding-bottom: 2rem; }
.al > section { margin: 0 0 2.6rem; }
.al-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── 1. Le héros : titre, visuel, actions. Téléphone : titre, bus, boutons (centrés) ; ordinateur : deux colonnes. ── */
.al-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "titre" "visuel" "actions";
  gap: .4rem; align-items: center; margin-top: .4rem; text-align: center; }
/* De grandes formes douces vert d'eau derrière le héros (CSS, aucune image). */
.al-hero::before { content: ""; position: absolute; z-index: -1; right: -22%; top: 24%; width: 95%; height: 48%; border-radius: 52% 48% 55% 45% / 55% 50% 50% 45%; background: var(--al-fond); opacity: .75; }
.al-hero::after { content: ""; position: absolute; z-index: -1; left: -30%; bottom: -6%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--al-fond); opacity: .55; }
.al-titre { grid-area: titre; }
.al-visuel { grid-area: visuel; }
.al-actions { grid-area: actions; }
.al-titre h1 { margin: 0 0 .5rem; font-size: clamp(1.9rem, 5.6vw, 2.2rem); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; color: var(--ink); text-wrap: balance; }
.al-l { display: inline; }
.al-sub { margin: 0; font-size: 1.1rem; line-height: 1.4; color: var(--ink); }
.al-visuel img { display: block; width: 100%; max-width: 30rem; height: auto; margin: 0 auto; }
.al-bqs { display: flex; flex-direction: column; gap: .6rem; margin: .3rem 0 .8rem; }
.al-bq { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; box-sizing: border-box; min-height: 56px; padding: .45rem 1.2rem .45rem 1rem; border: 1px solid rgba(255,255,255,.35); border-radius: 14px;
  background: #111; color: #fff; line-height: 1.1; text-decoration: none; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.25); transition: transform .12s, filter .15s; }
a.al-bq:hover { background: #111; color: #fff; filter: brightness(1.25); transform: translateY(-1px); text-decoration: none; }
a.al-bq:focus-visible { outline: 3px solid var(--focus, #0B7A55); outline-offset: 3px; }
.al-bq-ico { flex: 0 0 auto; display: block; width: 28px; height: 28px; }
.al-bq-txt { display: flex; flex-direction: column; align-items: flex-start; }
.al-bq-txt small { font-size: .72rem; font-weight: 500; opacity: .88; }
.al-bq-txt b { font-size: 1.2rem; font-weight: 700; }
.al-bq-off { cursor: default; opacity: .78; box-shadow: none; }   /* « Bientôt sur » : pas un lien, pas un bouton */
.al-ios-note { margin: 0 0 .7rem; padding: .6rem .8rem; border-radius: 14px; background: var(--al-fond); color: var(--ink); font-size: .95rem; text-align: left; }
.al-ios-note[hidden] { display: none; }
.al-insigne { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: .5rem; margin: 0 auto; padding: .5rem .95rem .5rem .65rem; border-radius: 18px; background: var(--al-fond); color: var(--ink); font-weight: 700; font-size: .95rem; text-align: left; }
.al-insigne svg { flex: none; color: var(--accent, #0B7A55); }
.al-qr { display: none; }

@media (min-width: 900px) {
  .al-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "titre visuel" "actions visuel"; column-gap: 1.5rem; row-gap: 1.2rem; align-items: start; text-align: left; padding: 1.2rem 0 .4rem; }
  .al-hero::before { right: 0; top: -4%; width: 58%; height: 110%; opacity: .6; }
  .al-hero::after { left: -12%; bottom: -14%; width: 30%; }
  .al-titre { align-self: end; }
  .al-titre h1 { font-size: 3.9rem; line-height: 1.04; }
  .al-l { display: block; white-space: nowrap; }
  .al-sub { font-size: 1.4rem; }
  .al-actions { align-self: start; }
  .al-visuel { align-self: center; }
  .al-visuel img { max-width: none; width: 100%; margin: 0; }
  .al-bqs { flex-direction: row; flex-wrap: wrap; }
  .al-bq { min-height: 60px; }
  .al-bq-txt b { font-size: 1.3rem; }
  .al-insigne { margin: 0; }
  .al-qr { display: flex; align-items: center; gap: .9rem; margin-top: 1.1rem; }
  .al-qr img { flex: none; width: 112px; height: 112px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
  .al-qr p { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.4; }
  .al-qr a { color: var(--accent-texte, var(--accent, #0B7A55)); }
}
/* Entre les deux : le bus et le texte se partagent la largeur, sans débordement. */
@media (min-width: 900px) and (max-width: 1099px) { .al-titre h1 { font-size: 3rem; } }

/* ── 2. Les trois cartes ── */
.al-cartes { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; }
.al-carte { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; border-radius: 26px; background: var(--al-fond); border: 1px solid var(--line); color: var(--ink); }
.al-carte h3 { margin: 0 0 .25rem; font-size: 1.3rem; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.al-carte p { margin: 0; font-size: .97rem; line-height: 1.4; color: var(--ink-soft); }
.al-pict { flex: none; width: 64px; height: 64px; }
@media (min-width: 760px) { .al-cartes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; } .al-carte { align-items: flex-start; padding: 1.4rem; } }

/* ── 3. Les captures : trois cadres de MÊME hauteur, alignés sur la même ligne de base. Téléphone : rangée défilante. ── */
.al-sec h2 { margin-top: .2rem; }
.al-tels { display: flex; gap: 1rem; margin: 1rem -1rem 0; padding: .3rem 1rem 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 1rem; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.al-tel { margin: 0; flex: 0 0 min(62%, 13rem); scroll-snap-align: center; text-align: center; }
.al-cadre { padding: 7px; border-radius: 28px; background: #15171c; box-shadow: 0 8px 22px rgba(15,47,37,.22), inset 0 0 0 1.5px #3a3f4a; }
.al-cadre img { display: block; width: 100%; height: auto; aspect-ratio: 480 / 864; object-fit: cover; border-radius: 21px; background: #000; }
.al-tel figcaption { margin-top: .6rem; font-size: .95rem; font-weight: 700; color: var(--ink); }
/*  Visuels de boutique de la nouvelle appli (17/11/2026) : six, chacun avec son téléphone et son titre ; pas de cadre.
    La rangée défile à toute largeur si les six ne tiennent pas ; « safe center » ne coupe jamais le premier. */
.al-affichette { display: block; width: 100%; height: auto; aspect-ratio: 480 / 1040; border-radius: 18px; box-shadow: 0 8px 22px rgba(15,47,37,.22); }
@media (min-width: 640px) { .al-tels { justify-content: safe center; margin: 1rem 0 0; padding: .3rem 0 1rem; gap: 1rem; } .al-tel { flex: 0 0 11.6rem; } }
.al-bqs-centre { align-items: stretch; margin-top: 1.3rem; }
@media (min-width: 640px) { .al-bqs-centre { flex-direction: row; justify-content: center; } }

/* ── 4. Le comparatif : l'en-tête « Ludicademy English » en émeraude plein, coins ronds ; une icône par ligne ── */
.al-compar { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1rem; color: var(--ink); }
.al-compar th, .al-compar td { padding: 1.05rem 1.1rem; text-align: left; vertical-align: middle; font-size: 1.02rem; line-height: 1.35; }
.al-compar tbody th, .al-compar tbody td { border-top: 1px solid var(--line); }
.al-compar thead th { padding-top: .9rem; padding-bottom: .9rem; font-weight: 800; background: var(--al-fond); }
.al-compar thead th:last-child { border-radius: 0 18px 0 0; }
.al-compar thead th.al-c-nous { background: var(--accent, #0B7A55); color: var(--accent-ink, #fff); border-radius: 18px 18px 0 0; font-size: 1.1rem; }
.al-compar tbody th { font-weight: 700; width: 27%; background: var(--al-fond); }
.al-compar tbody tr:last-child th { border-radius: 0 0 0 18px; }
.al-compar tbody tr:last-child td:last-child { border-radius: 0 0 18px 0; }
.al-compar tbody td { background: var(--al-fond); }
.al-compar td.al-c-nous { background: var(--al-carte); font-weight: 600; border-left: 3px solid var(--accent, #0B7A55); border-right: 3px solid var(--accent, #0B7A55); }
.al-compar tbody tr:last-child td.al-c-nous { border-bottom: 3px solid var(--accent, #0B7A55); border-radius: 0 0 18px 18px; }
.al-compar td:not(.al-c-nous) { color: var(--ink-soft); }
.al-compar th .al-ico { display: inline-block; vertical-align: middle; margin-right: .7rem; color: var(--accent, #0B7A55); }
.al-compar th > span { vertical-align: middle; }
.al-coche { display: inline-block; vertical-align: -5px; margin-right: .55rem; color: var(--accent, #0B7A55); width: 24px; height: 24px; }
.al-tiret { display: inline-block; width: 24px; margin-right: .55rem; text-align: center; font-weight: 700; color: var(--ink-soft); }
@media (max-width: 679px) {
  .al-compar, .al-compar tbody, .al-compar tr, .al-compar th, .al-compar td { display: block; }
  .al-compar thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* les libellés passent dans les cellules */
  .al-compar tbody tr { margin: 0 0 .9rem; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--al-carte); }
  .al-compar tbody th, .al-compar tbody tr:last-child th { width: auto; padding: .75rem 1rem; border: 0; border-radius: 0; background: var(--al-fond); font-size: 1rem; }
  .al-compar tbody td, .al-compar tbody tr:last-child td:last-child { padding: .75rem 1rem; border-top: 1px solid var(--line); border-radius: 0; background: var(--al-carte); }
  .al-compar td.al-c-nous, .al-compar tbody tr:last-child td.al-c-nous { border-left: 0; border-right: 0; border-bottom: 0; border-radius: 0; background: var(--al-carte); box-shadow: inset 4px 0 0 var(--accent, #0B7A55); }
  .al-compar td::before { content: attr(data-col); display: block; margin-bottom: .2rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
}

/* ── 5. La lettre : le bloc du site (style .lettre-* de site.css), présenté ICI en bande arrondie vert d'eau,
      enveloppe jaune, bouton corail. Tout est sous `.al-lettre` : l'apparence du bloc ailleurs ne bouge pas. ── */
.al-lettre .lettre-bloc { margin: 0; max-width: none; animation: none; background: var(--al-fond); border: 1px solid var(--line); border-radius: 30px; padding: 1.4rem 1.2rem; box-shadow: none; }
.al-lettre .lettre-corps { position: relative; padding-top: 4.4rem; }
.al-lettre .lettre-corps::before { content: ""; position: absolute; left: 0; top: 0; width: 3.6rem; height: 3.6rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect x='3' y='11' width='58' height='42' rx='9' fill='%23F9B72B'/%3E%3Cpath d='m8 20 24 19 24-19' fill='none' stroke='%23fff' stroke-width='4.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.al-lettre .lettre-titre { font-size: 1.6rem; font-weight: 800; }
.al-lettre .lettre-ligne input[type=email] { border-radius: 999px; padding: .8rem 1.1rem; background: var(--al-carte); border: 1.5px solid var(--bord-ctl, var(--line)); color: var(--ink); }
.al-lettre .lettre-ligne button.btn { background: var(--al-corail-bouton); color: #fff; border: 0; border-radius: 999px; padding: .8rem 1.6rem; font-weight: 800; min-height: 46px; box-shadow: none; }
.al-lettre .lettre-ligne button.btn:hover { background: #A53015; color: #fff; filter: none; transform: none; }
.al-lettre .lettre-ligne button.btn:disabled { background: #7C5A52; color: #fff; }
@media (min-width: 760px) {
  .al-lettre .lettre-bloc { padding: 1.6rem 2rem; }
  .al-lettre .lettre-corps { padding-top: 0; padding-left: 5.6rem; }
  .al-lettre .lettre-corps::before { width: 4.4rem; height: 4.4rem; top: .2rem; }
}

/* ── 6. Les détails ── */
.al-etapes { margin: 1rem 0; padding-left: 1.3rem; }
.al-etapes li { margin: 0 0 .7rem; line-height: 1.5; }
.al-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; margin-top: .8rem; }
.al-bloc { padding: 1.1rem 1.2rem; border-radius: 20px; border: 1px solid var(--line); background: var(--al-carte); color: var(--ink); }
.al-bloc h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.al-bloc p { margin: 0; line-height: 1.5; color: var(--ink-soft); }
@media (min-width: 760px) { .al-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.al-sec p { line-height: 1.55; }
.al-sec details { margin: 0 0 .5rem; padding: .2rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--al-carte); }
.al-sec details summary { min-height: 44px; padding: .6rem 0; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--ink); }
.al-presse { padding: 1.1rem 1.2rem; border-radius: 22px; background: var(--al-fond); color: var(--ink); }
.al-presse h2 { margin-top: 0; }
.al-lignebtn { display: flex; flex-wrap: wrap; gap: .6rem; margin: .4rem 0 0; }
/* Le bas de page : le rappel des boutiques, avec la touche de jaune et de corail de la maquette (décor CSS). */
.al-bas { position: relative; overflow: hidden; text-align: center; padding: 1.8rem 1rem 2.2rem; border-radius: 28px; background: var(--al-fond); color: var(--ink); isolation: isolate; }
.al-bas::before { content: ""; position: absolute; z-index: -1; right: -3.2rem; bottom: -4rem; width: 9rem; height: 9rem; border-radius: 50%; background: var(--al-jaune); }
.al-bas::after { content: ""; position: absolute; z-index: -1; left: -2rem; bottom: -3rem; width: 6rem; height: 6rem; border-radius: 50%; background: var(--al-corail); opacity: .9; }
.al-bas h2 { margin: 0 0 .8rem; }
.al-bas .al-bqs { align-items: stretch; margin-bottom: .3rem; }
@media (min-width: 640px) { .al-bas .al-bqs { flex-direction: row; justify-content: center; } }
.al-version { margin: .4rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.al-version a { color: var(--accent-texte, var(--accent, #0B7A55)); }

/* ── La barre fixe du bas : TÉLÉPHONE seulement. Posée cachée (attribut hidden), montrée par le script de la page une fois
      le héros dépassé, retirée devant la lettre et le rappel du bas. Le corps prend une marge égale à sa hauteur : le pied
      de page reste atteignable. ── */
.al-barre { display: none; }
@media (max-width: 759px) {
  .al-barre { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; box-sizing: border-box; padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--paper, #fff); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(0,0,0,.12); }
  .al-barre[hidden] { display: none; }
  .al-barre .al-bq { display: flex; width: 100%; }
  body.al-avec-barre { padding-bottom: calc(4.8rem + env(safe-area-inset-bottom, 0px)); }
}

@media (prefers-reduced-motion: reduce) { a.al-bq { transition: none; } a.al-bq:hover { transform: none; } .al-tels { scroll-behavior: auto; } }

/*  iPhone (17/11/2026) : la ligne « prévenez-moi » au-dessus de la lettre ; n'apparaît que sur iPhone (script de la page). */
.al-ios-lettre { margin: 0 0 .8rem; padding: .7rem 1rem; border-radius: 14px; background: #FFF4D6; color: #3A2A00; font-size: 1rem; line-height: 1.4; }

/* « Pour aller plus loin » : les cinq pages éditoriales (17/11/2026). */
.al-loin { margin: .6rem 0 0; padding-left: 1.2rem; max-width: 46rem; }
.al-loin li { margin: 0 0 .5rem; line-height: 1.5; }
.al-loin a { color: var(--accent-texte, var(--accent, #0B7A55)); }

/*  L'insigne sous chaque paire de badges (17/11/2026). */
.al-bqs + .al-insigne { margin-top: .7rem; }
.al-insigne.al-insigne-centre { margin-left: auto; margin-right: auto; }
.al-voir { margin: 1rem 0 0; text-align: center; font-weight: 700; }
.al-voir a, .al-loin-bas a { color: var(--accent-texte, var(--accent, #0B7A55)); }
.al-loin-bas { margin: 1rem 0 0; font-size: .95rem; line-height: 1.7; }
/*  Les cinq pages en cartes, sous le comparatif. */
.al-guides { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: 1fr; }
.al-guides > li { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
a.al-guide { display: flex; flex-direction: column; gap: .35rem; height: 100%; min-height: 44px; padding: 1rem 1.1rem; border-radius: 20px; background: var(--al-fond, #E6F5EE); border: 1px solid var(--al-trait, rgba(11,122,85,.18)); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .15s; }
a.al-guide strong { font-size: 1.15rem; line-height: 1.2; }
a.al-guide span { font-size: .95rem; line-height: 1.4; opacity: .9; }
a.al-guide em { margin-top: auto; padding-top: .4rem; font-style: normal; font-weight: 800; color: var(--accent-texte, var(--accent, #0B7A55)); }
a.al-guide:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15,47,37,.14); text-decoration: none; color: var(--ink); }
a.al-guide:focus-visible { outline: 3px solid #F9B72B; outline-offset: 3px; }
@media (min-width: 640px) { .al-guides { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .al-guides { grid-template-columns: repeat(5, 1fr); } }
@media (prefers-reduced-motion: reduce) { a.al-guide { transition: none; } a.al-guide:hover { transform: none; } }

/* « Suivi, coach, défis, tournois » (17/11/2026) : quatre cartes, deux par ligne dès la tablette. */
.al-intro { max-width: 46rem; margin: 0 0 1rem; line-height: 1.55; color: var(--ink); }
@media (min-width: 640px) { .al-cartes.al-cartes-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .al-cartes.al-cartes-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .al-cartes-4 .al-carte { align-items: flex-start; flex-direction: column; } }
/* Six captures (17/11/2026) : sur écran large elles se partagent la ligne au lieu de déborder. */
@media (min-width: 640px) { .al-tel { flex: 0 1 11.6rem; min-width: 8rem; } }
