/* Octely Remote — site de téléchargement. Charte : pack graphique Octely 2026 (tokens.json). */
:root {
  --navy: #081220;
  --navy-2: #0B182A;
  --panel: #101F33;
  --border: #29405D;
  --primary: #2563EB;
  --light: #06B6D4;
  --cyan: #06B6D4;
  --text: #F4F8FF;
  --text-2: #9FB3CC;
  --muted: #9FB3CC;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #06B6D4;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  /* Inter (police web du kit) si installée, sinon police système : aucune police téléchargée. */
  --font: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--light); }
a:hover { color: var(--cyan); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
img, svg { max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ───── En-tête ───── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(8, 18, 32, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 700; font-size: 26px; line-height: 1; letter-spacing: -.01em; }
.brand-name .dot { color: var(--cyan); }
.brand-name small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: .02em; margin-top: 2px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--text); }

/* ───── Boutons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius-s); border: 1px solid transparent;
  font: 600 16px/1.2 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(37, 99, 235, .35); }
.btn-primary:hover { background: #3B74F0; color: #fff; transform: translateY(-1px); }
.btn-secondary { background: #182B43; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--light); color: #fff; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }

/* ───── Accueil ───── */
.hero { position: relative; overflow: hidden; padding: 72px 0 140px; }
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px;
  background: url("wave.svg") center bottom / 100% 100% no-repeat; opacity: .75; pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  background: rgba(6, 182, 212, .1); border: 1px solid rgba(6, 182, 212, .35); color: var(--cyan);
  font-size: 13px; font-weight: 600;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; margin: 18px 0 16px; letter-spacing: -.02em; }
.hero h1 span { background: linear-gradient(90deg, var(--cyan), var(--light)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: 18px; max-width: 560px; margin: 0 0 28px; }
.download-box { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.file-meta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.file-meta code { color: var(--text-2); word-break: break-all; font-size: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; color: var(--text-2); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--success); }

/* Aperçu de l'application (illustration en HTML/CSS, pas une capture) */
.preview {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-l);
  padding: 22px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45);
}
.preview-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.preview-top img { width: 34px; height: 34px; }
.preview-top strong { display: block; font-size: 15px; }
.preview-top small { color: var(--muted); }
.code-card { background: #182B43; color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-l); padding: 18px; }
.code-card label { font-weight: 600; font-size: 14px; }
.code-value { margin: 10px 0 14px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--navy); color: var(--cyan); text-align: center; font: 700 30px/1.2 Consolas, "Courier New", monospace; letter-spacing: .08em; }
.code-card .fake-btn { background: var(--primary); color: #fff; border-radius: 9px; text-align: center; padding: 10px; font-weight: 600; }
.preview-note { display: flex; gap: 8px; margin-top: 14px; color: var(--muted); font-size: 12.5px; }
.preview-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* ───── Sections ───── */
section { padding: 72px 0; }
.section-alt { background: var(--navy-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 10px; letter-spacing: -.01em; }
.section-lead { color: var(--text-2); max-width: 720px; margin: 0 0 36px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 24px; }
.card h3 { margin: 12px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.icon { width: 30px; height: 30px; color: var(--light); }
.step-num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--primary)); font-weight: 800; font-size: 17px;
}

/* Autorisations */
.consent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.consent .card { position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; color: #fff;
}
.badge svg { width: 14px; height: 14px; }
.badge-info { background: var(--info); }
.badge-warning { background: var(--warning); color: #111; }
.badge-success { background: var(--success); }
.badge-danger { background: var(--danger); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; color: var(--text-2); }
.checklist svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 3px; }
.checklist.no svg { color: var(--danger); }

/* FAQ */
details { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-m); padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--text-2); margin: 10px 0 0; }

/* ───── Pages légales ───── */
.legal { max-width: 820px; padding: 48px 16px 72px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 8px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; color: var(--light); }
.legal p, .legal li { color: var(--text-2); }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--panel); color: var(--text); }
.todo { background: rgba(245, 158, 11, .14); border: 1px dashed var(--warning); color: #FCD34D; padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.notice { background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .5); border-radius: var(--radius-m); padding: 14px 16px; color: #FDE68A; font-size: 14.5px; }

/* ───── Pied de page ───── */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: #fff; }

/* ───── Responsive ───── */
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .consent { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 120px; }
  .preview { max-width: 460px; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  section { padding: 52px 0; }
  .btn { width: 100%; }
  .lead { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
