/* ===========================
   GUIDE – style premium mobile
   =========================== */

/* Palette par défaut (nuit) */
:root {
  --g-bg: #0c0d10;
  --g-text: #ffffff;          /* Texte bien blanc pour la lecture */
  --g-muted: #bfc4d2;
  --g-accent: #d8b979;        /* Doré doux pour détails, pas le texte */
  --g-border: rgba(255,255,255,.14);
  --g-ghost: rgba(255,255,255,.08);
  --g-shadow: 0 10px 28px rgba(0,0,0,.35);
}

/* Variante jour (on garde le fond de cartes sombre translucide pour lire) */
.day-mode {
  --g-bg: #f2f2f4;
  --g-text: #101216;
  --g-muted: #5f6576;
  --g-accent: #7f6233;
  --g-border: rgba(0,0,0,.14);
  --g-ghost: rgba(0,0,0,.08);
  --g-shadow: 0 10px 22px rgba(0,0,0,.12);
}

body {
  background: var(--g-bg);
  color: var(--g-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Wrapper & titre */
.guide-wrap { max-width: 820px; margin: 10px auto 70px; padding: 0 14px; }
.guide-title {
  font-size: 28px; font-weight: 800; letter-spacing: .3px;
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 6px;
}
.gt-knot {
  width: 22px; height: 22px; border-radius: 6px;
  background: linear-gradient(160deg, rgba(216,185,121,.28), rgba(142,197,255,.18));
  box-shadow: inset 0 0 0 1px var(--g-border), 0 4px 12px rgba(0,0,0,.25);
}
.lead { color: var(--g-muted); margin-bottom: 12px; }

/* Sommaire */
.guide-toc {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin: 6px 0 18px;
}
.toc-item {
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  padding: 8px 12px;
  color: var(--g-text);
  background: rgba(0,0,0,.35);
  border: 1px solid var(--g-border);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.day-mode .toc-item { background: rgba(0,0,0,.18); }

/* Cartes : fond noir translucide + cadre (comme les prières) */
.guide-card {
  position: relative;
  display: grid; grid-template-columns: 56px 1fr; gap: 14px;
  background: rgba(0,0,0,.55);               /* 🖤 noir transparent pour lecture */
  border: 1px solid var(--g-border);          /* cadre fin */
  border-radius: 18px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: var(--g-shadow);
  backdrop-filter: blur(3px);
  color: #fff;                                 /* texte des cartes en blanc */
}
.day-mode .guide-card { background: rgba(0,0,0,.60); color: #fff; }

/* Variante avec petit liseré à gauche (optionnelle : ajoute .gaccent) */
.guide-card.gaccent {
  border-left: 3px solid var(--g-accent);
  padding-left: 14px;
}

/* Icône en médaillon */
.gc-icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  font-size: 24px; color: var(--g-accent);
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}

/* Titres de section (texte blanc, soulignement doré) */
.gc-title {
  font-size: 20px; font-weight: 800; letter-spacing: .2px;
  margin: 0 0 8px;
  position: relative; padding-bottom: 6px;
  color: #fff;
}
.gc-title::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 64px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--g-accent), rgba(255,255,255,.6));
}

/* Texte et paragraphes */
.gc-body p { margin: 6px 0; color: #fff; }
.bigline { font-size: 16px; font-weight: 700; margin: 4px 0 6px; color: #fff; }

/* ===== Listes joliment alignées ===== */

/* Puces propres (remplace les • trop collés à gauche) */
.gc-body ul.clean { list-style: none; margin: 8px 0; padding: 0; }
.gc-body ul.clean.bullets > li {
  position: relative;
  margin: 6px 0 6px 0;
  padding-left: 18px;                 /* texte bien aligné */
  color: #fff;
}
.gc-body ul.clean.bullets > li::before {
  content: "•";
  position: absolute; left: 0; top: 0.1em;
  font-size: 18px; line-height: 1;
  color: #fff; opacity: .85;
}

/* Listes numérotées (1. 2. 3.) aux petits oignons */
.gc-body ol {
  list-style: none; margin: 8px 0; padding: 0;
  counter-reset: item;
}
.gc-body ol > li {
  counter-increment: item;
  position: relative;
  margin: 8px 0;
  padding-left: 28px;                 /* texte aligné après le numéro */
  color: #fff;
}
.gc-body ol > li::before {
  content: counter(item) ".";
  position: absolute; left: 0; top: 0;
  width: 22px; text-align: right;     /* chiffres bien alignés */
  font-weight: 800; color: #fff; opacity: .95;
}

/* Étapes (badges ronds) — si tu utilises .steps */
.steps { list-style: none; margin: 6px 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; margin: 12px 0; color: #fff; }
.step-badge {
  width: 32px; height: 32px; border-radius: 999px;
  display: grid; place-items: center;
  background: linear-gradient(180deg, var(--g-accent), #b69154);
  color: #fff; font-weight: 800; font-size: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* FAQ */
.faq { background: rgba(255,255,255,.06); border: 1px solid var(--g-border); border-radius: 12px; padding: 10px 12px; margin: 8px 0; color: #fff; }
.faq > summary { cursor: pointer; font-weight: 700; color: #fff; }

/* Bouton footer */
.guide-footer { display: flex; justify-content: center; margin: 20px 0 44px; }
.btn-main {
  display: inline-block; text-decoration: none;
  background: linear-gradient(180deg, var(--g-accent), #b69154);
  color: #fff; font-weight: 800; letter-spacing: .2px;
  padding: 12px 18px; border-radius: 14px;
  box-shadow: 0 10px 20px rgba(0,0,0,.22);
}

/* Icônes perso (si tu remplaces les emojis) */
/*
.ico-rosary  { color: transparent; background: rgba(255,255,255,.10) url("../img/icons/rosary.svg")   no-repeat center/28px; }
.ico-full    { color: transparent; background: rgba(255,255,255,.10) url("../img/icons/full.svg")     no-repeat center/28px; }
.ico-start   { color: transparent; background: rgba(255,255,255,.10) url("../img/icons/start.svg")    no-repeat center/28px; }
.ico-gesture { color: transparent; background: rgba(255,255,255,.10) url("../img/icons/gesture.svg")  no-repeat center/28px; }
.ico-settings{ color: transparent; background: rgba(255,255,255,.10) url("../img/icons/settings.svg") no-repeat center/28px; }
.ico-faq     { color: transparent; background: rgba(255,255,255,.10) url("../img/icons/faq.svg")      no-repeat center/28px; }
*/
/* --- Hero (cadre du titre + sommaire) --- */
.guide-hero{
  background: rgba(0,0,0,.55);
  color:#fff;
  border:1px solid var(--g-border);
  border-radius:18px;
  padding:16px;
  margin: 10px 0 16px;
  box-shadow: var(--g-shadow);
  backdrop-filter: blur(3px);
  text-align: center; /* titre + sommaire centrés */
}
.day-mode .guide-hero{ background: rgba(0,0,0,.60); }

/* --- Cartes : texte bien à gauche --- */
.guide-card .gc-body{ text-align:left; }
.guide-card .gc-body h3{ margin:4px 0 4px; }

/* --- Steps ronds : aucune numérotation texte à côté --- */
.steps{ list-style:none; margin:6px 0; padding:0; }
.steps li{ display:grid; grid-template-columns:32px 1fr; gap:10px; margin:12px 0; color:#fff; }
.step-badge{
  width:32px; height:32px; border-radius:999px;
  display:grid; place-items:center;
  background: linear-gradient(180deg, var(--g-accent), #b69154);
  color:#fff; font-weight:800; font-size:14px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}

/* --- Évite la double numérotation sur d'autres listes (ne pas cibler .steps) --- */
.gc-body ol{ list-style: none; margin:8px 0; padding:0; counter-reset:item; }
.gc-body ol > li{ counter-increment:item; position:relative; margin:8px 0; padding-left:28px; color:#fff; }
.gc-body ol > li::before{
  content: counter(item) ".";
  position:absolute; left:0; top:0;
  width:22px; text-align:right; font-weight:800; color:#fff; opacity:.95;
}
.steps ol, .steps li::before { content:none !important; } /* sécurité */

/* --- Puces propres + petite liste des sets --- */
.gc-body ul.clean{ list-style:none; margin:8px 0; padding:0; }
.gc-body ul.clean.bullets > li{
  position:relative; margin:6px 0; padding-left:18px; color:#fff;
}
.gc-body ul.clean.bullets > li::before{
  content:"•"; position:absolute; left:0; top:.1em; font-size:18px; line-height:1; color:#fff; opacity:.85;
}
.gc-body ul.sets > li{ opacity:.95; }

/* --- Titre principal centré --- */
.guide-title{ text-align:center; }
/* ===== Correctifs guide mobile (menu d'aide du haut) ===== */

/* En-tête au-dessus du contenu et espacement propre */
.guide-page .app-header { position: relative; z-index: 50; }
.guide-page .logo-strip {
  min-height: 60px;
  display: flex; align-items: center;
  padding: 8px 12px;
  background: linear-gradient(180deg, rgba(0,0,0,.45), transparent);
}
.guide-page .cm-topright {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 8px;
}

/* Conteneur principal : petit padding top pour dégager le 1er cadre */
.guide-wrap { padding-top: 10px; }

/* Le “chapeau” (titre + sommaire) en carte lisible et centrée */
.guide-hero{
  background: rgba(0,0,0,.55);
  color:#fff;
  border:1px solid var(--g-border);
  border-radius:18px;
  padding:16px;
  margin: 10px 0 16px;
  box-shadow: var(--g-shadow);
  backdrop-filter: blur(3px);
  text-align: center;          /* titre et sommaire centrés */
  overflow: visible;           /* pas de coupe des coins */
}
.day-mode .guide-hero{ background: rgba(0,0,0,.60); }

/* Titre principal bien centré */
.guide-title{ text-align: center; margin-top: 0; }

/* Sommaire : pills centrées qui passent à la ligne proprement */
.guide-toc{
  display:flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.toc-item{
  display:inline-block;
  text-decoration:none;
  font-size:13px; font-weight:600;
  padding: 8px 12px;
  color:#fff; background: rgba(0,0,0,.35);
  border:1px solid var(--g-border);
  border-radius:999px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.day-mode .toc-item{ background: rgba(0,0,0,.18); color:#fff; }

/* Sections ciblées par le sommaire : offset pour ne pas passer sous le header */
.guide-wrap section[id]{ scroll-margin-top: 90px; }

/* Cartes : ne jamais couper le contenu */
.guide-card{ overflow: visible; }

/* Steps ronds (1-2-3) sans numérotation texte parasite */
.steps{ list-style:none; margin:6px 0; padding:0; }
.steps li{
  display:grid; grid-template-columns:32px 1fr;
  gap:10px; margin:12px 0; color:#fff; text-align:left;
}
.step-badge{
  width:32px; height:32px; border-radius:999px;
  display:grid; place-items:center;
  background: linear-gradient(180deg, var(--g-accent), #b69154);
  color:#fff; font-weight:800; font-size:14px;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
/* sécurité anti double-numérotation */
.steps ol, .steps li::before { content:none !important; }
