/* Opervia — site vitrine. Couleurs de l'application ; polices du système. */
:root {
  --blue: #0066ff;
  --blue-dark: #0052cc;
  --navy: #0b2545;
  --ink: #12213a;
  --muted: #526179;
  --line: #dde5f0;
  --tint: #eef3fa;
  --light-blue: #e8f0ff;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(11, 37, 69, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--small { padding: 9px 18px; font-size: .92rem; }
.btn--light { background: #fff; color: var(--navy); }
.btn--outline-light { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--outline-light:hover { border-color: #fff; }

/* En-tête */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { width: 160px; height: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--blue); }

/* Accroche */
.hero { background: radial-gradient(1100px 520px at 85% 10%, #dbe8ff 0%, rgba(219, 232, 255, 0) 60%), linear-gradient(#f7faff, #fff); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 88px; }
.kicker { color: var(--blue); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 14px; }
h1 span { color: var(--blue); }
.lead { font-size: 1.18rem; color: var(--muted); margin-top: 22px; max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero__points li::before { content: "✓"; color: var(--blue); font-weight: 800; margin-right: 8px; }
.hero__visual { position: relative; height: 560px; }

/* Cadres d'appareils */
.phone { margin: 0; background: #0b1424; border-radius: 42px; padding: 11px; box-shadow: var(--shadow); width: 260px; }
.phone img { border-radius: 32px; }
.phone--front { position: absolute; left: 6%; top: 40px; z-index: 3; }
.phone--back { position: absolute; right: 4%; top: 0; z-index: 1; transform: rotate(4deg); }
.phone--solo { width: 300px; justify-self: center; }
.tablet { margin: 40px 0 0; background: #0b1424; border-radius: 30px; padding: 14px; box-shadow: var(--shadow); }
.tablet img { border-radius: 18px; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: #fff; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head .sub, .sub { color: var(--muted); font-size: 1.08rem; margin-top: 14px; }
.section__head--light h2 { color: #fff; }
.section__head--light .sub { color: #b9c6dc; }
.section__head--light .kicker { color: #8db8ff; }

/* Cartes */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); margin-top: 8px; font-size: .96rem; }
.card__icon { width: 46px; height: 46px; border-radius: 13px; background: var(--light-blue); display: grid; place-items: center; margin-bottom: 16px; }
.card__icon svg, .platform svg { width: 24px; height: 24px; fill: none; stroke: var(--blue); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card--accent { background: var(--blue); border-color: var(--blue); display: flex; flex-direction: column; }
.card--accent h3, .card--accent p { color: #fff; }
.card--accent p { opacity: .9; }
.card--accent .link { color: #fff; font-weight: 700; margin-top: auto; padding-top: 16px; text-decoration: none; }

/* Deux colonnes */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.split--top { align-items: start; grid-template-columns: .9fr 1.1fr; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.checks li { padding-left: 34px; position: relative; color: var(--muted); }
.checks li strong { color: var(--navy); display: block; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }

/* Plateformes */
.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform { border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; font-weight: 700; background: rgba(255, 255, 255, .04); }
.platform svg { width: 38px; height: 38px; stroke: #8db8ff; stroke-width: 1.6; }

/* Sécurité */
.security { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.security li { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; display: grid; gap: 2px; }
.security strong { color: var(--navy); }
.security span { color: var(--muted); font-size: .96rem; }

/* Appel à l'action */
.cta { background: linear-gradient(120deg, var(--navy), #123a72 60%, var(--blue)); color: #fff; border-radius: 28px; padding: 52px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta p { color: #d4e1f5; margin-top: 10px; max-width: 34em; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Pied de page */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.footer__inner { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; }
.footer__nav { display: flex; gap: 22px; justify-content: flex-end; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.footer__nav a:hover { color: var(--blue); }
.footer__legal { grid-column: 1 / -1; color: var(--muted); font-size: .88rem; }

/* Page 404 */
.notfound { max-width: 640px; text-align: center; }
.notfound h1 { font-size: 2.2rem; }
.notfound__logo { margin: 0 auto 40px; width: 180px; }
.notfound__text { margin: 16px 0 30px; }

/* Tablette */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero__inner { grid-template-columns: 1fr; padding-top: 56px; }
  .hero__visual { height: 520px; max-width: 560px; width: 100%; margin-inline: auto; }
  .split, .split--top { grid-template-columns: 1fr; gap: 40px; }
  .platforms { grid-template-columns: repeat(2, 1fr); }
}
/* Téléphone */
@media (max-width: 680px) {
  .nav { display: none; }
  .top__inner { justify-content: space-between; }
  .brand img { width: 132px; }
  .section { padding: 68px 0; }
  .grid { grid-template-columns: 1fr; }
  .hero__visual { height: 470px; }
  .phone { width: 210px; border-radius: 34px; padding: 9px; }
  .phone img { border-radius: 26px; }
  .phone--front { left: 0; }
  .phone--back { right: 0; }
  .phone--solo { width: 250px; }
  .tablet { padding: 8px; border-radius: 18px; }
  .tablet img { border-radius: 12px; }
  .cta { padding: 34px 26px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { justify-content: flex-start; }
}
