/* Page Guide : long document illustré, sommaire collant sur grand écran. */
.guide{max-width:var(--maxw); margin:0 auto; padding:48px var(--gutter) 80px;}
.guide-tete{max-width:820px; margin:0 0 40px;}
.guide-tete .eyebrow{font-size:13px; font-weight:600; letter-spacing:.09em; text-transform:uppercase; color:var(--accent); margin:0 0 14px;}
.guide-tete h1{font-size:clamp(34px,5.6vw,56px); font-weight:700; letter-spacing:-.028em; line-height:1.06; margin:0 0 18px; text-wrap:balance;}
.guide-tete .lead{font-size:clamp(18px,2.2vw,21px); color:var(--muted); line-height:1.55; margin:0 0 14px;}
.guide-tete .updated{color:var(--muted); font-size:14px; margin:0;}

.guide-corps{display:grid; grid-template-columns:250px minmax(0,1fr); gap:56px; align-items:start;}
.sommaire{position:sticky; top:84px; max-height:calc(100vh - 100px); overflow:auto; padding-right:6px;}
.sommaire summary{font-size:13px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
  cursor:pointer; list-style:none; margin:0 0 10px;}
.sommaire summary::-webkit-details-marker{display:none;}
.sommaire ol{list-style:none; margin:0; padding:0; counter-reset:s;}
.sommaire li{counter-increment:s;}
.sommaire a{display:flex; gap:10px; padding:6px 10px; border-radius:8px; color:var(--ink); text-decoration:none;
  font-size:14.5px; line-height:1.35; opacity:.78;}
.sommaire a::before{content:counter(s); min-width:18px; color:var(--accent); font-weight:600; font-variant-numeric:tabular-nums;}
.sommaire a:hover{background:var(--panel); opacity:1;}
.sommaire a.actif{background:var(--panel2); opacity:1; font-weight:600;}

.guide-texte{max-width:820px; min-width:0;}
.guide-texte section{padding-top:8px; scroll-margin-top:84px; margin-bottom:28px; display:flow-root;}
.guide-texte h2{font-size:clamp(24px,3vw,32px); font-weight:700; letter-spacing:-.02em; line-height:1.15;
  margin:40px 0 16px; display:flex; align-items:center; gap:14px; flex-wrap:wrap;}
.guide-texte h2 .num{display:inline-grid; place-items:center; width:38px; height:38px; border-radius:50%;
  background:var(--accent); color:#fff; font-size:17px; font-weight:700; flex:none;}
.guide-texte h3{font-size:19px; font-weight:650; margin:28px 0 8px;}
.guide-texte p,.guide-texte li,.guide-texte dd{font-size:17px; line-height:1.65; color:#38342f;}
.guide-texte p{margin:0 0 14px;}
.guide-texte ul,.guide-texte ol{padding-left:24px; margin:0 0 16px;}
.guide-texte li{margin:0 0 6px;}
.guide-texte pre{background:var(--dark); color:var(--dark-ink); padding:14px 18px; border-radius:12px; overflow:auto;
  font-size:15px; margin:0 0 16px;}

.badge-pro{font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:#fff;
  background:linear-gradient(90deg,#1fb6ff,#8b5cf6); padding:4px 10px; border-radius:999px;}

/* Figures */
.guide-texte figure{margin:8px 0 22px;}
.guide-texte figure img{display:block; border-radius:12px; border:1px solid var(--line);
  box-shadow:0 12px 32px rgba(20,17,14,.12); background:#0b1220;}
.guide-texte figcaption{font-size:14px; color:var(--muted); margin-top:9px;}
.guide-texte figure.large img{width:100%;}
.guide-texte figure.cote{float:right; width:min(42%,340px); margin:6px 0 18px 28px;}
.guide-texte figure.cote img{width:100%;}
.guide-texte figure.moyen{max-width:640px; margin-left:auto; margin-right:auto; clear:both;}
.guide-texte figure.moyen img{width:100%;}
.guide-texte figure.etroit{max-width:528px;}
.guide-texte figure img{cursor:zoom-in;}

/* Agrandissement d'une image au clic, au milieu de l'écran */
.loupe{position:fixed; inset:0; z-index:200; background:rgba(10,8,6,.86); display:flex; align-items:center;
  justify-content:center; padding:3vh 3vw; cursor:zoom-out; opacity:0; transition:opacity .18s ease;}
.loupe.ouverte{opacity:1;}
.loupe img{max-width:100%; max-height:100%; width:auto; height:auto; border-radius:10px; cursor:default;
  box-shadow:0 20px 60px rgba(0,0,0,.5); transform:scale(.97); transition:transform .18s ease;}
.loupe.ouverte img{transform:scale(1);}
/* Image très haute (une colonne du logiciel) : largeur confortable, on fait défiler */
.loupe.haute{align-items:flex-start; overflow-y:auto; padding:4vh 3vw 8vh;}
.loupe.haute img{max-height:none; width:min(460px,92vw);}
.loupe.haute p{position:fixed;}
.loupe p{position:absolute; left:0; right:0; bottom:10px; margin:0; text-align:center; color:#e9e4dd; font-size:14px;}

.duo{display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; margin:8px 0 22px; clear:both;}
.duo figure{margin:0;}
.duo figure img{width:100%;}

/* Encadrés */
.guide-texte .note,.guide-texte .astuce{padding:14px 18px; border-radius:12px; font-size:16px; clear:both;}
.guide-texte .note{background:#fff4ec; border-left:4px solid var(--accent);}
.guide-texte .astuce{background:var(--panel); border-left:4px solid #2a9d5c;}

/* Repères numérotés de la vue d'ensemble */
ol.reperes{list-style:none; padding:0; counter-reset:r;}
ol.reperes li{counter-increment:r; position:relative; padding-left:42px; margin-bottom:12px;}
ol.reperes li::before{content:counter(r); position:absolute; left:0; top:2px; width:28px; height:28px; border-radius:50%;
  background:var(--accent); color:#fff; font-weight:700; font-size:14px; display:grid; place-items:center;}

/* Listes de définitions (groupes, onglets) */
dl.groupes{margin:0 0 18px;}
dl.groupes dt{font-weight:650; font-size:17px; margin-top:14px;}
dl.groupes dd{margin:2px 0 0;}

/* Tableau gratuit / Pro */
.tableau{overflow-x:auto; margin:0 0 18px;}
.tableau table{border-collapse:collapse; width:100%; font-size:15.5px;}
.tableau th,.tableau td{padding:10px 12px; border-bottom:1px solid var(--line); text-align:left;}
.tableau th{font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted);}
.tableau td:nth-child(n+2),.tableau th:nth-child(n+2){text-align:center; width:84px;}

/* Questions fréquentes */
.guide-texte .faq details{border-bottom:1px solid var(--line); padding:4px 0;}
.guide-texte .faq summary{cursor:pointer; font-weight:600; font-size:17px; padding:12px 0;}
.guide-texte .faq details > div{padding:0 0 8px;}

@media (max-width:980px){
  .guide-corps{grid-template-columns:1fr; gap:0;}
  .sommaire{position:static; max-height:none; margin:0 0 24px; padding:14px 16px; border:1px solid var(--line);
    border-radius:14px; background:var(--panel);}
  .sommaire summary{margin:0;}
  .sommaire details[open] summary{margin-bottom:10px;}
}
@media (max-width:640px){
  .guide{padding-top:32px;}
  .guide-texte figure.cote{float:none; width:100%; max-width:420px; margin:6px 0 18px;}
  .duo{grid-template-columns:1fr;}
  .guide-texte p,.guide-texte li,.guide-texte dd{font-size:16.5px;}
}
