/* La page /app (retours d'Antoine du 05/10) : un héros qui montre tous les
   espaces autour d'un seul téléphone, des sections complètes (ce que ça fait,
   les étapes, ce qui compte, un vrai écran) et les offres sur la page.
   Chargée après pages.css, par app.html seulement. */

/* Trois teintes d'espace de plus, même relief que les .e-* de pages.css. */
.e-cyan  { background: #DDF6FA; color: var(--turquoise-encre); }
.e-encre { background: #EEE6EB; color: #5C4A57; }
.e-foil  { background: linear-gradient(150deg, #FFE4EF, #ECE5FD); color: var(--mauve-encre); }

/* ── Le héros ───────────────────────────────────────────────────────────
   Au téléphone tout s'empile, la scène avant les boutons ; sur ordinateur
   le texte à gauche, la scène à droite (même grille que /univers). */
.ha { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.ha h1, .ha .chapo { margin-left: auto; margin-right: auto; }
.heros .ha h1 { font-size: clamp(34px, 4vw, 56px); max-width: 16ch; }
.ha .ha-btns { margin-top: 22px; }

/* La scène se mesure elle-même (cqw) : téléphone et cartes gardent leurs
   proportions de 340 à 560 px. Au téléphone, le téléphone grandit et les
   cartes ne portent que leur nom ; au-delà, la phrase de l'espace s'ajoute. */
.ha-scene { container-type: inline-size; position: relative; width: min(100%, 560px); aspect-ratio: 100 / 96; margin: 24px auto 0; }
.heros .ha-scene[data-reveal][data-reveal] { transform: none; }
.ha-tel { position: absolute; z-index: 1; left: 50%; top: 1cqw; width: 44cqw; translate: -50% 0; border-radius: 6cqw; }
.ha-tel img { display: block; width: 100%; height: auto; }
.ha-tel:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
/* L'ombre posée sous le téléphone : un dégradé, pas un drop-shadow (qui
   recalcule la silhouette de l'image et coûte sur iPhone). */
.ha-tel::after { content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; bottom: -5cqw; height: 12cqw;
  background: radial-gradient(closest-side, rgba(70,24,52,.3), rgba(70,24,52,0)); }

.ha-c { position: absolute; z-index: 2; width: 34cqw; display: flex; align-items: center; gap: 6px;
  padding: 7px 8px 7px 7px; border-radius: 15px; text-align: left; text-decoration: none; color: var(--ink);
  background: rgba(255,255,255,.95); border: 1px solid #fff;
  box-shadow: 0 14px 26px -14px rgba(60,20,45,.42), 0 2px 6px -2px rgba(60,20,45,.12), inset 0 -2px 0 rgba(36,27,34,.05);
  rotate: var(--r, 0deg); transition: transform 320ms cubic-bezier(.3, 1.4, .55, 1), box-shadow 320ms ease; }
.ha-c.g1 { left: 0; top: 4%;  --r: -3deg; }
.ha-c.g2 { left: 0; top: 26%; --r: 2deg; }
.ha-c.g3 { left: 0; top: 48%; --r: -2deg; }
.ha-c.g4 { left: 0; top: 70%; --r: 3deg; }
.ha-c.d1 { right: 0; top: 12%; --r: 3deg; }
.ha-c.d2 { right: 0; top: 34%; --r: -2deg; }
.ha-c.d3 { right: 0; top: 56%; --r: 2deg; }
.ha-c.d4 { right: 0; top: 78%; --r: -3deg; }
.ha-i { flex: none; width: 22px; height: 22px; border-radius: 8px; display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 8px -4px rgba(60,20,45,.4); }
.ha-i svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.ha-x { display: grid; gap: 1px; min-width: 0; }
.ha-x b { font-family: Poppins, Archivo, system-ui, sans-serif; font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.ha-x small { display: none; font-size: 12px; line-height: 1.35; color: var(--ink-2); }
.ha-c:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .ha-c:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 22px 34px -16px rgba(60,20,45,.45), 0 2px 6px -2px rgba(60,20,45,.12); }
}
@media (min-width: 520px) {
  .ha-scene { aspect-ratio: 100 / 86; }
  .ha-tel { width: 38cqw; }
  .ha-c { width: 36cqw; gap: 10px; padding: 10px 12px 10px 10px; border-radius: 18px; }
  .ha-i { width: 32px; height: 32px; border-radius: 11px; }
  .ha-i svg { width: 17px; height: 17px; }
  .ha-x b { font-size: 14px; }
  .ha-x small { display: block; }
}

/* Les cartes arrivent une à une, puis flottent à peine, chacune à son temps. */
@media (prefers-reduced-motion: no-preference) {
  .ha-scene.vu .ha-c { animation: ha-entre 560ms cubic-bezier(.3, 1.3, .55, 1) calc(var(--k) * 70ms + 200ms) backwards,
    ha-flotte 7s ease-in-out calc(var(--k) * -.9s) infinite; }
}
@keyframes ha-entre { from { opacity: 0; transform: translateY(16px) scale(.9); } }
@keyframes ha-flotte { 50% { translate: 0 -5px; } }

@media (min-width: 900px) {
  .ha { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); column-gap: clamp(32px, 4.5vw, 72px);
    grid-template-rows: 1fr auto auto auto auto 1fr; justify-items: start; text-align: left;
    grid-template-areas: ". sc" "mini sc" "titre sc" "chapo sc" "btns sc" ". sc"; }
  .ha .mini { grid-area: mini; }
  .ha h1 { grid-area: titre; margin-left: 0; }
  .ha .chapo { grid-area: chapo; margin-left: 0; }
  .ha .ha-btns { grid-area: btns; justify-content: flex-start; }
  .ha-scene { grid-area: sc; width: 100%; margin: 0; }
}

/* ── Les sections : ce que ça fait, les étapes, ce qui compte ──────────── */
.fxs { padding-top: 36px; }
.dedans.fx { scroll-margin-top: 90px; }
.dedans p.fx-l { margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  line-height: 1.4; color: var(--accent-ink); }
.fx-etapes { list-style: none; counter-reset: fx; display: grid; gap: 10px; margin-top: 10px; }
.fx-etapes li { counter-increment: fx; position: relative; padding-left: 36px; font-size: 15.5px; line-height: 1.5; }
.fx-etapes li::before { content: counter(fx); position: absolute; left: 0; top: -1px; width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: #fff;
  font-family: Poppins, Archivo, system-ui, sans-serif; font-size: 12.5px; font-weight: 700; }
.dedans .fx-det { margin-top: 10px; gap: 8px; }
.dedans .fx-det li { font-size: 15px; color: var(--ink-2); }
.fx-det b { color: var(--ink); }

/* Le badge d'offre à côté de l'étiquette d'espace. */
.etiq-pro { display: inline-flex; align-items: center; min-height: 26px; margin-left: 4px; padding: 0 10px; border-radius: 999px;
  vertical-align: middle; font-size: 12px; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid var(--trait); }
.etiq-pro + h3 { margin-top: 12px; }

/* Le délégué : un encart sous la classe. */
.fx-encart { margin-top: 18px; padding: 14px 16px 16px; border-radius: 18px; background: rgba(255,255,255,.74);
  border: 1px solid var(--glass-bord); box-shadow: var(--glass-ombre); }
.dedans .fx-encart p.fx-l { margin-top: 0; }
.fx-encart ul { list-style: none; display: grid; gap: 8px; margin-top: 8px; }
.fx-encart li { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.fx-encart b { color: var(--ink); }

@media (min-width: 760px) { .dedans.fx { align-items: center; } }

/* ── De l'air (Antoine, 05/10 : « trop serré, trop d'informations ») ────
   Trois étapes visibles au plus ; la suite et « Ce qui compte » se
   déplient sous « Voir plus ». Plus d'espace entre les espaces, un texte
   plus grand. */
.dedans.fx { padding: 72px 0; }
@media (min-width: 760px) { .dedans.fx { gap: clamp(56px, 7vw, 104px); } }
.dedans.fx h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; }
.dedans.fx > div > p:not(.fx-l):not(.fine) { margin-top: 14px; font-size: 17.5px; line-height: 1.6; max-width: 40ch; }
.dedans.fx p.fx-l { margin-top: 28px; }
.fx-etapes { gap: 14px; margin-top: 14px; max-width: 46ch; }
.fx-etapes li { padding-left: 40px; font-size: 16.5px; line-height: 1.55; }
.fx-etapes li::before { width: 28px; height: 28px; top: -2px; background: var(--accent-tint); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px rgba(232,68,127,.18); font-size: 13.5px; }
.fx-suite { counter-reset: fx 3; margin-top: 14px; }
.fx-plus { margin-top: 20px; }
.fx-plus summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  list-style: none; font-size: 15px; font-weight: 700; color: var(--ink); background: rgba(255,255,255,.8); border: 1px solid var(--trait);
  box-shadow: 0 8px 18px -14px rgba(60,20,45,.4); transition: background 200ms var(--ease); }
.fx-plus summary::-webkit-details-marker { display: none; }
.fx-plus summary::after { content: "+"; font-size: 19px; line-height: 1; color: var(--accent-ink); }
.fx-plus[open] summary { font-size: 0; gap: 0; }
.fx-plus[open] summary::before { content: "Voir moins"; font-size: 15px; }
.fx-plus[open] summary::after { content: "\2212"; margin-left: 8px; }
.fx-plus summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) { .fx-plus summary:hover { background: #fff; } }
.fx-plus-c { padding-top: 4px; }
.fx-plus-c > .fx-l:first-child { margin-top: 18px; }
.dedans .fx-plus .fx-det { max-width: 46ch; }
@media (max-width: 759px) {
  .dedans.fx { padding: 48px 0; gap: 26px; }
  .dedans.fx h3 { font-size: 26px; }
  .dedans.fx > div > p:not(.fx-l):not(.fine) { font-size: 16.5px; }
  .fx-etapes li { font-size: 16px; }
  .dedans .fx-det li { font-size: 15px; }
}

/* Deux écrans pour la classe : le fil devant, le résumé derrière. */
.duo { --ld: 220px; position: relative; width: calc(var(--ld) * 1.5); height: calc(var(--ld) * 2.26); }
.dedans .duo .vt { --l: var(--ld); position: absolute; }
.duo-a { left: 0; top: 0; z-index: 2; rotate: -2deg; }
.duo-b { right: 0; top: 7%; rotate: 4deg; }
@media (max-width: 759px) { .dedans .duo { --ld: min(168px, 43vw); } }

/* L'écran « Mes cours » vide, d'après MonEmploiDuTempsView.swift : Seli,
   le titre, la phrase, le bouton rose plein et les capsules blanches. */
.ui-edt { width: min(320px, 100%); display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 22px 18px 20px;
  border-radius: 30px; background: #FDF3F8; text-align: center; font-family: Poppins, Archivo, system-ui, sans-serif;
  box-shadow: 0 30px 60px -30px rgba(60,20,45,.5), 0 0 0 1px rgba(36,27,34,.05); }
.ui-edt img { width: 104px; height: auto; }
.ui-edt b { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.dedans .ui-edt p { margin: 0 0 6px; max-width: none; font-size: 13px; line-height: 1.45; color: #6B5F68; }
.ui-bt { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 14px;
  border-radius: 999px; background: #fff; color: var(--rose); font-size: 13px; font-weight: 600; }
.ui-bt.plein { min-height: 48px; background: var(--rose); color: #fff; font-size: 14.5px; font-weight: 700; }
.ui-bt svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* L'appel, d'après AppelView.swift : le rose d'arc, deux lueurs, « Seli »
   et son état, la liste lue en blanc sur verre, le rond rouge. */
.ui-appel { width: min(300px, 100%); display: flex; flex-direction: column; align-items: center; padding: 26px 16px 22px;
  border-radius: 36px; color: #fff; overflow: hidden; font-family: Poppins, Archivo, system-ui, sans-serif;
  background: radial-gradient(circle at 80% 68%, rgba(255,255,255,.34), rgba(255,255,255,0) 46%),
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.2), rgba(255,255,255,0) 52%),
    linear-gradient(var(--rose-clair), var(--rose) 55%, var(--rose-fonce));
  box-shadow: 0 30px 60px -30px rgba(60,20,45,.55); }
.ua-tete { display: grid; justify-items: center; gap: 1px; }
.ua-tete b { font-size: 22px; font-weight: 600; line-height: 1.2; }
.ua-tete span { font-size: 15px; font-weight: 600; opacity: .92; }
.ua-tete small { font-size: 12.5px; opacity: .8; font-variant-numeric: tabular-nums; }
.ui-appel img { width: 148px; height: auto; margin: 8px 0 4px; }
.ua-liste { list-style: none; width: 100%; display: grid; gap: 9px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.16); text-align: left; }
.ua-liste li { display: flex; align-items: flex-start; gap: 10px; }
.ua-liste i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 13px; font-weight: 700; color: var(--rose-encre); background: #fff; }
.ua-liste span { display: grid; min-width: 0; }
.ua-liste b { font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ua-liste small { font-size: 12px; opacity: .82; }
.ua-cmd { display: flex; gap: 22px; margin-top: 18px; }
.ua-cmd span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.22); }
.ua-cmd span.rouge { background: var(--rouge); }
.ua-cmd svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ua-cmd .rouge svg { fill: #fff; stroke: none; }

/* ── Les offres : trois cartes sur le panneau rose ───────────────────── */
.pan.offres { padding: 28px 20px 22px; gap: 18px; }
.offres-t { display: grid; gap: 8px; }
.pan .offres-l { gap: 10px; }
.pan .offres-l li { display: flex; flex-direction: column; gap: 3px; padding: 16px 16px 18px; border-radius: 20px;
  background: #fff; color: var(--ink);
  box-shadow: 0 10px 22px -14px rgba(60,20,45,.55), inset 0 -2px 0 rgba(36,27,34,.06); }
.pan .offres-l li::before { display: none; }
.offres-l b { font-family: Poppins, Archivo, system-ui, sans-serif; font-size: 12.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent-ink); }
.offre-p { font-family: Poppins, Archivo, system-ui, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.offre-p small { font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.offre-ou { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.offre-q { margin-top: 6px; font-size: 14.5px; line-height: 1.5; }
@media (min-width: 900px) {
  .pan.offres { padding: 34px 32px 28px; }
  .pan .offres-l { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}
