/* L'onglet Formation : « Bien démarrer avec Shoot » (08/11/2026). Relié par formation.js à la première ouverture.
   Tout est préfixé fo- pour ne rien toucher au reste de l'app. La charte de l'app : vert sapin pour l'action (--bx2), texte vert
   profond (--bx), vert clair #A3CDB9 pour les accents doux, ivoire en fond. Pas de doré ici. Textes à 14 px minimum, graisse 600 au plus. */
.fo-reprise { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--bx2); color: #fff; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--ombre); }
.fo-reprise-txt { flex: 1 1 220px; display: flex; flex-direction: column; gap: 3px; }
.fo-reprise-txt b { font-family: var(--tight); font-weight: 600; font-size: 18px; line-height: 1.25; }
.fo-reprise-txt span { font-size: 14.5px; opacity: .9; }
.fo-reprise .btn { background: #fff; color: var(--bx); flex: none; }
.fo-reprise-fini { background: #A3CDB9; color: var(--bx); }
.fo-progres { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; font-size: 14px; color: var(--encre2); }
.fo-progres .att-barre { flex: 1 1 160px; margin: 0; max-width: 420px; }
.fo-progres .att-barre i { background: var(--bx2); }

.fo-liste { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.fo-lecon { display: flex; align-items: center; gap: 14px; background: var(--carte); border-radius: 16px; padding: 14px 16px; box-shadow: var(--ombre); color: var(--bx); text-decoration: none; border: 1px solid transparent; transition: transform .15s ease; }
.fo-lecon:hover { transform: translateY(-1px); border-color: rgba(31,91,82,.18); }
.fo-lecon.faite { background: #F2F8F5; }
.fo-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--bx); font-family: var(--tight); font-weight: 600; font-size: 15px; }
.fo-lecon.faite .fo-num { background: #A3CDB9; color: var(--bx); }
.fo-lecon-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fo-lecon-txt b { font-family: var(--tight); font-weight: 600; font-size: 16.5px; line-height: 1.25; }
.fo-lecon-txt small { font-size: 14px; color: var(--encre2); }
.fo-go { flex: none; color: var(--bx2); font-size: 18px; }

/* La carte verte du bas : la formation l'ajence, lien externe */
.fo-ajence { display: flex; flex-direction: column; gap: 6px; background: var(--bx2); color: #fff; border-radius: var(--radius); padding: 24px; text-decoration: none; box-shadow: var(--ombre); margin-top: 8px; }
.fo-ajence-sur { font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #A3CDB9; }
.fo-ajence b { font-family: var(--large); font-weight: 500; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; line-height: 1.15; }
.fo-ajence p { margin: 0; font-size: 15px; line-height: 1.5; opacity: .92; max-width: 560px; }
.fo-ajence-btn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 8px; background: #fff; color: var(--bx); border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: 14.5px; }
.fo-ajence:hover .fo-ajence-btn { background: #A3CDB9; }

/* Une leçon */
.fo-entete .fo-fil { font-size: 14px; color: var(--encre2); margin-bottom: 10px; }
.fo-entete .fo-fil a { color: var(--bx2); font-weight: 500; }
.fo-article { max-width: 760px; }
.fo-article p { font-size: 16px; line-height: 1.6; margin: 0 0 10px; }
.fo-article p:last-child { margin-bottom: 0; }
.fo-article b { font-weight: 600; }
.fo-intro { font-size: 17px; color: var(--encre2); margin-bottom: 18px; }
.fo-h2 { font-family: var(--tight); font-weight: 600; font-size: 22px; margin: 28px 0 10px; }
.fo-carte { background: var(--carte); border-radius: 18px; padding: 20px 22px; box-shadow: var(--ombre); margin-bottom: 14px; }
.fo-carte h3 { font-family: var(--tight); font-weight: 600; font-size: 17px; margin: 0 0 10px; line-height: 1.3; }
.fo-carte.fo-resultat { background: #EEF6F2; border: 1px solid rgba(31,91,82,.14); }
.fo-ol, .fo-ul { margin: 6px 0 10px; padding-left: 22px; }
.fo-ol li, .fo-ul li { font-size: 15.5px; line-height: 1.55; margin-bottom: 7px; }
.fo-ol li::marker { color: var(--bx2); font-weight: 600; }
.fo-astuce { background: #EEF6F2; border-left: 3px solid #A3CDB9; border-radius: 0 14px 14px 0; padding: 12px 16px; font-size: 15px; line-height: 1.55; margin: 12px 0 14px; color: var(--bx); }
.fo-note { font-size: 14.5px; color: var(--encre2); border-top: 1px dashed rgba(31,91,82,.18); padding-top: 10px; margin-top: 10px !important; }
.fo-lien-app { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--bx2); font-weight: 600; font-size: 15px; text-decoration: none; }
.fo-lien-app:hover { text-decoration: underline; }
.fo-centre { text-align: center; margin: 22px 0 14px !important; }
.fo-cta { text-decoration: none; }

/* Les règles de Lisa (mot pour mot) : une étiquette « Règle N » et le titre */
.fo-regle { background: var(--carte); border-radius: 18px; padding: 18px 22px; box-shadow: var(--ombre); margin-bottom: 12px; }
.fo-regle-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.fo-regle-tete h3 { font-family: var(--tight); font-weight: 600; font-size: 18px; margin: 0; line-height: 1.25; }
.fo-tag { flex: none; background: var(--bx2); color: #fff; border-radius: 999px; padding: 4px 11px; font-size: 14px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }

/* La liste à cocher (conseils des photos de référence, règles du groupe) */
.fo-check { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-top: 1px solid var(--ligne); }
.fo-check:first-of-type { border-top: 0; padding-top: 0; }
.fo-check .fo-box { flex: none; width: 24px; height: 24px; border-radius: 8px; background: #A3CDB9; color: var(--bx); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; margin-top: 1px; }
.fo-check b { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.35; }
.fo-check small { display: block; font-size: 14px; color: var(--encre2); line-height: 1.45; margin-top: 2px; }

/* Les trois photos d'exemple */
.fo-ex-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 6px; }
.fo-ex-grille figure { margin: 0; }
.fo-ex-grille img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; background: var(--surface); }
.fo-ex-grille figcaption { font-size: 14px; color: var(--encre2); text-align: center; margin-top: 6px; }

/* Les tutos des clés : les mêmes carrousels que la prise en main, dans des replis */
.fo-tutos { margin: 0 0 14px; }
.fo-tuto .repli-corps { padding: 6px 18px 18px; }
.fo-tuto .pem-slide-num { font-size: 14px; } /* la prise en main l'affiche à 12,5 px ; ici, jamais sous 14 px */

/* Le bas d'une leçon : la case « terminée » et la navigation */
.fo-fin { max-width: 760px; margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.fo-terminee { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; border: 1px solid rgba(31,91,82,.22); background: var(--carte); color: var(--bx); border-radius: 999px; padding: 11px 18px 11px 12px; font-size: 15.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.fo-terminee .fo-box { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(31,91,82,.35); display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.fo-terminee.ok { background: var(--bx2); color: #fff; border-color: var(--bx2); }
.fo-terminee.ok .fo-box { background: #fff; border-color: #fff; color: var(--bx2); }
.fo-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fo-nav .btn { text-decoration: none; }

@media (max-width: 640px) {
  .fo-reprise { padding: 18px; }
  .fo-reprise .btn { width: 100%; justify-content: center; }
  .fo-carte, .fo-regle { padding: 16px 16px; }
  .fo-ex-grille { gap: 8px; }
  .fo-nav .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .fo-ajence { padding: 20px; }
}

/* ---------- 08/11/2026 : la formation remplace la prise en main (demarrage.js) ----------
   Chargée d'office par index.html (data-fo) : le message « Il te manque ta clé » et la pastille de Formation vivent hors de l'onglet.
   Toujours la charte de l'app, sans doré : vert sapin #1F5B52, texte #17463F, vert clair #A3CDB9, ivoire. 14 px minimum, 600 au plus. */

/* La pastille de Formation (rail, barre du bas) tant qu'une clé obligatoire manque : un point, sans texte */
.espace[href="#/formation"] { position: relative; }
.espace .fo-point { flex: none; margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: #1F5B52; box-shadow: 0 0 0 3px rgba(163,205,185,.55); }
@media (max-width: 640px) { .rail .espace .fo-point { position: absolute; top: 7px; right: 11px; margin: 0; box-shadow: 0 0 0 2px var(--carte); } }

/* L'écran Démarrer */
.fo-demarrer { background: var(--carte); border-radius: var(--radius); box-shadow: var(--ombre); padding: 20px 22px; margin-bottom: 28px; }
.fo-dm-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.fo-dm-tete h2 { font-family: var(--tight); font-weight: 600; font-size: 19px; color: var(--bx); }
.fo-dm-compte { flex: none; font-size: 14px; font-weight: 600; color: var(--bx2); background: #EEF6F2; border-radius: 999px; padding: 4px 12px; }
.fo-demarrer .fo-liste { margin-bottom: 0; }
.fo-demarrer .fo-lecon { box-shadow: none; border: 1px solid var(--ligne); background: var(--fond); }
.fo-demarrer .fo-lecon.faite { background: #F2F8F5; border-color: rgba(31,91,82,.16); }
.fo-lecon-etat { align-self: flex-start; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--encre2); background: var(--surface); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.fo-lecon-etat.ok { background: #A3CDB9; color: var(--bx); }
.fo-dm-promenade { margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: var(--encre2); }
.fo-dm-promenade a { color: var(--bx2); font-weight: 600; }
.fo-quand { margin-top: 6px; line-height: 1.25; }
.fo-quand-txt { font-size: 15.5px; line-height: 1.55; color: var(--encre2); margin: 0 0 14px; max-width: 640px; }
.fo-liste-douce .fo-lecon { box-shadow: none; border: 1px solid var(--ligne); }
.fo-liste-douce .fo-lecon:not(.faite) .fo-num { background: transparent; border: 1px solid rgba(31,91,82,.22); }

/* « C'est bon, tu peux créer ! » */
.fo-pret { background: var(--bx2); color: #fff; border-radius: var(--radius); padding: 22px; margin: 0 0 22px; box-shadow: var(--ombre); }
.fo-pret h3 { font-family: var(--large); font-weight: 500; font-size: 21px; line-height: 1.2; text-transform: uppercase; letter-spacing: .02em; color: #fff; margin: 0 0 8px; }
.fo-pret p { font-size: 15.5px; line-height: 1.5; margin: 0 0 14px; color: #fff; opacity: .92; }
.fo-pret .btn { background: #fff; color: var(--bx); text-decoration: none; }
.fo-pret .btn:hover { background: #A3CDB9; }
.fo-pret .fo-pret-suite { margin: 14px 0 0; font-size: 14.5px; color: #A3CDB9; opacity: 1; }
.fo-article .fo-pret p { font-size: 15.5px; }
.fo-article .fo-pret .fo-pret-suite { font-size: 14.5px; margin-bottom: 0; }

/* Le fil d'une leçon obligatoire */
.fo-fil-oblig { display: inline-block; font-size: 14px; font-weight: 500; color: var(--bx); background: #A3CDB9; border-radius: 999px; padding: 1px 10px; }

/* Les replis des leçons : le chevron reste vert au survol (pas de doré) */
.fo-article .repli > summary:hover .chevron, .fo-article .repli > summary:focus-visible .chevron { border-color: var(--bx2); }

/* Leçon 1 : Shoot sur l'écran d'accueil */
.fo-tel { margin: 12px 0 10px; }
.dm-gestes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: geste; }
.dm-gestes li { display: flex; align-items: flex-start; gap: 12px; background: var(--fond); border: 1px solid var(--ligne); border-radius: 16px; padding: 12px 14px; counter-increment: geste; }
.dm-gestes li::before { content: counter(geste); flex: none; width: 26px; height: 26px; border-radius: 50%; background: #1F5B52; color: #fff; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.dm-geste-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--carte); border: 1px solid var(--ligne); color: var(--bx); display: inline-flex; align-items: center; justify-content: center; }
.dm-gestes b { display: block; font-weight: 600; font-size: 15.5px; color: var(--bx); line-height: 1.35; }
.dm-gestes small { display: block; font-size: 14px; line-height: 1.45; color: var(--encre2); margin-top: 2px; }
.dm-tel-act { margin-top: 14px; }
.dm-tel-note { font-size: 14.5px !important; color: var(--encre2); margin: 0 0 10px !important; }
.dm-tel-ordi { display: flex; align-items: center; gap: 18px; background: var(--fond); border: 1px solid var(--ligne); border-radius: 16px; padding: 14px 16px; }
.dm-tel-ordi img { flex: none; width: 150px; height: 150px; border-radius: 12px; background: #fff; }
.dm-tel-ordi p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.5; color: var(--bx); }
.dm-tel-ordi p:last-child { margin: 0; }
.dm-ok { background: #EEF6F2; border: 1px solid rgba(31,91,82,.16); border-radius: 16px; padding: 14px 16px; }
.dm-ok b { display: block; font-family: var(--tight); font-weight: 600; font-size: 16px; color: var(--bx2); margin-bottom: 4px; }
.dm-ok p { margin: 0 !important; font-size: 15px !important; color: var(--bx); }
.fo-autre { box-shadow: none; border: 1px solid var(--ligne); margin: 12px 0 0; }
.fo-autre > summary { min-height: 46px; }
.fo-autre .acc-titre b { font-size: 15.5px; }
@media (max-width: 560px) { .dm-tel-ordi { flex-direction: column; align-items: flex-start; } }

/* Leçon 2 : poser ses clés, une à la fois */
.fo-cles-resume { display: flex; align-items: center; gap: 18px; background: var(--carte); border-radius: 18px; padding: 18px 22px; box-shadow: var(--ombre); margin-bottom: 16px; }
.fo-cles-resume p { margin: 0 !important; font-size: 15.5px; }
.fo-cles-compte { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 108px; background: #EEF6F2; border-radius: 16px; padding: 12px 14px; text-align: center; }
.fo-cles-compte span { font-family: var(--tight); font-weight: 600; font-size: 22px; color: var(--bx2); line-height: 1.1; }
.fo-cles-compte small { font-size: 14px; color: var(--encre2); margin-top: 2px; }
.fo-cles-resume.ok .fo-cles-compte { background: #A3CDB9; }
.fo-cles-resume.ok .fo-cles-compte span, .fo-cles-resume.ok .fo-cles-compte small { color: var(--bx); }
.fo-cles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.fo-cle { min-width: 0; background: var(--carte); border-radius: 18px; padding: 18px 20px; box-shadow: var(--ombre); border: 1px solid transparent; scroll-margin-top: 16px; }
.fo-cle.ok { border-color: rgba(31,91,82,.16); }
.fo-cle.fo-cle-visee { border-color: #A3CDB9; box-shadow: 0 0 0 3px rgba(163,205,185,.45), var(--ombre); }
.fo-cle-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fo-cle-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--bx); font-family: var(--tight); font-weight: 600; font-size: 15px; }
.fo-cle.ok .fo-cle-num { background: #A3CDB9; }
.fo-cle-nom { flex: 1; min-width: 0; }
.fo-cle-nom h3 { font-family: var(--tight); font-weight: 600; font-size: 18px; line-height: 1.25; margin: 0; color: var(--bx); }
.fo-cle-nom h3 span { font-size: 14px; font-weight: 500; color: var(--encre2); margin-left: 4px; white-space: nowrap; }
.fo-article .fo-cle-nom p { margin: 2px 0 0; font-size: 14.5px; color: var(--encre2); }
.fo-cle-statut { flex: none; font-size: 14px; font-weight: 500; line-height: 1.3; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.fo-cle-statut.oblig { background: #1F5B52; color: #fff; }
.fo-cle-statut.plus { background: var(--surface); color: var(--encre2); }
.fo-cle-statut.ok { background: #A3CDB9; color: var(--bx); }
.fo-attente { color: var(--encre2); font-size: 14.5px !important; }
/* La ligne de Mon compte (profil.js › monterCles), à la charte de la leçon */
.fo-cle-champ { margin-bottom: 12px; }
.fo-cle-champ .api-liste { margin-top: 0; grid-template-columns: minmax(0, 1fr); }
.fo-cle-champ .api-cle, .fo-cle-champ .api-tete, .fo-cle-champ .api-saisie { min-width: 0; }
.fo-cle-champ .api-cle { background: var(--fond); }
.fo-cle-champ .api-nom small { font-size: 14px; }
.fo-cle-champ .etat { font-size: 14px; }
.fo-cle-champ .etat.ok { background: #A3CDB9; color: var(--bx); }
.fo-cle-champ .api-saisie input { font-size: 16px; }
.fo-cle-champ .pret { background: #EEF6F2; border: 1px solid rgba(31,91,82,.18); padding: 12px 14px; margin-bottom: 0; }
.fo-cle-champ .pret h3 { color: var(--bx2); font-size: 16px; }
.fo-cle-champ .erreur { font-size: 14.5px; margin-bottom: 0; }
.fo-cle .repli { box-shadow: none; border: 1px solid var(--ligne); margin: 0 0 8px; }
.fo-cle .repli:last-child { margin-bottom: 0; }
.fo-cle .repli > summary { min-height: 48px; }
.fo-cle .repli .acc-titre b { font-size: 15.5px; }
.fo-cle .fo-tuto .pem-slide-num { color: var(--bx2); }
.fo-comprendre .repli-corps p { font-size: 15.5px; }

/* « Il te manque ta clé… » : l'écran (adresse d'une création) et la petite fenêtre (vignette touchée) */
.dm-manque-page { max-width: 620px; margin: 8px auto 0; }
.dm-manque { background: var(--carte); border-radius: var(--radius); box-shadow: var(--ombre); padding: 26px 24px; color: var(--bx); }
.dm-manque-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: #EEF6F2; color: var(--bx2); margin-bottom: 14px; }
.dm-manque h2 { font-family: var(--tight); font-weight: 600; font-size: 21px; line-height: 1.25; margin: 0 0 8px; color: var(--bx); }
.dm-manque p { font-size: 15.5px; line-height: 1.55; margin: 0 0 16px; color: var(--bx); }
.dm-manque-act { display: flex; flex-wrap: wrap; gap: 10px; }
.dm-manque-act .btn { text-decoration: none; }
.dm-manque .dm-manque-note { font-size: 14px; color: var(--encre2); margin: 16px 0 0; }
.dm-voile { position: fixed; inset: 0; z-index: 90; background: rgba(23,70,63,.38); display: flex; align-items: center; justify-content: center; padding: 16px; }
.dm-voile .dm-manque { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; }
@media (max-width: 640px) {
  .fo-demarrer { padding: 16px; }
  .fo-cles-resume { flex-direction: column; align-items: stretch; padding: 16px; gap: 12px; }
  .fo-cles-compte { flex-direction: row; gap: 8px; justify-content: flex-start; min-width: 0; }
  .fo-cle { padding: 16px 14px; }
  .fo-cle-tete { flex-wrap: wrap; }
  .fo-cle-nom { flex: 1 1 calc(100% - 46px); }
  .fo-cle-statut { margin-left: 46px; }
  details.fo-facultatif > summary .chevron { margin-left: auto; }
  .dm-manque-act .btn { flex: 1 1 100%; justify-content: center; }
  .dm-voile { align-items: flex-end; padding: 0; }
  .dm-voile .dm-manque { max-width: none; border-radius: 22px 22px 0 0; padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); }
}

/* Leçon 2 (08/11 soir) : le Google Drive, et Gemini à part, repliable (« Seulement si tu vends des produits ») */
.fo-drive-champ { margin-bottom: 12px; }
.fo-drive-champ .btn { text-decoration: none; }
.fo-article .fo-drive-aide { margin: 10px 0 0; font-size: 14.5px; color: var(--encre2); }
.fo-presque { background: #EEF6F2; border: 1px solid #A3CDB9; border-radius: 16px; padding: 14px 18px; margin: 0 0 16px; }
.fo-presque b { display: block; font-family: var(--tight); font-weight: 600; font-size: 16px; color: var(--bx2); margin-bottom: 2px; }
.fo-article .fo-presque p { margin: 0; font-size: 15px; }
.fo-gemini-titre { margin-top: 26px; }
details.fo-facultatif { padding: 0; }
details.fo-facultatif > summary { list-style: none; cursor: pointer; padding: 16px 20px; margin: 0; border-radius: 18px; }
details.fo-facultatif > summary::-webkit-details-marker { display: none; }
details.fo-facultatif > summary:focus-visible { outline: 2px solid var(--bx2); outline-offset: 2px; }
details.fo-facultatif[open] > summary { border-bottom: 1px solid var(--ligne); border-radius: 18px 18px 0 0; margin-bottom: 14px; }
details.fo-facultatif.fo-cle > :not(summary) { margin-left: 20px; margin-right: 20px; }
details.fo-facultatif > :last-child { margin-bottom: 18px; }
.fo-facultatif > summary .chevron { margin-left: 4px; }
.fo-plus-tard { margin-top: 12px; }
.fo-plus-tard [hidden], .fo-plus-tard .btn[hidden] { display: none; }
@media (max-width: 640px) {
  details.fo-facultatif > summary { padding: 14px; }
  details.fo-facultatif.fo-cle > :not(summary) { margin-left: 14px; margin-right: 14px; }
}
