/* Espace de gestion de Valérie : pensé d'abord pour son téléphone */
body.gestion { background: var(--sable); font-size: 17px; }

.g-entete { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--gouttiere); background: #fff; border-bottom: 1px solid var(--ligne); }
.g-entete-liens { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.g-voir-site { font-size: .92rem; color: var(--texte); }
.g-sortir { min-height: 44px; padding: 0; border: 0; background: none; color: var(--texte); font: inherit; font-size: .92rem; text-decoration: underline; cursor: pointer; }
.g-sortir[hidden] { display: none; }

/* Cloche : les sujets à traiter */
.g-cloche { position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--encre); cursor: pointer; }
.g-cloche[hidden] { display: none; }
.g-cloche .pastille { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: .72rem; line-height: 18px; }
.g-cloche.alerte svg { animation: g-sonner .8s ease-in-out 2; transform-origin: 50% 10%; }
@keyframes g-sonner { 25% { transform: rotate(14deg); } 75% { transform: rotate(-14deg); } }
@media (prefers-reduced-motion: reduce) { .g-cloche.alerte svg { animation: none; } }
.g-panneau-cloche { position: fixed; top: 68px; right: var(--gouttiere); z-index: 11; width: min(360px, calc(100vw - 2 * var(--gouttiere))); max-height: calc(100vh - 150px); overflow-y: auto; background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.g-panneau-cloche[hidden] { display: none; }
.g-panneau-cloche h2 { margin: 0; padding: 14px 16px 10px; font-size: 1.05rem; font-weight: 500; text-transform: none; letter-spacing: 0; }
.g-sujet { display: block; padding: 11px 16px; border-top: 1px solid var(--ligne); color: inherit; text-decoration: none; }
.g-sujet:hover { background: var(--sable); }
.g-sujet strong { display: block; font-weight: 500; color: var(--encre); font-size: .95rem; }
.g-sujet span { display: block; color: var(--gris); font-size: .88rem; line-height: 1.3; }
.g-panneau-cloche .g-vide { margin: 0; padding: 8px 16px 18px; font-size: .95rem; }
/* Sur téléphone, la déconnexion reste disponible dans Réglages. */
@media (max-width: 480px) {
  .g-entete .marque span { white-space: nowrap; }
  .g-entete-liens { gap: 8px; }
  .g-sortir { display: none; }
}

#vue { display: block; max-width: 720px; margin: 0 auto; padding: 22px var(--gouttiere) 110px; outline: none; }
#vue h1 { font-size: 2rem; font-weight: 300; margin-bottom: 16px; }
#vue h2 { font-size: 1.25rem; font-weight: 500; text-transform: none; letter-spacing: 0; margin: 26px 0 10px; }

.g-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: grid; grid-template-columns: repeat(6, 1fr); background: #fff; border-top: 1px solid var(--ligne); padding-bottom: env(safe-area-inset-bottom); }
.g-nav[hidden] { display: none; }
.g-nav a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; padding: 0 2px; text-decoration: none; color: var(--gris); font-size: .84rem; border-top: 2px solid transparent; }
.g-nav a.actif { color: var(--encre); border-top-color: var(--corail); }
.pastille { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--corail); color: #fff; font-size: .78rem; line-height: 20px; text-align: center; }
.pastille[hidden] { display: none; }

.g-carte { display: block; background: #fff; border-radius: 6px; padding: 16px; margin-bottom: 10px; color: inherit; text-decoration: none; }
a.g-carte:hover { box-shadow: 0 0 0 1px var(--encre); }
.g-carte p { margin: 0; }
.g-rangee { display: flex; flex-wrap: wrap; gap: 8px; }
.g-rangee .btn { flex: 1 1 auto; }
.g-pied-liste { text-align: center; margin-top: 18px; }
.g-vide { color: var(--gris); text-align: center; padding: 24px 12px; }
.g-demo { background: #fff; border-left: 2px solid var(--corail); padding: 12px 14px; font-size: .95rem; margin-bottom: 16px; }
.g-retour { display: inline-block; margin-bottom: 12px; color: var(--texte); font-size: .95rem; }
.g-principal { width: 100%; margin-bottom: 18px; }

/* Résumé */
.g-resume { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.g-resume div { background: #fff; border-radius: 6px; padding: 12px 10px; text-align: center; }
.g-resume strong { display: block; font-weight: 300; font-size: 1.5rem; line-height: 1.2; color: var(--encre); white-space: nowrap; }
.g-resume span { font-size: .8rem; color: var(--gris); line-height: 1.2; display: block; }

/* Cours dans la liste */
.g-cours { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: center; }
.g-cours img { width: 68px; height: 68px; object-fit: cover; border-radius: 4px; background: var(--sable); }
.g-cours-date { color: var(--corail); font-size: .9rem; font-weight: 500; }
.g-cours-nom { color: var(--encre); font-size: 1.1rem; line-height: 1.25; }
.g-cours-places { color: var(--gris); font-size: .92rem; margin-top: 2px !important; }
.g-badge-prive { background: var(--tige) !important; }
.g-badge-cadeau { background: var(--tige) !important; }
.g-badge { display: inline-block; font-size: .75rem; color: #fff; background: var(--corail); border-radius: 99px; padding: 0 8px; vertical-align: 2px; white-space: nowrap; }
.g-nouvelle { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.g-nouvelle small { color: var(--gris); font-size: .88rem; text-align: right; }

/* Fiche d'un cours */
.g-tete-cours { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; margin-bottom: 14px; }
.g-tete-cours img { width: 84px; height: 84px; object-fit: cover; border-radius: 4px; background: #fff; }
.g-tete-cours h1 { margin: 0 !important; font-size: 1.5rem !important; line-height: 1.15; }
.g-session { background: #fff; border-radius: 6px; padding: 16px; margin-top: 16px; }
.g-session-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.g-session-tete h2 { margin: 0 !important; }
.g-compte { font-size: 1.05rem; color: var(--encre); white-space: nowrap; }
.g-jauge { height: 6px; border-radius: 99px; background: var(--ligne); margin: 10px 0; overflow: hidden; }
.g-jauge span { display: block; height: 100%; background: var(--tige); }
.g-argent { display: flex; flex-wrap: wrap; gap: 2px 16px; font-size: .92rem; color: var(--gris); margin: 0 0 8px; }
.g-argent b { font-weight: 500; color: var(--encre); }

.g-inscrit { border-top: 1px solid var(--ligne); padding: 14px 0; }
.g-inscrit p { margin: 0; }
.g-inscrit-nom { color: var(--encre); font-size: 1.05rem; }
.g-inscrit-info { color: var(--gris); font-size: .92rem; }
.g-remarque { background: #FBF3DF; border-radius: 4px; padding: 7px 10px; margin: 8px 0 0 !important; font-size: .95rem; color: var(--encre); }
.g-reglement { display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0; border: 1px solid var(--ligne); border-radius: 6px; overflow: hidden; }
.g-reglement button { min-height: 44px; border: 0; border-left: 1px solid var(--ligne); background: #fff; font: 400 .9rem var(--police); color: var(--texte); cursor: pointer; padding: 2px 4px; line-height: 1.15; }
.g-reglement button:first-child { border-left: 0; }
.g-reglement button[aria-pressed="true"] { background: var(--encre); color: #fff; }
.g-reglement button.paye[aria-pressed="true"] { background: var(--tige); }
.g-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.g-action { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--ligne); border-radius: 99px; background: #fff; font: 400 .9rem var(--police); color: var(--encre); text-decoration: none; cursor: pointer; }
.g-action-wa { border-color: #1B7F47; color: #156639; }
.g-action-danger { color: var(--corail); margin-left: auto; }
.g-annulee { opacity: .75; }
.g-cours-passe { opacity: .6; background: #F1EEE8; }
.g-cours-passe img { filter: grayscale(1); }

/* Commentaires */
.g-avis-texte { margin: 8px 0 12px !important; color: var(--encre); white-space: pre-line; overflow-wrap: anywhere; }

/* Tous les inscrits, par cours */
.g-liste-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.g-liste-cours .g-cours-nom { margin-bottom: 8px; }
.g-liste-session { margin: 12px 0 2px !important; color: var(--encre); font-weight: 500; font-size: .95rem; }
.g-ligne-inscrit { border-top: 1px solid var(--ligne); padding: 10px 0; }
.g-ligne-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.g-reglement-etat { font-size: .85rem; white-space: nowrap; color: var(--corail); }
.g-reglement-etat.paye { color: var(--tige); }
.g-liste-cours > .g-action { margin-top: 10px; }
details.g-passes { margin-top: 20px; }
details.g-passes summary { cursor: pointer; min-height: 32px; color: var(--encre); text-align: center; }

details.g-ajout { border-top: 1px solid var(--ligne); margin-top: 2px; padding-top: 12px; }
details.g-ajout summary { cursor: pointer; color: var(--encre); min-height: 32px; }
details.g-ajout form { margin-top: 12px; }
details.g-annulees { margin-top: 8px; color: var(--gris); font-size: .95rem; }
details.g-annulees summary { cursor: pointer; min-height: 32px; }

/* Formulaires */
.g-formulaire { background: #fff; border-radius: 6px; padding: 18px 16px; }
.g-photo { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; margin-bottom: 16px; }
.g-photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 4px; background: var(--sable); }
.g-photo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.g-photo label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--encre); border-radius: 99px; color: var(--encre); cursor: pointer; font-size: .95rem; }
.g-photo input:focus-visible + label { outline: 2px solid var(--corail); outline-offset: 3px; }
.g-seance { border: 1px solid var(--ligne); border-radius: 6px; padding: 12px; margin-bottom: 10px; }
.g-seance-activer { display: flex; align-items: center; gap: 10px; color: var(--encre); cursor: pointer; }
.g-seance-activer input { width: 20px; height: 20px; accent-color: var(--corail); margin: 0; }
.g-seance-activer small { color: var(--gris); font-size: .88rem; }
.g-seance .deux { margin-top: 10px; }
.g-seance .deux[hidden] { display: none; }
.g-seance .champ { margin-bottom: 0; }
.g-aide { color: var(--gris); font-size: .9rem; margin: -8px 0 14px; }
.g-formulaire .btn[type="submit"] { width: 100%; margin-top: 6px; }

.g-toast { position: fixed; left: 50%; bottom: 72px; z-index: 30; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; background: var(--encre); color: #fff; padding: 10px 18px; border-radius: 99px; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.g-toast.visible { opacity: 1; }

.g-confirmer { border: 0; border-radius: 8px; padding: 22px 20px; width: min(420px, calc(100% - 32px)); color: var(--texte); }
.g-confirmer::backdrop { background: rgba(22, 22, 22, .55); }
.g-confirmer p { color: var(--encre); margin-bottom: 18px; }

@media (min-width: 720px) {
  .g-nav { position: sticky; top: 56px; bottom: auto; max-width: 720px; margin: 0 auto; background: var(--sable); border-top: 0; border-bottom: 1px solid var(--ligne); z-index: 9; }
  .g-nav a { min-height: 48px; font-size: .98rem; border-top: 0; border-bottom: 2px solid transparent; }
  .g-nav a.actif { border-bottom-color: var(--corail); }
  .g-toast { bottom: 24px; }
  #vue { padding-bottom: 60px; }
  .g-principal { width: auto; }
}

@media (max-width: 380px) {
  .g-resume strong { font-size: 1.25rem; }
}
.g-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 12px; }

/* Version anglaise d'un cours, repliée tant qu'elle est vide */
details.g-anglais { margin: 4px 0 14px; padding-bottom: 4px; }

/* Onglet Comptes (2026-11-12) */
@media (max-width: 719px) { .g-nav a { font-size: .74rem; } }
.g-mois { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-bottom: 14px; }
.g-mois input { width: 100%; min-height: 40px; font: inherit; padding: 6px 10px; border: 1px solid var(--ligne); border-radius: 6px; background: #fff; text-align: center; }
.g-chiffres { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.g-chiffre { background: #fff; border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.g-chiffre span { color: var(--gris); font-size: .82rem; }
.g-chiffre strong { font-size: 1.25rem; font-weight: 500; color: var(--encre); }
.g-chiffre small { color: var(--gris); font-size: .76rem; }
.g-bouton-rapport { width: 100%; margin: 6px 0 18px; }
.g-a-noter { color: var(--corail); }
