/* ═══════════════════════════════════════════════════════════════
   HOSTIP.FR — stylesheet
   Dark-only redesign based on Claude Design export.
   Palette + fonts in css/tokens.css. This file adds page-specific
   tokens and all section styles.
═══════════════════════════════════════════════════════════════ */

:root {
  /* Page-specific tokens (not shared with legal pages). */
  --proton-from: #10B981;
  --proton-mid:  #059669;
  --proton-to:   #047857;
  --proton-shadow: rgba(5, 150, 105, 0.5);

  --cyan:   #22D3EE;
  --violet: #A78BFA;

  --header-bg: rgba(10, 14, 26, 0.72);
  --leaflet-attribution-bg: rgba(16, 22, 42, 0.85);
}

* , *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; touch-action: manipulation; }

body {
  margin: 0;
  font-family: var(--font-display);
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(79, 139, 255, 0.10), transparent 60%),
    radial-gradient(800px 400px at 85% 20%, rgba(167, 139, 250, 0.06), transparent 60%),
    var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "ss02", "cv11";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(79, 139, 255, 0.35); }

.mono { font-family: var(--font-mono); font-feature-settings: "zero"; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: #06101F;
  padding: 8px 16px; z-index: 10000;
  font-weight: 600; text-decoration: none;
  border-radius: 0 0 8px 0; transition: top .2s;
}
.skip-link:focus { top: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CONTAINER
═══════════════════════════════════════════════════════════════ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   TOPNAV
═══════════════════════════════════════════════════════════════ */

.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
}

.topnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.brand-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  flex-shrink: 0;
}

.brand-accent { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  padding: 8px 14px;
  color: var(--fg-muted);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}

.nav-links a:hover {
  color: var(--fg);
  background: var(--elev);
}

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  background: var(--elev);
  color: var(--fg-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-burger:hover { color: var(--fg); }

@media (max-width: 720px) {
  .nav-burger { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    gap: 2px;
    background: var(--elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-top: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */

.hero {
  padding: 72px 0 40px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 720px) {
  .hero { padding: 40px 0 24px; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(79, 139, 255, 0.08);
  border: 1px solid rgba(79, 139, 255, 0.22);
  color: var(--accent-strong);
  border-radius: 100px;
  font-size: 13px;
}

.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 139, 255, 0.18);
  animation: hero-pulse 2s infinite;
}

@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(79, 139, 255, 0.18); }
  50%      { box-shadow: 0 0 0 8px rgba(79, 139, 255, 0.06); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  margin: 24px 0 20px;
  text-wrap: balance;
}

.hero-title-accent {
  color: var(--fg-dim);
  font-style: italic;
  font-weight: 400;
}

.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.5;
  text-wrap: pretty;
}

/* IP cards (IPv4 / IPv6) */
.ipcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
  text-align: left;
}

@media (max-width: 720px) {
  .ipcards { grid-template-columns: 1fr; }
}

.ipcard {
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  color: var(--fg);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
  position: relative;
  overflow: hidden;
}

.ipcard:hover {
  border-color: var(--border-strong);
  background: var(--elev-2);
  transform: translateY(-1px);
}

.ipcard-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ipcard-tag {
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ipcard-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ok);
}

.ipcard-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.ipcard-value {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  margin: 14px 0 18px;
  letter-spacing: -0.01em;
  word-break: break-all;
  line-height: 1.2;
}

.ipcard-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  gap: 12px;
}

.ipcard-label {
  font-size: 13px;
  color: var(--fg-muted);
}

.ipcard-cta {
  font-size: 13px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Proton affiliate banner */
.proton-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  margin: 4px 0 28px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(600px 140px at 100% 0%, rgba(255, 255, 255, 0.12), transparent 60%),
    linear-gradient(92deg, var(--proton-from) 0%, var(--proton-mid) 45%, var(--proton-to) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px -18px var(--proton-shadow),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}

.proton-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 200px at 0% 100%, rgba(52, 211, 153, 0.28), transparent 60%);
  pointer-events: none;
}

.proton-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 48px -18px var(--proton-shadow),
              inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.proton-shield {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  flex-shrink: 0;
}

.proton-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.proton-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.proton-brand { color: rgba(255, 255, 255, 0.75); font-weight: 400; }

.proton-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.proton-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.proton-banner:hover .proton-cta {
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 720px) {
  .proton-banner { grid-template-columns: auto 1fr; padding: 14px 16px; }
  .proton-cta { grid-column: 1 / -1; justify-self: start; }
}

/* "Ou analysez une autre IP" divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 16px;
  color: var(--fg-dim);
  font-size: 13px;
}
.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Analyze form */
.analyze-form {
  text-align: left;
  max-width: 760px;
  margin: 0 auto;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 8px 8px 18px;
  transition: border-color .15s, box-shadow .2s;
}

.input-row:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-weak);
}

.input-row-icon {
  color: var(--fg-dim);
  display: inline-flex;
}

.input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 15px;
  outline: none;
  padding: 10px 0;
}

.input::placeholder { color: var(--fg-dim); }

.input.is-glow { box-shadow: 0 0 0 3px var(--accent-weak); border-radius: 6px; }

.analyze-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #06101F;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.analyze-btn:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.analyze-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.chip {
  background: var(--elev-2);
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover {
  background: var(--bg);
  color: var(--fg);
  border-color: var(--border-strong);
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
  min-height: 70px;
  margin-top: 14px;
}
.cf-turnstile { margin: 0 auto; }

.form-error {
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bad-weak);
  color: var(--bad);
  border: 1px solid rgba(248, 113, 113, 0.35);
  font-size: 14px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   ANALYZED HEADER
═══════════════════════════════════════════════════════════════ */

.analyzed {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 36px 0 24px;
  border-bottom: 1px solid var(--border);
  margin: 28px 0;
}

.analyzed-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.analyzed-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(79, 139, 255, 0.2);
}

.analyzed-ip {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  word-break: break-all;
  line-height: 1.15;
}

.analyzed-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--fg-muted);
  flex-wrap: wrap;
}
.analyzed-meta .sep {
  width: 3px; height: 3px;
  background: var(--fg-dim);
  border-radius: 50%;
}
.analyzed-meta .meta-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.analyzed-meta .flag {
  font-family: 'Noto Color Emoji', 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif;
  font-size: 1.15em;
  line-height: 1;
}

.analyzed-right {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .analyzed {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .analyzed-right { width: 100%; flex-wrap: wrap; }
}

/* Copy pill */
.copypill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--elev);
  border: 1px solid var(--border);
  padding: 8px 10px 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--fg);
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.copypill:hover { border-color: var(--border-strong); background: var(--elev-2); }
.copypill[data-copied] {
  border-color: rgba(74, 222, 128, 0.4);
  background: var(--ok-weak);
  color: var(--ok);
}
.copypill[data-copied]::after {
  content: "Copié !";
  font-size: 12px;
  font-weight: 500;
}
.copypill[data-copied] .copypill-default { display: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--elev);
  color: var(--fg-muted);
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  text-decoration: none;
}
.btn-ghost:hover {
  background: var(--elev-2);
  color: var(--fg);
  border-color: var(--border-strong);
}

/* "pill" chips in analyzed-meta */
.pill {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--elev-2);
  color: var(--fg-muted);
}
.pill.pill-version {
  font-family: var(--font-mono);
  color: var(--accent-strong);
  background: rgba(79, 139, 255, 0.1);
  border-color: rgba(79, 139, 255, 0.25);
}

/* ═══════════════════════════════════════════════════════════════
   RESULTS GRID
═══════════════════════════════════════════════════════════════ */

.results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 60px;
}

@media (min-width: 1024px) {
  .results { grid-template-columns: 2fr 1fr; }
}

.results-main,
.results-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CARD / KV / BADGE
═══════════════════════════════════════════════════════════════ */

.card {
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}

.card-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15px;
  margin: 0;
}

.card-icon {
  color: var(--accent);
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--accent-weak);
}
.card-icon.card-icon-threat  { color: var(--ok);        background: var(--ok-weak); }
.card-icon.card-icon-network { color: var(--violet);    background: rgba(167, 139, 250, 0.12); }
.card-icon.card-icon-whois   { color: var(--cyan);      background: rgba(34, 211, 238, 0.12); }
.card-icon.card-icon-bl      { color: var(--warn);      background: var(--warn-weak); }
.card-icon.card-icon-faq     { color: var(--fg-muted);  background: var(--elev-2); }

.card-body { padding: 6px 20px 14px; }

.card-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--fg-dim);
}
.card-foot a { color: var(--accent); }
.card-foot a:hover { text-decoration: underline; }

/* Key / value rows */
.kv { display: flex; flex-direction: column; gap: 0; }

.kv-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}
.kv-row:last-child { border-bottom: none; }

.kv-k {
  color: var(--fg-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.kv-v {
  color: var(--fg);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: right;
  min-width: 0;
  word-break: break-word;
}

.kv-copy {
  background: none;
  border: none;
  color: var(--fg-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
}
.kv-copy:hover { color: var(--fg); background: var(--elev-2); }
.kv-copy[data-copied] { color: var(--ok); }

@media (max-width: 600px) {
  .kv-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .kv-v { text-align: left; }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
}
.badge-ok {
  background: var(--ok-weak);
  color: var(--ok);
  border-color: rgba(74, 222, 128, 0.25);
}
.badge-warn {
  background: var(--warn-weak);
  color: var(--warn);
  border-color: rgba(251, 191, 36, 0.25);
}
.badge-bad {
  background: var(--bad-weak);
  color: var(--bad);
  border-color: rgba(248, 113, 113, 0.25);
}
.badge-neutral {
  background: var(--elev-2);
  color: var(--fg-muted);
  border-color: var(--border);
}

/* ═══════════════════════════════════════════════════════════════
   LOCATION CARD — map embed
═══════════════════════════════════════════════════════════════ */

.loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 720px) {
  .loc-grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 1.1fr); }
}

.loc-info { padding: 6px 20px 14px; }

.loc-map {
  border-top: 1px solid var(--border);
  position: relative;
  min-height: 300px;
  background: var(--elev-2);
}
@media (min-width: 720px) {
  .loc-map { border-top: none; border-left: 1px solid var(--border); }
}

#map { width: 100%; height: 100%; min-height: 300px; }

/* Leaflet theming */
.leaflet-container {
  background: var(--elev-2);
  font-family: var(--font-display);
}
.leaflet-control-attribution {
  background: var(--leaflet-attribution-bg) !important;
  color: var(--fg-muted) !important;
  border: 1px solid var(--border);
  font-size: 10px !important;
}
.leaflet-control-attribution a {
  color: var(--accent) !important;
}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--elev) !important;
  color: var(--fg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-card);
}
.leaflet-bar {
  border: 1px solid var(--border-strong) !important;
  box-shadow: var(--shadow-card) !important;
}
.leaflet-bar a {
  background: var(--elev) !important;
  color: var(--fg) !important;
  border-bottom-color: var(--border) !important;
}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
  background: var(--elev-2) !important;
  color: var(--accent) !important;
}

/* ═══════════════════════════════════════════════════════════════
   THREAT / SECURITY CARD
═══════════════════════════════════════════════════════════════ */

.threat-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
}
.threat-row:last-child { border-bottom: none; }

.threat-ico {
  display: inline-flex;
  width: 26px; height: 26px;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
}
.threat-row.is-ok  .threat-ico { color: var(--ok);  background: var(--ok-weak); }
.threat-row.is-bad .threat-ico { color: var(--bad); background: var(--bad-weak); }

.threat-body { min-width: 0; }
.threat-label { font-size: 14px; color: var(--fg); }
.threat-note { font-size: 12px; color: var(--fg-dim); margin-top: 1px; }

/* ═══════════════════════════════════════════════════════════════
   BLACKLIST CARD
═══════════════════════════════════════════════════════════════ */

.bl-summary {
  margin: 0;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bl-summary.is-clean {
  background: var(--ok-weak);
  color: var(--ok);
}
.bl-summary.is-dirty {
  background: var(--bad-weak);
  color: var(--bad);
}

/* ═══════════════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════════════ */

.faq { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--accent-strong); }

.faq-chev {
  display: inline-flex;
  color: var(--fg-dim);
  transition: transform .2s, color .2s;
  flex-shrink: 0;
}
.faq-item[open] > summary .faq-chev {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-a {
  padding: 0 24px 18px 0;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 720px;
}

/* ═══════════════════════════════════════════════════════════════
   ADSLOTS
═══════════════════════════════════════════════════════════════ */

.adslot {
  position: relative;
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 32px 12px 12px;
}
.adslot-tag {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--elev-2);
  border-bottom: 1px solid var(--border);
  z-index: 2;
}
.adslot-rectangle { min-height: 280px; margin: 28px 0; }
.adslot-vertical  { min-height: 600px; }
.adsbygoogle { display: block; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */

.site-footer {
  margin-top: 80px;
  padding: 48px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--fg-muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.footer-brand-accent { color: var(--accent); }
.footer-brand-tag {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 4px;
  max-width: 240px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h5 {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.footer-cols a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--fg-muted);
}
.footer-cols a:hover { color: var(--fg); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-dim);
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   GLOSSARY TOOLTIPS
═══════════════════════════════════════════════════════════════ */

.glossary-term {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.glossary-trigger {
  width: 16px; height: 16px;
  padding: 4px; margin: -4px;
  box-sizing: content-box;
  border: none;
  border-radius: 50%;
  background: var(--elev-2);
  color: var(--fg-dim);
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}
.glossary-trigger:hover,
.glossary-trigger:focus-visible {
  background: var(--accent-weak);
  color: var(--accent);
}

.glossary-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  max-width: min(280px, 90vw);
  z-index: 200;
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 10px 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--fg);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  text-align: left;
}
.glossary-tooltip[hidden] { display: none; }

.card:has(.glossary-tooltip:not([hidden])) {
  overflow: visible;
  position: relative;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════════════
   Sticky Proton promo — bas de page index.php
   Visuel: réplique du .proton-banner (dégradé vert émeraude,
   réutilise .proton-shield / .proton-body / .proton-title / etc.)
═══════════════════════════════════════════════════════════════ */
.sticky-promo {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  /* Reserve space on the right for the Sirdata CMP "paramétrer les cookies" pill (bottom-right, ~150-170px).
     The mobile media query below resets padding-right via the 3-value padding shorthand. */
  padding-right: 180px;
  background:
    radial-gradient(600px 140px at 100% 0%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(92deg, var(--proton-from) 0%, var(--proton-mid) 45%, var(--proton-to) 100%);
  border-top: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 -12px 32px -10px rgba(0,0,0,0.45);
  color: #fff;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 280ms ease-out, opacity 280ms ease-out;
}

.sticky-promo.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-promo-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.sticky-promo-link:hover .proton-cta {
  background: rgba(255,255,255,0.22);
}

.sticky-promo-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  transition: background 150ms ease;
}

.sticky-promo-close:hover,
.sticky-promo-close:focus-visible {
  background: rgba(255,255,255,0.28);
}

@media (max-width: 720px) {
  .sticky-promo {
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    gap: 8px;
  }
  .sticky-promo-link {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }
  .sticky-promo-link .proton-cta {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-promo { transition: none; }
}
