/* ─────────────────────────────────────────────────────────────────────────
   Djangui — « L'OS des communautés » : hero + vision section.
   Native CSS/SVG motion, no library. The finished state is the default: with
   reduced motion (or without JS) everything is visible and readable; motion
   only animates what is already there.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --os-bg: #031b34; --os-surface: #072542; --os-lite: #0b3157; --os-border: #1c4466;
  --os-teal: #00c7c7; --os-mint: #7ef2dc; --os-gold: #f5c400; --os-coral: #ff8a7a;
  --os-text: #ffffff; --os-muted: #c2d1de; --os-faint: #93a9bd;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.os-hero { position: relative; overflow: hidden; isolation: isolate; padding: 128px 24px 0;
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(0,199,199,.16), transparent 62%),
    radial-gradient(700px 480px at 8% 92%, rgba(245,196,0,.07), transparent 60%),
    var(--os-bg); }
.os-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(126,242,220,.16) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%); }
.os-hero-grid { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: 1.02fr 1fr;
  gap: 56px; align-items: center; padding-bottom: 64px; }
.os-copy, .os-scene { min-width: 0; }

.os-eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid rgba(0,199,199,.35); background: rgba(0,199,199,.08); color: var(--os-mint);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 26px; }
.os-eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--os-teal); box-shadow: 0 0 0 0 rgba(0,199,199,.6); }
.os-copy h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.045em; font-weight: 800; margin: 0 0 22px; color: var(--os-text); }
.os-copy h1 .grad { background: linear-gradient(100deg, #9af7e4 0%, var(--os-teal) 45%, var(--os-gold) 120%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--os-teal); }
.os-lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.65; color: var(--os-muted); max-width: 560px; margin: 0 0 12px; }
.os-tagline { font-size: 15px; color: var(--os-faint); margin: 0 0 30px; font-style: italic; }
.os-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.os-btn { display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 14px; font-size: 16px; font-weight: 700;
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.os-btn-primary { background: var(--os-gold); color: #031b34; box-shadow: 0 10px 30px rgba(245,196,0,.22); }
.os-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(245,196,0,.32); color: #031b34; }
.os-btn-ghost { border: 1px solid #2e5878; color: var(--os-text); background: rgba(255,255,255,.03); }
.os-btn-ghost:hover { transform: translateY(-2px); background: rgba(0,199,199,.10); border-color: var(--os-teal); color: var(--os-text); }
.os-trust { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--os-muted); max-width: 520px; }
.os-trust i { color: var(--os-teal); font-size: 18px; line-height: 1.2; }
.os-paths { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 18px; }
.os-paths a { color: var(--os-mint); font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(126,242,220,.35); padding-bottom: 2px; }
.os-paths a:hover { color: #fff; border-color: #fff; }

/* The living circle */
.os-scene { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin-left: auto; }
.os-scene svg { width: 100%; height: 100%; overflow: visible; display: block; }
.os-pause { position: absolute; right: 6px; top: 6px; z-index: 3; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--os-border); background: rgba(7,37,66,.85); color: var(--os-muted); display: grid; place-items: center; font-size: 18px; cursor: pointer; }
.os-pause:hover { color: #fff; border-color: var(--os-teal); }
@media (prefers-reduced-motion: reduce) { .os-pause { display: none; } }
.os-ring-track { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 10; }
.os-ring { fill: none; stroke: url(#osRingGrad); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 603; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 280px 280px; }
.os-orbit { fill: none; stroke: rgba(126,242,220,.16); stroke-dasharray: 2 7; }
.os-link { stroke: rgba(126,242,220,.18); stroke-width: 1.4; }
.os-flow { fill: none; stroke: var(--os-gold); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 9 100; stroke-dashoffset: 0; opacity: 0; }
.os-member circle.halo { fill: rgba(0,199,199,.10); stroke: rgba(126,242,220,.35); stroke-width: 1.2; }
.os-member circle.face { stroke: #04223b; stroke-width: 3; }
.os-member text { font: 800 16px Inter, system-ui, sans-serif; fill: #06243d; text-anchor: middle; dominant-baseline: central; }
.os-member .paid { fill: var(--os-teal); stroke: #04223b; stroke-width: 2; }
.os-member .paid-check { fill: none; stroke: #04223b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.os-beneficiary circle.halo { fill: rgba(245,196,0,.14); stroke: rgba(245,196,0,.7); stroke-width: 1.6; }
.os-core-title { font: 800 22px Inter, system-ui, sans-serif; fill: #fff; text-anchor: middle; letter-spacing: -.02em; }
.os-core-sub { font: 600 13px Inter, system-ui, sans-serif; fill: var(--os-mint); text-anchor: middle; letter-spacing: .08em; }
.os-core-amount { font: 800 15px Inter, system-ui, sans-serif; fill: var(--os-gold); text-anchor: middle; }

.os-chip { position: absolute; display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
  background: rgba(7,37,66,.94); border: 1px solid var(--os-border); box-shadow: 0 16px 40px rgba(0,0,0,.35);
  font-size: 13.5px; line-height: 1.35; color: var(--os-text); max-width: 270px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.os-chip b { font-weight: 700; }
.os-chip small { display: block; color: var(--os-faint); font-size: 12px; font-weight: 500; }
.os-chip .ico { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; }
.os-chip.c1 { top: 4%; left: -6%; }  .os-chip.c1 .ico { background: rgba(0,199,199,.16); color: var(--os-mint); }
.os-chip.c2 { top: 30%; right: -8%; } .os-chip.c2 .ico { background: rgba(34,197,94,.16); color: #6ee7a0; }
.os-chip.c3 { bottom: 16%; left: -9%; } .os-chip.c3 .ico { background: rgba(245,196,0,.16); color: var(--os-gold); }
.os-chip.c4 { bottom: -2%; right: 2%; } .os-chip.c4 .ico { background: rgba(167,139,250,.18); color: #c4b5fd; }

.os-strip { max-width: 1220px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  border-top: 1px solid #1d4262; padding: 26px 0 34px; }
.os-strip span { display: flex; align-items: center; gap: 10px; color: var(--os-muted); font-size: 14px; font-weight: 600; }
.os-strip i { color: var(--os-teal); font-size: 20px; }

/* ── Vision : the layers of the OS ────────────────────────────────────── */
.os-vision { position: relative; padding: 110px 24px; background: linear-gradient(180deg, var(--os-bg), #04213d 50%, var(--os-bg)); overflow: hidden; }
.os-vision-inner { max-width: 1180px; margin: 0 auto; }
.os-vision-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.os-kicker { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--os-teal); margin-bottom: 14px; }
.os-vision-head h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; letter-spacing: -.035em; font-weight: 800; color: #fff; margin: 0 0 18px; }
.os-vision-head p { font-size: 18px; line-height: 1.7; color: var(--os-muted); margin: 0; }
.os-vision-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }

.os-stack { position: relative; display: flex; flex-direction: column; gap: 12px; perspective: 1200px; }
.os-layer { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px;
  border: 1px solid var(--os-border); background: linear-gradient(135deg, rgba(11,49,87,.9), rgba(7,37,66,.9));
  transform-origin: center; }
.os-layer .num { flex: 0 0 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; }
.os-layer h3 { margin: 0; font-size: 17px; font-weight: 800; color: #fff; }
.os-layer p { margin: 2px 0 0; font-size: 14px; color: var(--os-muted); line-height: 1.5; }
.os-layer[data-l="1"] .num { background: rgba(0,199,199,.16); color: var(--os-mint); }
.os-layer[data-l="2"] .num { background: rgba(245,196,0,.16); color: var(--os-gold); }
.os-layer[data-l="3"] .num { background: rgba(96,165,250,.16); color: #93c5fd; }
.os-layer[data-l="4"] .num { background: rgba(34,197,94,.16); color: #86efac; }
.os-layer[data-l="5"] { border-color: rgba(0,199,199,.55); box-shadow: 0 0 0 1px rgba(0,199,199,.15), 0 18px 50px rgba(0,199,199,.12); }
.os-layer[data-l="5"] .num { background: linear-gradient(135deg, var(--os-teal), var(--os-gold)); color: #031b34; }

.os-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.os-app { padding: 22px; border-radius: 18px; border: 1px solid var(--os-border); background: rgba(7,37,66,.7); }
.os-app i { font-size: 26px; color: var(--os-teal); }
.os-app h4 { margin: 10px 0 6px; font-size: 17px; font-weight: 800; color: #fff; }
.os-app p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--os-muted); }
.os-app.wide { grid-column: 1 / -1; background: linear-gradient(120deg, rgba(0,199,199,.12), rgba(245,196,0,.08)); border-color: rgba(0,199,199,.4); }
.os-vision-cta { text-align: center; margin-top: 44px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.os-reads { max-width: 1180px; margin: 64px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.os-read { display: block; padding: 22px; border-radius: 16px; border: 1px solid var(--os-border); background: rgba(7,37,66,.6); text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.os-read:hover { transform: translateY(-3px); border-color: var(--os-teal); }
.os-read span { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--os-teal); }
.os-read h4 { margin: 8px 0 0; font-size: 17px; line-height: 1.4; font-weight: 700; color: #fff; }

.landing-focus :is(a, button):focus-visible, .os-hero :is(a, button):focus-visible, .os-vision :is(a, button):focus-visible { outline: 3px solid var(--os-gold); outline-offset: 4px; }
html { scroll-padding-top: 90px; }

/* ── Motion (only when the visitor accepts it) ────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .os-eyebrow .pulse { animation: os-pulse 2.4s ease-out infinite; }
  .os-scene[data-live="true"] .os-orbit-spin { animation: os-spin 60s linear infinite; transform-origin: 280px 280px; }
  .os-scene[data-live="true"] .os-ring { animation: os-ring 12s ease-in-out infinite; }
  .os-scene[data-live="true"] .os-flow { animation: os-flow 12s linear infinite; }
  .os-scene[data-live="true"] .os-flow.f2 { animation-delay: 1.2s; } .os-scene[data-live="true"] .os-flow.f3 { animation-delay: 2.4s; }
  .os-scene[data-live="true"] .os-flow.f4 { animation-delay: 3.6s; } .os-scene[data-live="true"] .os-flow.f5 { animation-delay: 4.8s; }
  .os-scene[data-live="true"] .os-member .tick { animation: os-tick 12s ease infinite; }
  .os-scene[data-live="true"] .os-member.m2 .tick { animation-delay: 1.2s; } .os-scene[data-live="true"] .os-member.m3 .tick { animation-delay: 2.4s; }
  .os-scene[data-live="true"] .os-member.m4 .tick { animation-delay: 3.6s; } .os-scene[data-live="true"] .os-member.m5 .tick { animation-delay: 4.8s; }
  .os-scene[data-live="true"] .os-beneficiary .halo { animation: os-glow 12s ease infinite; }
  .os-scene[data-live="true"] .os-chip { animation: os-chip 12s ease infinite; }
  .os-scene[data-live="true"] .os-chip.c2 { animation-delay: 2s; } .os-scene[data-live="true"] .os-chip.c3 { animation-delay: 5.6s; }
  .os-scene[data-live="true"] .os-chip.c4 { animation-delay: 7.4s; }
  .os-float { animation: os-float 7s ease-in-out infinite; }

  .js-reveal .os-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
  .js-reveal .os-reveal.is-in { opacity: 1; transform: none; }
  .js-reveal .os-layer.os-reveal { transform: translateY(26px) rotateX(18deg); }
  .js-reveal .os-layer.os-reveal.is-in { transform: none; }
}
@keyframes os-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,199,199,.55); } 80%, 100% { box-shadow: 0 0 0 12px rgba(0,199,199,0); } }
@keyframes os-spin { to { transform: rotate(360deg); } }
@keyframes os-ring { 0% { stroke-dashoffset: 603; } 55%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 603; } }
@keyframes os-flow { 0% { opacity: 0; stroke-dashoffset: 109; } 4% { opacity: 1; } 16% { opacity: 1; stroke-dashoffset: 0; } 19%, 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes os-tick { 0%, 15% { opacity: 0; transform: scale(.4); } 19%, 88% { opacity: 1; transform: scale(1); } 96%, 100% { opacity: 0; transform: scale(.4); } }
@keyframes os-glow { 0%, 50% { filter: none; } 58%, 86% { filter: drop-shadow(0 0 14px rgba(245,196,0,.8)); } 100% { filter: none; } }
@keyframes os-chip { 0% { opacity: 0; transform: translateY(12px) scale(.96); } 6%, 60% { opacity: 1; transform: none; } 70%, 100% { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes os-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.os-member .tick { transform-box: fill-box; transform-origin: center; }

/* ── Layout ───────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .os-hero-grid { grid-template-columns: 1fr; max-width: 680px; gap: 40px; }
  .os-scene { margin: 0 auto; max-width: 520px; }
  .os-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; padding: 22px 8px 30px; }
  .os-vision-grid { grid-template-columns: 1fr; gap: 40px; }
  .os-reads { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .os-hero { padding: 108px 18px 0; }
  .os-copy h1 { font-size: 40px; }
  .os-actions { flex-direction: column; } .os-btn { justify-content: center; }
  .os-chip { font-size: 12.5px; padding: 9px 11px; max-width: 210px; }
  .os-chip.c1 { left: 0; top: -2%; } .os-chip.c2 { right: 0; } .os-chip.c3 { left: 0; } .os-chip.c4 { right: 0; bottom: -4%; }
  .os-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-vision { padding: 80px 18px; }
  .os-apps { grid-template-columns: 1fr; }
}

/* Visible FAQ — the same questions as the FAQPage markup (Google requires it),
   and the quotable answers AI search engines lift verbatim. */
.os-faq { max-width: 880px; margin: 64px auto 0; }
.os-faq h3 { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 18px; text-align: center; letter-spacing: -.02em; }
.os-faq-item { border: 1px solid var(--os-border); border-radius: 14px; background: rgba(7,37,66,.6); margin-bottom: 10px; }
.os-faq-item summary { cursor: pointer; list-style: none; padding: 18px 20px; font-size: 16.5px; font-weight: 700; color: #fff; display: flex; justify-content: space-between; gap: 12px; }
.os-faq-item summary::-webkit-details-marker { display: none; }
.os-faq-item summary::after { content: '+'; color: var(--os-teal); font-size: 22px; line-height: 1; }
.os-faq-item[open] summary::after { content: '–'; }
.os-faq-item p { margin: 0; padding: 0 20px 18px; color: var(--os-muted); font-size: 15.5px; line-height: 1.7; }
