/* guide.css — pages éditoriales (guides météo marine), thème sombre du site. */
:root {
  --bg: #0f1720;
  --panel: rgba(22, 30, 40, 0.92);
  --panel-solid: #161e28;
  --accent: #19a7ce;
  --text: #e7eef5;
  --muted: #93a4b5;
  --line: rgba(255, 255, 255, 0.1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.g-topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px;
  background: var(--panel); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.g-brand { font-weight: 700; font-size: 16px; color: var(--text); }
.g-cta {
  display: inline-block; padding: 8px 14px; border-radius: 10px;
  background: var(--accent); color: #06222e; font-weight: 600; font-size: 14px;
}
.g-cta:hover { text-decoration: none; filter: brightness(1.06); }
.g-right { display: flex; align-items: center; gap: 12px; }
.g-lang { font-size: 13px; font-weight: 600; color: var(--text); opacity: .75; }
.g-lang:hover { opacity: 1; text-decoration: none; }

main.g-wrap { max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; }
.g-kicker { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; margin: 8px 0 6px; }
h2 { font-size: 21px; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
.g-lead { font-size: 18px; color: var(--muted); margin: 6px 0 18px; }
p { margin: 12px 0; }
ul, ol { margin: 12px 0; padding-left: 22px; }
li { margin: 6px 0; }
blockquote {
  margin: 18px 0; padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(25, 167, 206, 0.08); border-radius: 0 8px 8px 0; color: var(--text);
}
.g-tip { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 18px 0; }
.g-tip b { color: var(--accent); }

.g-meta { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.g-divider { border: none; border-top: 1px solid var(--line); margin: 36px 0; }

.g-related { margin-top: 8px; }
.g-related h2 { margin-bottom: 10px; }
.g-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.g-card {
  display: block; padding: 14px 16px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--line); color: var(--text);
}
.g-card:hover { border-color: var(--accent); text-decoration: none; }
.g-card .t { font-weight: 600; }
.g-card .d { color: var(--muted); font-size: 13px; margin-top: 4px; }

.g-footer { border-top: 1px solid var(--line); padding: 22px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.g-footer a { margin: 0 8px; }

@media (max-width: 560px) { .g-cards { grid-template-columns: 1fr; } }

/* --- Visuels & exemples dans les guides --- */
.g-figure {
  margin: 22px 0; padding: 18px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  text-align: center;
}
.g-figure svg { max-width: 100%; height: auto; }
.g-figcaption { color: var(--muted); font-size: 13px; margin-top: 10px; }

.g-scale { height: 16px; border-radius: 8px;
  background: linear-gradient(90deg,#1f6fb2,#3f9fb0,#57b06a,#e8d24a,#e8893a,#d6453f,#9b3fae); }
.g-scale-row { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 6px; }

.g-table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.g-table th, .g-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.g-table th { background: rgba(25,167,206,0.10); color: var(--text); font-weight: 600; }
.g-table td { color: var(--muted); }

.g-example {
  background: rgba(25,167,206,0.06); border: 1px dashed rgba(25,167,206,0.45);
  border-radius: 12px; padding: 14px 16px; margin: 18px 0;
}
.g-example .x-lbl { color: var(--accent); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; display: block; margin-bottom: 4px; }

.barbule-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.barbule { text-align: center; }
.barbule .b-val { color: var(--text); font-weight: 600; margin-top: 4px; font-size: 13px; }
.barbule .b-sub { color: var(--muted); font-size: 11px; }
.barb-stroke { stroke: #cdd9e5; stroke-width: 2.4; stroke-linecap: round; fill: none; }
.barb-fill { fill: #cdd9e5; }
