/* ══════════════════════════════════════════════════════
   VerboApp — feuille des guides (pages /guides/…)
   Chargée APRÈS main.css, uniquement sur les guides.
   - Toutes les classes portent le préfixe g- : aucune collision possible
     avec main.css (CLAUDE.md §7.4, piège .roles-grid de FinitoApp).
   - Aucune couleur en dur : uniquement les tokens de main.css (§3.1).
   - Réutilise tel quel ce qui existe déjà : .card, .panel, .btn,
     .section-label, .cta-panel, .faq-list / .faq-item.
   ══════════════════════════════════════════════════════ */

.g-page { padding: var(--sp-5) 0 var(--sp-7); }
.g-article { max-width: 760px; margin: 0 auto; }
.g-article.is-wide { max-width: 980px; }

/* ─── Fil d'Ariane ─── */
.g-crumb { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
           font-size: 0.82rem; color: var(--ink-mute); margin-bottom: var(--sp-4); }
.g-crumb li + li::before { content: "›"; margin-right: 0.35rem; color: var(--ink-mute); }
.g-crumb a { color: var(--p-800); text-decoration: none; }
.g-crumb a:hover { text-decoration: underline; }
.g-crumb [aria-current="page"] { color: var(--ink-body); }

/* ─── En-tête de l'article ─── */
.g-article h1 { font-family: 'Cormorant Garamond', serif; font-weight: 600;
                font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; letter-spacing: -0.01em;
                color: var(--ink); margin-bottom: var(--sp-2); }
/* Italique en graisse 400 : la seule italique livrée (§4.1) */
.g-article h1 em, .g-body h2 em { font-style: italic; font-weight: 400; color: var(--p-800); }
.g-meta { font-size: 0.82rem; color: var(--ink-mute); margin-bottom: var(--sp-4); }
.g-intro { font-size: 1.08rem; line-height: 1.7; color: var(--ink-body); margin-bottom: var(--sp-4); }

/* ─── L'essentiel ─── */
.g-takeaways { margin-bottom: var(--sp-5); }
.g-takeaways h2 { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; font-weight: 700;
                  letter-spacing: 0.14em; text-transform: uppercase; color: var(--s-900);
                  margin-bottom: var(--sp-2); }
.g-takeaways ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.g-takeaways li { position: relative; padding-left: 1.6rem; font-size: 0.95rem; line-height: 1.6;
                  color: var(--ink-body); }
.g-takeaways li::before { content: "✓"; position: absolute; left: 0; top: 0;
                          font-weight: 700; color: var(--s-800); }

/* ─── Corps de l'article ─── */
.g-body h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600;
             font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; color: var(--ink);
             margin: var(--sp-6) 0 var(--sp-2); }
.g-body h2:first-child { margin-top: 0; }
.g-body h3 { font-family: 'DM Sans', sans-serif; font-size: 1.05rem; font-weight: 700;
             color: var(--ink); margin: var(--sp-4) 0 var(--sp-1); }
.g-body p, .g-body li { font-size: 0.98rem; line-height: 1.75; color: var(--ink-body); }
.g-body p + p { margin-top: var(--sp-2); }
.g-body ul, .g-body ol { padding-left: 1.3rem; margin: var(--sp-2) 0; }
.g-body li { margin-bottom: 0.4rem; }
.g-body li::marker { color: var(--p-700); }
.g-body strong { color: var(--ink); }
/* Liens du texte seulement : .btn garde son libellé blanc */
.g-body p a, .g-body li a, .g-body td a { color: var(--p-800); }

/* ─── Tableaux ─── */
.g-table-wrap { overflow-x: auto; margin: var(--sp-3) 0; border-radius: var(--r-md);
                background: rgba(var(--white-rgb), 0.6);
                border: 0.5px solid rgba(var(--p-rgb), 0.22);
                box-shadow: 0 10px 30px rgba(var(--p-rgb), 0.06); }
.g-table { width: 100%; min-width: 540px; border-collapse: collapse; font-size: 0.9rem; }
.g-table th { text-align: left; font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 700;
              letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
              background: rgba(var(--p-rgb), 0.08); padding: 0.75rem 0.9rem; }
.g-table td { padding: 0.7rem 0.9rem; line-height: 1.55; vertical-align: top; color: var(--ink-body);
              border-top: 0.5px solid rgba(var(--p-rgb), 0.16); }
.g-table td:first-child { font-weight: 600; color: var(--ink); }

/* ─── Encadrés ─── */
.g-note { margin: var(--sp-4) 0; padding: 1.1rem 1.3rem; border-radius: var(--r-md);
          background: rgba(var(--s-rgb), 0.08);
          border: 1px solid rgba(var(--s-rgb), 0.24); border-left: 4px solid var(--s-700); }
.g-note.is-warn { background: rgba(var(--p-rgb), 0.07);
                  border-color: rgba(var(--p-rgb), 0.24); border-left-color: var(--p-700); }
.g-body .g-note p { font-size: 0.95rem; line-height: 1.65; color: var(--ink); }

/* Citation d'exemple (mention type au PV) */
.g-quote { margin: var(--sp-3) 0; padding: 1.1rem 1.3rem; border-radius: var(--r-md);
           background: rgba(var(--white-rgb), 0.65);
           border: 0.5px solid rgba(var(--p-rgb), 0.22); border-left: 4px solid var(--p-800); }
.g-body .g-quote p { color: var(--ink); font-size: 0.95rem; }

/* ─── Exemple à éviter / à suivre ─── */
.g-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin: var(--sp-3) 0; }
.g-example { border-radius: var(--r-md); padding: 1rem 1.2rem; }
.g-example.is-bad  { background: rgba(var(--danger-rgb), 0.05);
                     border: 1px solid rgba(var(--danger-rgb), 0.16); }
.g-example.is-good { background: rgba(var(--s-rgb), 0.08);
                     border: 1px solid rgba(var(--s-rgb), 0.24); }
.g-example-label { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em;
                   text-transform: uppercase; margin-bottom: 0.4rem; }
.is-bad  .g-example-label { color: var(--danger-ink); }
.is-good .g-example-label { color: var(--s-900); }
.g-body .g-example p { font-size: 0.92rem; line-height: 1.6; color: var(--ink); }

/* ─── Étapes numérotées ─── */
.g-body .g-steps { list-style: none; padding-left: 0; counter-reset: g-step; margin: var(--sp-3) 0; }
.g-steps li { counter-increment: g-step; position: relative; padding-left: 3rem;
              margin-bottom: var(--sp-3); }
.g-steps li::before { content: counter(g-step); position: absolute; left: 0; top: 0.1rem;
                      width: 2rem; height: 2rem; border-radius: 50%;
                      display: flex; align-items: center; justify-content: center;
                      font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.1rem;
                      color: var(--white);
                      background: var(--p-800);
                      box-shadow: 0 6px 16px rgba(var(--p-rgb), 0.22); }
.g-steps li strong { display: block; }

/* ─── Bloc de téléchargement ─── */
.g-download { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: center;
              padding: var(--sp-4); margin: var(--sp-4) 0; }
.g-download-icon { width: 64px; height: 64px; border-radius: 18px;
                   display: flex; align-items: center; justify-content: center;
                   background: var(--p-800);
                   box-shadow: 0 6px 18px rgba(var(--p-rgb), 0.22); }
.g-download-icon svg { width: 30px; height: 30px; stroke: var(--white); }
.g-download-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.6rem;
                    line-height: 1.2; color: var(--ink); margin-bottom: 0.3rem; }
.g-download-text { font-size: 0.95rem; line-height: 1.65; color: var(--ink-body);
                   margin-bottom: var(--sp-3); }
.g-download-meta { font-size: 0.8rem; color: var(--ink-mute); margin-top: 0.6rem; }

/* ─── Appel à l'action et FAQ en fin d'article ─── */
.g-cta { margin-top: var(--sp-6); }
.g-faq { margin-top: var(--sp-6); }
.g-faq > h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600;
              font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; color: var(--ink); }
.g-faq .faq-list { margin-top: var(--sp-3); }

.g-disclaimer { font-size: 0.8rem; line-height: 1.6; color: var(--ink-mute); margin-top: var(--sp-4); }

/* ─── Guide précédent / suivant ─── */
.g-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); margin-top: var(--sp-5); }
.g-prevnext a { display: block; padding: 1rem 1.2rem; text-decoration: none;
                transition: box-shadow .2s ease; }
.g-prevnext a:hover { box-shadow: 0 2px 0 rgba(var(--white-rgb), 0.78) inset,
                                  0 16px 40px rgba(var(--p-rgb), 0.16); }
.g-prevnext .is-next { grid-column: 2; text-align: right; }
.g-prevnext-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
                    text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.2rem; }
.g-prevnext-title { display: block; font-family: 'Cormorant Garamond', serif; font-weight: 600;
                    font-size: 1.2rem; line-height: 1.25; color: var(--ink); }

/* ─── Page d'accueil des guides ─── */
.g-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); margin-top: var(--sp-4); }
.g-card { display: flex; flex-direction: column; text-decoration: none; transition: box-shadow .2s ease; }
.g-card:hover { box-shadow: 0 2px 0 rgba(var(--white-rgb), 0.78) inset,
                            0 16px 40px rgba(var(--p-rgb), 0.16); }
.g-card-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
              color: var(--s-900); margin-bottom: 0.5rem; }
.g-card-title { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 1.45rem;
                line-height: 1.2; color: var(--ink); margin-bottom: 0.5rem; }
.g-card-text { flex: 1; font-size: 0.9rem; line-height: 1.6; color: var(--ink-body); }
.g-card-more { margin-top: var(--sp-2); font-size: 0.86rem; font-weight: 600; color: var(--p-800); }

/* ══════════════════════════════════════════
   RESPONSIVE — mêmes points de rupture que main.css (768 / 480), synchronisés avec le JS
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
  .g-page { padding: var(--sp-4) 0 var(--sp-6); }
  .g-compare, .g-grid, .g-prevnext { grid-template-columns: 1fr; }
  .g-prevnext .is-next { grid-column: auto; text-align: left; }
  .g-download { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .g-download { padding: var(--sp-3); }
  .g-body h2 { margin-top: var(--sp-5); }
}
