/* ── Guide pages — styles partagés ── */
/* Thème aligné sur style.css (pierre / cuivre) — mêmes noms de variables,
   nouvelles valeurs, pour que les 6 pages guides reprennent le design du site. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue-900:#1c1a18; --blue-700:#3d3935; --blue-600:#8a5f38; --blue-100:#f0e6d8; --blue-50:#faf6f1;
  --orange-500:#c4956a; --green-600:#16a34a; --green-100:#dcfce7;
  --red-100:#fee2e2; --red-700:#b91c1c;
  --yellow-100:#fef9c3; --yellow-700:#a16207;
  --gray-900:#1c1a18; --gray-700:#3d3935; --gray-600:#504c47; --gray-500:#6b6660;
  --gray-200:#ddd8d0; --gray-100:#edeae4; --gray-50:#f7f4ef; --white:#fdfbf8;
  --copper:#c4956a; --copper-300:#d4b090;
  --shadow-sm:0 1px 3px rgba(0,0,0,.07); --shadow-md:0 4px 16px rgba(0,0,0,.09);
  --radius:10px; --max-w:820px;
}
html { scroll-behavior: smooth; }
body { font-family:'Inter',system-ui,sans-serif; color:var(--gray-900); background:var(--gray-50); line-height:1.7; font-size:16px; }

/* ── Header guide ── */
.guide-header { position:relative; overflow:hidden; background:linear-gradient(135deg,var(--blue-900),var(--blue-700)); color:white; padding:40px 20px 32px; }
.guide-header::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(196,149,106,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,149,106,.06) 1px, transparent 1px);
  background-size:60px 60px;
}
.guide-header::after {
  content:''; position:absolute; bottom:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg, transparent, var(--copper), transparent);
}
.guide-header-inner { position:relative; max-width:var(--max-w); margin:0 auto; }
.guide-back { display:inline-flex; align-items:center; gap:6px; font-size:.85rem; color:rgba(255,255,255,.75); text-decoration:none; margin-bottom:20px; transition:color .2s; }
.guide-back:hover { color:white; }
.guide-tag { display:inline-block; background:rgba(196,149,106,.15); border:1px solid rgba(196,149,106,.35); border-radius:2px; padding:3px 12px; font-size:.78rem; font-weight:600; color:var(--copper-300); margin-bottom:12px; }
.guide-header h1 { font-size:clamp(1.5rem,4vw,2.2rem); font-weight:800; margin-bottom:8px; letter-spacing:-.01em; }
.guide-header p { font-size:1rem; opacity:.85; max-width:600px; }
.guide-meta { display:flex; flex-wrap:wrap; gap:16px; margin-top:20px; }
.guide-meta-item { display:flex; align-items:center; gap:6px; font-size:.83rem; opacity:.8; }

/* ── TOC ── */
.guide-toc { background:var(--white); border:1px solid var(--gray-200); border-radius:var(--radius); padding:24px; margin-bottom:32px; }
.guide-toc h3 { font-size:.9rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--gray-500); margin-bottom:14px; }
.guide-toc ol { padding-left:20px; display:flex; flex-direction:column; gap:6px; }
.guide-toc li { font-size:.9rem; }
.guide-toc a { color:var(--blue-600); text-decoration:none; }
.guide-toc a:hover { text-decoration:underline; }

/* ── Body layout ── */
.guide-body { max-width:var(--max-w); margin:0 auto; padding:40px 20px 80px; }

/* ── Sections ── */
.guide-section { background:var(--white); border-radius:var(--radius); box-shadow:var(--shadow-sm); padding:32px; margin-bottom:24px; scroll-margin-top:80px; }
.guide-section h2 { font-size:1.25rem; font-weight:800; color:var(--gray-900); margin-bottom:16px; padding-bottom:12px; border-bottom:2px solid var(--blue-100); display:flex; align-items:center; gap:10px; }
.guide-section h3 { font-size:1rem; font-weight:700; color:var(--gray-900); margin:20px 0 10px; }
.guide-section p { font-size:.93rem; color:var(--gray-700); margin-bottom:12px; }
.guide-section ul, .guide-section ol { padding-left:20px; margin-bottom:12px; display:flex; flex-direction:column; gap:6px; }
.guide-section li { font-size:.93rem; color:var(--gray-700); }
.guide-section strong { color:var(--gray-900); }

/* ── Tableaux ── */
.guide-table { width:100%; border-collapse:collapse; margin:16px 0; font-size:.88rem; }
.guide-table th { background:var(--blue-50); color:var(--blue-900); font-weight:700; padding:10px 12px; text-align:left; border:1px solid var(--blue-100); }
.guide-table td { padding:9px 12px; border:1px solid var(--gray-200); vertical-align:top; }
.guide-table tr:nth-child(even) td { background:var(--gray-50); }

/* ── Alertes ── */
.alert { border-radius:8px; padding:14px 16px; margin:16px 0; font-size:.9rem; line-height:1.6; }
.alert-blue   { background:var(--blue-50);   border-left:3px solid var(--blue-600); }
.alert-green  { background:var(--green-100); border-left:3px solid var(--green-600); }
.alert-yellow { background:var(--yellow-100);border-left:3px solid #ca8a04; }
.alert-red    { background:var(--red-100);   border-left:3px solid var(--red-700); }

/* ── Checklist pièces ── */
.pieces-list { display:flex; flex-direction:column; gap:12px; }
.piece-item { display:grid; grid-template-columns:80px 1fr; gap:12px; align-items:start; padding:14px; background:var(--gray-50); border-radius:8px; border:1px solid var(--gray-200); }
.piece-ref { font-size:.75rem; font-weight:800; color:var(--blue-600); background:var(--blue-100); padding:4px 8px; border-radius:4px; text-align:center; }
.piece-content strong { display:block; font-size:.9rem; margin-bottom:4px; }
.piece-content span { font-size:.83rem; color:var(--gray-600); }

/* ── Détail pièce (contenu détaillé sous chaque pièce) ── */
.piece-detail { grid-column:1/-1; margin-top:10px; padding:14px 16px; background:var(--white); border:1px solid var(--blue-100); border-left:3px solid var(--blue-600); border-radius:6px; }
.piece-detail h4 { font-size:.82rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--blue-600); margin-bottom:8px; }
.piece-detail ul { padding-left:18px; display:flex; flex-direction:column; gap:4px; margin-bottom:0; }
.piece-detail li { font-size:.83rem; color:var(--gray-700); }

/* ── Erreurs ── */
.errors-list { display:flex; flex-direction:column; gap:10px; }
.error-item { display:flex; gap:12px; padding:12px 14px; background:var(--red-100); border-radius:8px; font-size:.88rem; }
.error-item::before { content:'⚠️'; flex-shrink:0; }

/* ── CTA bas de page ── */
.guide-cta { position:relative; overflow:hidden; background:linear-gradient(135deg,var(--blue-900),var(--blue-700)); border-radius:var(--radius); padding:36px; color:white; text-align:center; margin-top:32px; }
.guide-cta::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(196,149,106,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196,149,106,.08) 1px, transparent 1px);
  background-size:40px 40px;
}
.guide-cta h3, .guide-cta p, .guide-cta .btn { position:relative; }
.guide-cta h3 { font-size:1.2rem; font-weight:800; margin-bottom:10px; }
.guide-cta p  { font-size:.93rem; opacity:.85; margin-bottom:24px; }
.guide-cta .btn { display:inline-flex; align-items:center; gap:8px; padding:13px 28px; background:var(--orange-500); color:white; border-radius:4px; font-weight:700; font-size:.95rem; text-decoration:none; transition:all .2s; border:none; cursor:pointer; }
.guide-cta .btn:hover { background:#a07040; transform:translateY(-1px); box-shadow:0 8px 24px rgba(196,149,106,.35); }

/* ── Sticky header ── */
.guide-sticky { position:sticky; top:0; z-index:50; background:rgba(255,255,255,.97); backdrop-filter:blur(8px); border-bottom:1px solid var(--gray-200); padding:10px 20px; display:flex; align-items:center; justify-content:space-between; }
.guide-sticky-title { font-size:.9rem; font-weight:700; color:var(--gray-900); }
.guide-sticky a { font-size:.85rem; color:var(--blue-600); text-decoration:none; }

@media(max-width:600px) {
  .guide-section { padding:20px; }
  .piece-item { grid-template-columns:1fr; }
}
