/* Cumulo Vario – vario.cumulo.fly.
   Même charte que l'application web Cumulo (cumulo-app, src/styles.css) : couleurs du thème sombre,
   polices Inter et Space Grotesk, barre du haut, boutons, cartes et icônes. */

@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url('fonts/space-grotesk-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk Variable'; font-style: normal; font-display: swap; font-weight: 300 700;
  src: url('fonts/space-grotesk-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ───────────── Jetons (thème sombre de Cumulo) ───────────── */
:root {
  --bg: #080d15;
  --card: #101823;
  --card-2: #151f2d;
  --ink: #e8edf4;
  --ink-2: #c3cdd9;
  --muted: #8796ac;
  --line: #1e2a3b;
  --line-strong: #2c3c53;
  --brand: #6aa9ff;
  --brand-strong: #a5cbff;
  --brand-soft: rgba(106, 169, 255, 0.12);
  --brand-2: #fbbf24;
  --brand-2-soft: rgba(251, 191, 36, 0.13);
  --sky-1: #2563c9;
  --sky-2: #4f9cf5;
  --night-1: #050b16;
  --night-2: #0b1e3d;
  --night-3: #133f80;
  --success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 6px 16px -6px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
  --focus: 0 0 0 3px rgba(106, 169, 255, 0.3);
  --font-display: 'Space Grotesk Variable', 'Inter Variable', system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1120px;
  color-scheme: dark;
  font-family: 'Inter Variable', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ───────────── Base ───────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
html, body { overflow-x: clip; }
main { flex: 1 0 auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
img { max-width: 100%; height: auto; }
b, strong { font-weight: 650; }
.icon { flex: none; vertical-align: middle; }
::selection { background: rgba(58, 142, 230, 0.25); }

/* ───────────── Barre du haut ───────────── */
.topbar {
  position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 26px;
  padding: 11px 28px; flex-wrap: wrap; color: #fff;
  background: rgba(7, 20, 43, 0.72); border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.brand {
  display: flex; align-items: center; gap: 10px; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 4px 14px rgba(58, 142, 230, 0.45); }
.topbar nav { display: flex; gap: 2px; flex-wrap: wrap; }
.topbar nav a {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 9px; color: rgba(255, 255, 255, 0.66); font-weight: 550; font-size: 0.91rem;
  transition: background-color 0.15s, color 0.15s;
}
.topbar nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; text-decoration: none; }
.topbar nav a[aria-current] { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.topbar nav a[aria-current] .icon { color: var(--brand-2); }
.topbar-tools { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.tool {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: 10px;
  color: rgba(255, 255, 255, 0.86); font-weight: 600; font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.15s, border-color 0.15s;
}
.tool:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.26); color: #fff; text-decoration: none; }

/* La barre est transparente au-dessus du paysage de l'accueil */
.page-home .topbar.scrolled {
  background: rgba(7, 20, 43, 0.82); border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.page-home .topbar { transition: background-color 0.25s, border-color 0.25s; }
.page-home .topbar { position: fixed; left: 0; right: 0; }
.page-home .topbar:not(.scrolled) { background: linear-gradient(180deg, rgba(5, 14, 30, 0.55), rgba(5, 14, 30, 0)); border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ───────────── Boutons ───────────── */
.btn-hero {
  display: inline-flex; align-items: center; gap: 9px; padding: 14px 24px; border-radius: 12px;
  font-weight: 650; font-size: 1rem; line-height: 1.2; border: 1px solid transparent;
  transition: transform 0.15s, background-color 0.15s, box-shadow 0.15s;
}
.btn-hero:hover { transform: translateY(-1px); text-decoration: none; }
.btn-hero.primary { background: #fff; color: var(--night-2); box-shadow: 0 12px 30px -10px rgba(5, 14, 30, 0.6); }
.btn-hero.primary:hover { background: #eef4fc; }
.btn-hero.primary .icon { color: var(--sky-1); }
.btn-hero.soon { cursor: default; }
.btn-hero.soon:hover { transform: none; background: #fff; }
.btn-hero.ghost {
  background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn-hero.ghost:hover { background: rgba(255, 255, 255, 0.18); }
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, background-color 0.15s;
}
.btn:hover { border-color: var(--line-strong); background: var(--card-2); text-decoration: none; }
.btn .icon { color: var(--brand); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────────── Accueil : bandeau ───────────── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; isolation: isolate; }
.hero-media {
  position: absolute; inset: 0; z-index: -1;
  background: url('cumulo-hero-poster.webp') center 40% / cover no-repeat, #1f6fd1;
}
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 14, 30, 0.7) 0%, rgba(5, 14, 30, 0.3) 50%, rgba(5, 14, 30, 0.05) 75%),
    linear-gradient(180deg, rgba(5, 14, 30, 0) 60%, var(--bg) 100%);
}
.hero-inner {
  width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px 28px 100px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center;
}
.hero-text > * { animation: rise 0.7s ease-out both; }
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.16s; }
.hero-text > :nth-child(4) { animation-delay: 0.24s; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 99px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-eyebrow .icon { color: var(--brand-2); }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.045em; margin: 20px 0 18px;
  text-shadow: 0 2px 30px rgba(5, 14, 30, 0.35); text-wrap: balance;
}
.hero-text > p { font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 1.6; color: rgba(255, 255, 255, 0.9); margin: 0 0 30px; max-width: 600px; text-shadow: 0 1px 12px rgba(5, 14, 30, 0.4); }
.hero-phones { display: flex; justify-content: center; align-items: flex-end; gap: 16px; animation: rise 0.8s 0.2s ease-out both; }
.hero-phones img { width: min(240px, 48%); }
.hero-phones img:first-child { transform: translateY(-28px); }

.phone {
  border-radius: 30px; border: 6px solid #1b2433; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--shadow-lg);
}

@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ───────────── Accueil : sections ───────────── */
.landing-section { max-width: var(--max); margin: 0 auto; padding: 72px 20px 24px; }
.landing-section > header { max-width: 640px; margin-bottom: 32px; }
.landing-section > header p { font-size: 1.05rem; margin: 0; color: var(--muted); }
.landing-h, .feature-row h2 {
  display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.12; margin: 0 0 12px;
}

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.feature-icon {
  display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 14px;
}
.feature:nth-child(3n + 2) .feature-icon { background: var(--brand-2-soft); color: var(--brand-2); }
.feature h3 { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 6px; }
.feature p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: 64px 20px;
}
.feature-row.reverse .media { order: 2; }
.feature-row .media { display: flex; justify-content: center; gap: 18px; }
.feature-row .media img { width: min(270px, 48%); }
.feature-row .media img:only-child { width: min(300px, 78%); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  color: var(--brand); font-weight: 650; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em;
}
.eyebrow .icon {
  width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--brand-soft); color: var(--brand);
}
.feature-row p, .feature-row li { color: var(--ink-2); }
.feature-row ul { padding-left: 1.1em; margin: 0; }
.feature-row li { margin: 7px 0; }
.feature-row li::marker { color: var(--brand); }

.privacy-card {
  max-width: var(--max); margin: 24px auto 0; padding: 28px 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.privacy-card > div { display: flex; gap: 18px; align-items: flex-start; max-width: 720px; }
.privacy-card h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.35rem; letter-spacing: -0.02em; }
.privacy-card p { margin: 0; color: var(--muted); }
.privacy-card .feature-icon { margin: 0; flex: none; background: rgba(74, 222, 128, 0.12); color: var(--success); }

.landing-final {
  max-width: 1080px; margin: 72px auto 40px; padding: 56px 40px; border-radius: 28px; color: #fff; text-align: center;
  background:
    url('topo.svg') center / 900px auto repeat,
    radial-gradient(600px 260px at 85% 0%, rgba(245, 165, 36, 0.22), transparent 60%),
    linear-gradient(160deg, var(--night-2), var(--night-3));
  box-shadow: var(--shadow-lg);
}
.landing-final h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.4rem); letter-spacing: -0.035em; margin: 0 0 12px; }
.landing-final p { max-width: 560px; margin: 0 auto 26px; color: rgba(255, 255, 255, 0.82); font-size: 1.05rem; }
.landing-final .cta { justify-content: center; }

.note { max-width: var(--max); margin: 0 auto; padding: 0 20px; color: var(--muted); font-size: 0.84rem; text-align: center; }

/* ───────────── Pages de documents ───────────── */
.sky {
  position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 244px; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 14, 30, 0.55), rgba(5, 14, 30, 0.2) 55%, rgba(5, 14, 30, 0.35)),
    url('cumulo-hero-poster.webp') center 42% / cover no-repeat,
    var(--night-2);
  mask-image: linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent);
}
@media (min-width: 861px) {
  .sky { background-position: 0 0, center min(0px, calc(160px - 16.4vw)), 0 0; }
}
.doc-page { position: relative; isolation: isolate; }
.container { max-width: 900px; margin: 0 auto; padding: 30px 20px 60px; }
.page-title { display: flex; align-items: center; gap: 14px; color: #fff; margin: 6px 0 34px; }
.page-title h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; margin: 0; }
.title-icon {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none;
  background: rgba(255, 255, 255, 0.1); color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 8px 20px -10px rgba(58, 142, 230, 0.9);
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px;
  box-shadow: var(--shadow-md);
}
.doc { color: var(--ink-2); line-height: 1.65; }
.doc > :first-child { margin-top: 0; }
.doc h2 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); color: var(--ink); font-size: 1.45rem; letter-spacing: -0.02em;
  margin: 44px 0 14px; padding-top: 28px; border-top: 1px solid var(--line);
}
.doc h3 { color: var(--ink); font-size: 1.08rem; margin: 28px 0 8px; }
.doc strong { color: var(--ink); }
.doc blockquote {
  margin: 22px 0; padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--brand-2-soft); border: 1px solid rgba(251, 191, 36, 0.28);
}
.doc blockquote p { margin: 0; }
.doc .shots { display: flex; gap: 18px; flex-wrap: wrap; margin: 22px 0; }
.doc .shots img { width: 250px; border-radius: 26px; border: 5px solid #1b2433; background: #000; box-shadow: var(--shadow-md); }
.doc table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.92rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--muted); font-weight: 650; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.doc code { background: var(--card-2); padding: 2px 6px; border-radius: 6px; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.toc { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; margin: 0 0 8px; }
.toc ul { margin: 0; padding-left: 1.1em; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
.toc li::marker { color: var(--brand); }

/* ───────────── Pied de page ───────────── */
.site-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; padding: 28px 16px 10px; font-size: 0.84rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.disclaimer { max-width: 760px; margin: 0 auto; padding: 4px 16px 32px; text-align: center; color: var(--muted); font-size: 0.8rem; }

@media (max-width: 1000px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .topbar { gap: 10px 16px; padding: 10px 16px; }
  .topbar nav { order: 3; width: 100%; }
  .topbar nav a { padding: 7px 10px; }
  .topbar-tools { order: 2; }
  .page-home .topbar { position: absolute; background: linear-gradient(180deg, rgba(5, 14, 30, 0.7), rgba(5, 14, 30, 0)); }
  .hero-inner { grid-template-columns: 1fr; padding: 150px 16px 60px; }
  .hero-media { background-image: url('cumulo-hero-poster-mobile.webp'); background-position: center top; }
  .hero-media::after { background: linear-gradient(180deg, rgba(5, 14, 30, 0.55) 0%, rgba(5, 14, 30, 0.35) 50%, var(--bg) 100%); }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 48px 20px; }
  .feature-row.reverse .media { order: 0; }
  .sky { height: 286px; }
  .card { padding: 22px 18px; }
  .toc ul { columns: 1; }
  .doc .shots img { width: calc(50% - 9px); }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .landing-section { padding: 56px 16px 16px; }
  .landing-final { margin: 56px 16px 32px; padding: 40px 22px; border-radius: 22px; }
  .privacy-card { margin: 16px; }
  .btn-hero { flex: 1 1 auto; justify-content: center; }
  .brand span { display: none; }
}
