/* Vigil.AI — site public. Une direction, tokens Apple. Ne pas ajouter d’autres hex. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #4a4a4f;
  --text-body: #424245;
  --hairline: rgba(0,0,0,0.07);
  --accent: #0071e3;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
  --r-card: 18px;
  --r-panel: 22px;
  --r-pill: 999px;
  --sh-card: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.05);
  --max-read: 720px;
  --max-grid: 1080px;
  --pad-x: clamp(20px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--text); }

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

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 12px; top: 12px; z-index: 40;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  font-weight: 600;
}

/* Nav coins (accueil) */
.nav-float .nav-brand,
.nav-float .nav-in {
  position: fixed; top: 22px; z-index: 20;
  font-size: 15px; font-weight: 600; letter-spacing: -0.02em;
}
.nav-float { background: transparent; border: 0; padding: 0; }
.nav-float .nav-brand { left: 28px; min-height: 46px; min-width: 46px; display: inline-flex; align-items: center; box-sizing: border-box; padding: 12px 8px; }
.nav-float .nav-in { right: 28px; font-weight: 500; color: var(--text-2); min-height: 46px; min-width: 46px; display: inline-flex; align-items: center; box-sizing: border-box; padding: 12px 10px; }
.nav-float .nav-in:hover { color: var(--text); }

/* Nav barre (pages intérieures) */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px var(--pad-x);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-brand { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); min-height: 46px; min-width: 46px; display: inline-flex; align-items: center; box-sizing: border-box; padding: 12px 8px; }
.nav-in { font-size: 16px; font-weight: 500; color: var(--text-2); min-height: 46px; min-width: 46px; display: inline-flex; align-items: center; box-sizing: border-box; padding: 12px 10px; }
.nav-in:hover { color: var(--text); }

.wrap { width: min(var(--max-grid), calc(100% - 2 * var(--pad-x))); margin: 0 auto; }
.wrap-read { width: min(var(--max-read), calc(100% - 2 * var(--pad-x))); margin: 0 auto; }

.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 72px var(--pad-x) 80px;
  text-align: center;
}
.hero h1, .display, h1 {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
}
.hero .lede, .lede {
  margin-top: 16px;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 34em;
}
.hero-line {
  margin-top: 22px;
  font-size: clamp(22px, 3.4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
}
.frame {
  width: min(680px, 86vw, calc((100svh - 16rem) * 16 / 9));
  max-height: calc(100svh - 16rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  background: color-mix(in srgb, var(--text) 10%, var(--bg));
  flex: 0 0 auto;
}
.frame video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 42%;
}

.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 16px; font-weight: 600; letter-spacing: -0.02em;
  border: 0; cursor: pointer; line-height: 1;
}
.btn-primary { background: var(--accent); color: var(--surface); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid rgba(0,0,0,0.22);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.btn-ghost:hover { background: var(--bg); }
.btn:disabled { opacity: 0.55; cursor: progress; filter: none; }

.section { padding: clamp(72px, 12vw, 128px) 0; }
.section h2, h2 {
  font-size: clamp(26px, 4.5vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--text);
}
h3 { font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.prose p { font-size: clamp(20px, 3vw, 26px); line-height: 1.5; letter-spacing: -0.02em; color: var(--text); font-weight: 500; }
.prose p + p { margin-top: 0.55em; }
.prose .quiet, .note {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-2);
  line-height: 1.7;
}

.panel {
  background: var(--surface);
  border-radius: var(--r-panel);
  box-shadow: var(--sh-card);
  overflow: hidden;
}
.row { display: block; padding: 22px clamp(18px, 3vw, 28px); color: var(--text); }
.row + .row { border-top: 1px solid var(--hairline); }
a.row:hover { background: var(--bg); }
.row h2, .row h3 { font-size: 19px; margin: 0; }
.row p { margin-top: 4px; font-size: 16px; color: var(--text-2); line-height: 1.5; font-weight: 400; }

.faq-item {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: 22px 24px;
  margin-bottom: 12px;
}
.faq-item h3 { margin-bottom: 8px; }
.faq-item p { font-size: 16px; line-height: 1.65; color: var(--text-body); }

.foot {
  padding: 28px var(--pad-x) 96px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-2);
}
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }

.cookie {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 12px 22px;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--text-2);
}
.cookie.hidden { display: none; }
.cookie button {
  border: 0; border-radius: var(--r-pill); min-height: 44px; padding: 0 16px;
  font-family: var(--font); font-weight: 600; font-size: 14px; cursor: pointer;
}
.cookie .ok { background: var(--accent); color: var(--surface); }
.cookie .ghost { background: transparent; color: var(--text); }

.fade { animation: fadeup 0.7s ease both; }
@keyframes fadeup {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* Auth */
#panel-login, #panel-signup { display: none; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
#panel-login.active, #panel-signup.active { display: block; }
.auth-grid {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 64px 40px 40px;
}
.auth-form {
  background: var(--surface);
  padding: 64px 40px 48px;
}
.auth-form h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.auth-form .lede { margin: 0 0 28px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--hairline); border-radius: 12px;
  font-size: 17px; font-family: inherit; background: var(--surface); color: var(--text);
}
.checks { margin: 18px 0; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-body); margin: 10px 0; cursor: pointer; }
.checks input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }
.form-error, .form-success {
  display: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  color: var(--text);
}
.form-error.visible, .form-success.visible { display: block; }
.auth-switch { margin-top: 22px; font-size: 15px; color: var(--text-2); }
.auth-switch a { color: var(--accent); font-weight: 600; cursor: pointer; }
.auth-alt { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.auth-alt button { min-height: 44px; }
.seg {
  display: inline-flex;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  border-radius: var(--r-pill);
  padding: 3px; gap: 2px;
}
.seg button {
  border: 0; cursor: pointer; font-family: var(--font);
  font-size: 15px; font-weight: 500; padding: 8px 16px;
  border-radius: var(--r-pill); background: transparent; color: var(--text-2);
  min-height: 44px; min-width: 44px;
  white-space: nowrap; overflow: visible;
}
.seg button.active { background: var(--text); color: var(--surface); font-weight: 600; }
.seg .label-short { display: none; }
@media (max-width: 420px) {
  .nav { gap: 6px; padding: 12px 10px; flex-wrap: nowrap; }
  .nav-brand { flex: 0 0 auto; padding: 12px 6px; }
  .nav-in { display: none; }
  .seg { flex: 1 1 auto; min-width: 0; justify-content: stretch; }
  .seg button {
    flex: 1 1 0;
    padding: 8px 6px;
    font-size: 13px;
    overflow: visible;
  }
  .seg .label-full { display: none; }
  .seg .label-short { display: inline; }
}

/* Legal */
.legal-nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  padding: 14px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
}
.legal-nav .legal-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; color: var(--text); text-decoration: none;
  font-size: 17px; letter-spacing: -0.02em;
}
.legal-nav .legal-logo { display: none; }
.legal-nav .legal-home {
  color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
  min-height: 44px; display: inline-flex; align-items: center;
}
.legal-nav .legal-home:hover { color: var(--text); }
.legal-container {
  max-width: var(--max-read);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) var(--pad-x) 100px;
}
.legal-container .legal-back {
  display: inline-flex; align-items: center;
  color: var(--text-2); text-decoration: none; font-size: 15px;
  min-height: 44px; margin-bottom: 16px;
}
.legal-container .legal-back:hover { color: var(--text); }
.legal-container h1 { margin: 0 0 12px; }
.legal-container .legal-date {
  color: var(--text-2); font-size: 14px;
  margin: 0 0 40px; padding-bottom: 24px;
  border-bottom: 1px solid var(--hairline);
}
.legal-container h2 { margin: 48px 0 16px; }
.legal-container h3 { margin: 28px 0 10px; }
.legal-container p { color: var(--text-body); margin: 0 0 16px; font-size: 16px; line-height: 1.7; }
.legal-container ul, .legal-container ol { color: var(--text-body); padding-left: 22px; margin: 0 0 16px; }
.legal-container li { margin-bottom: 8px; font-size: 16px; line-height: 1.65; }
.legal-container a { color: var(--accent); }
.legal-container strong { color: var(--text); font-weight: 600; }
.legal-container code {
  background: var(--bg); color: var(--text);
  padding: 2px 6px; border-radius: 6px; font-size: 13px;
}
.legal-callout, .legal-draft, .legal-draft-banner {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: var(--r-card);
  font-size: 15px;
  color: var(--text);
  box-shadow: var(--sh-card);
}
.legal-table-wrap { overflow-x: auto; margin: 20px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--hairline); color: var(--text-body);
}
.legal-table th { font-weight: 600; color: var(--text); background: var(--bg); font-size: 13px; }
.legal-footer {
  text-align: center; padding: 40px 20px 72px;
  color: var(--text-2); font-size: 13px;
}
.legal-footer a { color: var(--text-2); text-decoration: none; margin: 0 10px; }
.legal-footer a:hover { color: var(--text); }
.legal-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;
}

@media (max-width: 800px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-aside { padding: 32px 22px 8px; }
  .auth-form { padding: 28px 22px 48px; }
  .hero { padding: 64px 16px 88px; }
  .nav-float .nav-brand { left: 16px; top: 16px; }
  .nav-float .nav-in { right: 16px; top: 16px; }
  .frame { width: min(100%, calc((100svh - 16.5rem) * 16 / 9)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* Home hero demo — landing only. Do not reuse on auth / legal / tarifs. */
.hero.hero-home {
  min-height: auto;
  justify-content: flex-start;
  padding: 88px var(--pad-x) 56px;
}
.hero-stage {
  position: relative;
  width: min(var(--max-grid), 100%);
}
.hero-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: color-mix(in srgb, var(--text) 10%, var(--bg));
}
.hero-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.demo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  margin: 0;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: color-mix(in srgb, var(--surface) 88%, var(--text));
  background: color-mix(in srgb, var(--text) 46%, transparent);
}
.demo-ticks {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: min(420px, calc(100% - 28px));
  text-align: left;
}
.tick {
  opacity: 0;
  transform: translateY(6px);
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: color-mix(in srgb, var(--surface) 92%, var(--text));
  background: color-mix(in srgb, var(--text) 58%, transparent);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero-stage.js-sync .tick.on,
.hero-stage.is-static .tick {
  opacity: 1;
  transform: none;
}
.hero-stage:not(.js-sync):not(.is-static) .tick:nth-child(1) {
  animation: demo-tick-1 14s linear infinite;
}
.hero-stage:not(.js-sync):not(.is-static) .tick:nth-child(2) {
  animation: demo-tick-2 14s linear infinite;
}
.hero-stage:not(.js-sync):not(.is-static) .tick:nth-child(3) {
  animation: demo-tick-3 14s linear infinite;
}
.hero-stage:not(.js-sync):not(.is-static) .tick:nth-child(4) {
  animation: demo-tick-4 14s linear infinite;
}
@keyframes demo-tick-1 {
  0%, 64.2% { opacity: 0; transform: translateY(6px); }
  64.3%, 100% { opacity: 1; transform: none; }
}
@keyframes demo-tick-2 {
  0%, 72.8% { opacity: 0; transform: translateY(6px); }
  72.9%, 100% { opacity: 1; transform: none; }
}
@keyframes demo-tick-3 {
  0%, 81.3% { opacity: 0; transform: translateY(6px); }
  81.4%, 100% { opacity: 1; transform: none; }
}
@keyframes demo-tick-4 {
  0%, 89.9% { opacity: 0; transform: translateY(6px); }
  90%, 100% { opacity: 1; transform: none; }
}
.demo-caption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
  letter-spacing: 0;
}
.hero-home .hero-line { margin-top: 18px; }

.ex-grid,
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.ex-card,
.how-step {
  background: var(--surface);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  padding: 28px 24px;
  text-align: left;
}
.ex-card h3,
.how-step h3 { margin-bottom: 10px; }
.ex-card p,
.how-step p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
}
.ex-card .ex-end {
  margin-top: 18px;
  color: var(--text-2);
  font-size: 15px;
}
.how-n {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-2);
  margin-bottom: 12px;
}
.how .note { margin-top: 28px; }

@media (min-width: 901px) {
  .hero.hero-home {
    min-height: 100svh;
    justify-content: center;
    padding: 96px var(--pad-x) 72px;
  }
}
@media (max-width: 800px) {
  .hero.hero-home { padding: 72px 16px 48px; }
  .hero-frame { max-height: 38svh; }
  .demo-ticks {
    position: static;
    margin-top: 14px;
    left: auto;
    bottom: auto;
    max-width: none;
  }
  .tick {
    color: var(--text);
    background: var(--surface);
    box-shadow: var(--sh-card);
  }
  .ex-grid,
  .how-grid { grid-template-columns: 1fr; }
}
@media (max-height: 700px) and (max-width: 800px) {
  .hero-frame { max-height: 32svh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stage .tick,
  .hero-stage .tick.on {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* ── téléphone du proche : on VOIT que l'alerte est reçue ── */
.hero-phone {
  position: absolute;
  right: clamp(10px, 2.5vw, 26px);
  bottom: clamp(10px, 2.5vw, 26px);
  z-index: 3;
  width: clamp(112px, 15%, 178px);
  aspect-ratio: 9 / 19;
  border-radius: clamp(14px, 2vw, 22px);
  padding: 5px;
  background: color-mix(in srgb, var(--text) 88%, transparent);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: clamp(10px, 1.6vw, 18px);
  background: color-mix(in srgb, var(--text) 96%, transparent);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 5px;
  transition: background 0.5s ease;
}
.phone-notif {
  width: 100%;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  padding: 6px 6px 5px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.notif-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px;
  font-size: clamp(6px, 0.62vw, 8px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.notif-title {
  margin-top: 2px;
  font-size: clamp(7px, 0.75vw, 9.5px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
}
.notif-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
  margin-top: 4px;
}
.notif-seen {
  margin-top: 4px;
  font-size: clamp(6px, 0.62vw, 8px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.hero-stage.js-sync.alert-on .hero-phone,
.hero-stage.is-static .hero-phone {
  opacity: 1;
  transform: none;
}
.hero-stage.js-sync.alert-on .phone-screen,
.hero-stage.is-static .phone-screen {
  background: color-mix(in srgb, var(--text) 62%, transparent);
}
.hero-stage.js-sync.alert-on .phone-notif,
.hero-stage.is-static .phone-notif {
  opacity: 1;
  transform: none;
}
.hero-stage.js-sync.seen-on .notif-seen,
.hero-stage.is-static .notif-seen { opacity: 1; }
.hero-stage:not(.js-sync):not(.is-static) .hero-phone {
  animation: demo-phone 14s linear infinite;
}
.hero-stage:not(.js-sync):not(.is-static) .phone-notif {
  animation: demo-notif 14s linear infinite;
}
.hero-stage:not(.js-sync):not(.is-static) .notif-seen {
  animation: demo-seen 14s linear infinite;
}
@keyframes demo-phone {
  0%, 81.3% { opacity: 0; transform: translateY(10px) scale(0.98); }
  81.4%, 100% { opacity: 1; transform: none; }
}
@keyframes demo-notif {
  0%, 82% { opacity: 0; transform: translateY(-6px); }
  82.1%, 100% { opacity: 1; transform: none; }
}
@keyframes demo-seen {
  0%, 89.9% { opacity: 0; }
  90%, 100% { opacity: 1; }
}
@media (max-width: 700px) {
  .hero-phone { width: clamp(84px, 24%, 112px); right: 8px; bottom: 8px; }
  .notif-thumb { border-radius: 4px; }
}
.ex-lede { color: var(--text-2); margin-top: 6px; font-size: 15.5px; letter-spacing: -0.01em; }
.demo-2 { margin: 28px auto 0; }
.demo-2 + .demo-caption { text-align: center; margin-top: 10px; }
/* 4 exemples : 4 colonnes en large, 2x2 en moyen, 1 en mobile */
.ex-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .ex-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .ex-grid { grid-template-columns: 1fr; } }

/* Third demo (blessure) — same block as intrusion, extra gap after previous caption */
.demo-2 + .demo-caption + .demo-2 { margin-top: 40px; }
