/* ARN Software — feuille de style unique du site. */

@font-face { font-family: "Mulish"; src: url("../fonts/mulish-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../fonts/mulish-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("../fonts/mulish-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --brand: #4a4794;
  --brand-strong: #3b3880;
  --brand-soft: #efeef9;
  --cyan: #6ac6da;
  --cyan-strong: #1f8ea6;
  --cyan-soft: #e6f6fa;
  --lavender: #8177b1;
  --ink: #1b1d2e;
  --muted: #5d6072;
  --line: #e4e4ee;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(27, 29, 46, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #a9a4f0;
    --brand-strong: #c4c0ff;
    --brand-soft: #24233f;
    --cyan: #6ac6da;
    --cyan-strong: #7fd6e8;
    --cyan-soft: #15313a;
    --lavender: #a59cd6;
    --ink: #eceaf6;
    --muted: #a6a8bb;
    --line: #2c2d42;
    --bg: #121320;
    --bg-soft: #191a2b;
    --card: #1c1d30;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; font-weight: 900; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.2rem; font-weight: 800; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 10px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section.soft { background: var(--bg-soft); }
.kicker { display: inline-block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-strong); margin-bottom: 10px; }
.lead { font-size: clamp(1.08rem, 2vw, 1.25rem); color: var(--muted); max-width: 700px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .brand .logo-light { display: none; } .brand .logo-dark { display: block; } }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.97rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--brand-soft); color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav .btn { margin-left: 6px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 10px; }
.menu-toggle svg { width: 28px; height: 28px; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; text-align: center; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff !important; }
.btn-primary:hover { background: var(--brand-strong); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #15142b !important; } }
.btn-ghost { background: transparent; border-color: var(--brand); color: var(--brand) !important; }
.btn-ghost:hover { background: var(--brand-soft); }
.btn-light { background: #fff; color: #3b3880 !important; }
.nav a.btn-primary { color: #fff; padding: 10px 18px; }
@media (prefers-color-scheme: dark) { .nav a.btn-primary { color: #15142b; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.center .actions { justify-content: center; }

/* Hero */
.hero { padding: 80px 0 64px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 28%, transparent), transparent 65%);
  z-index: -1;
}
.hero::after {
  content: ""; position: absolute; inset: auto auto -50% -15%; width: 640px; height: 640px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--lavender) 22%, transparent), transparent 65%);
  z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero .lead { margin-bottom: 28px; }
.hero-visual { position: relative; display: flex; justify-content: center; gap: 18px; }
.hero-visual img { width: 46%; border-radius: 26px; box-shadow: 0 24px 50px rgba(27, 29, 46, 0.18); }
.hero-visual img:nth-child(2) { margin-top: 48px; }
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; font-weight: 900; color: var(--brand); line-height: 1.2; }
.stat span { font-size: 0.9rem; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card .muted { font-size: 0.97rem; }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--brand-soft); color: var(--brand);
}
.icon svg { width: 26px; height: 26px; }
.icon.cyan { background: var(--cyan-soft); color: var(--cyan-strong); }
.price { margin-top: 14px; font-weight: 800; color: var(--brand); font-size: 0.95rem; }

/* Projects */
.project { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.project-visual { height: 280px; background: var(--c-soft, var(--brand-soft)); overflow: hidden; position: relative; }
.project-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-visual.phone img { width: auto; height: 120%; margin: 24px auto 0; border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); object-fit: contain; }
.badge { position: absolute; top: 14px; left: 14px; background: #fff; color: #1b1d2e; font-size: 0.75rem; font-weight: 800; padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.project-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-meta { display: flex; align-items: center; gap: 12px; }
.project-meta img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.project-meta h3 { margin: 0; font-size: 1.3rem; }
.project-type { font-size: 0.85rem; font-weight: 700; color: var(--c-strong, var(--brand)); }
.project-body p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 0.8rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); }
.project .actions { margin-top: auto; padding-top: 4px; }
.project .btn { padding: 10px 18px; font-size: 0.93rem; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .steps li::before { color: #15142b; } }
.steps h3 { font-size: 1.02rem; margin-bottom: 6px; }
.steps p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* App showcase */
.app-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.app-row + .app-row { margin-top: 64px; }
.app-row.reverse .app-text { order: 2; }
.app-shots { display: flex; gap: 14px; justify-content: center; }
.app-shots img { width: 44%; border-radius: 22px; box-shadow: 0 18px 40px rgba(27, 29, 46, 0.16); }
.app-shots img:nth-child(2) { margin-top: 36px; }
.app-title { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app-title img { width: 64px; height: 64px; border-radius: 16px; }
.app-title h3 { font-size: 1.6rem; margin: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 18px; height: 18px; border-radius: 50%; background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8ea6' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: block; line-height: 0; border-radius: 10px; transition: transform 0.15s; }
.stores a:hover { transform: translateY(-2px); }
.stores svg, .stores img { height: 50px; width: auto; }

/* Chips & tech */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.chips li { padding: 9px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: 0.93rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--brand); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* CTA band */
.cta { background: linear-gradient(135deg, #4a4794, #6a5fae 55%, #3d9fb5); color: #fff; border-radius: 28px; padding: 52px 28px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #e9e7fb; max-width: 640px; margin: 0 auto 24px; }
.cta .stores { justify-content: center; }

/* Prose (legal pages, case studies) */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.4em; }

/* Case study */
.case-hero { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 40px; border-radius: 28px; background: linear-gradient(150deg, var(--c-soft, var(--brand-soft)), var(--bg) 80%); margin-top: 32px; }
.case-hero > img { width: 120px; height: 120px; border-radius: 28px; box-shadow: var(--shadow); }
.case-hero h1 { margin-bottom: 8px; }
.case-hero .kicker { color: var(--c-strong, var(--brand)); }
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 0; }
.numbers div { background: var(--c-soft, var(--brand-soft)); border-radius: var(--radius-sm); padding: 18px; text-align: center; }
.numbers b { display: block; font-size: 1.7rem; font-weight: 900; color: var(--c-strong, var(--brand)); line-height: 1.2; }
.numbers span { font-size: 0.88rem; color: var(--muted); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shots img { border-radius: 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.box h3 { color: var(--c-strong, var(--brand)); }
.box ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.box li { margin-bottom: 6px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 24px; border-left: 3px solid var(--c-soft, var(--brand-soft)); }
.timeline li { position: relative; margin: 0 0 20px; }
.timeline li::before { content: ""; position: absolute; left: -33px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--c-strong, var(--brand)); border: 3px solid var(--bg); }
.timeline b { display: block; color: var(--c-strong, var(--brand)); }
@media (prefers-color-scheme: dark) {
  .case-hero, .numbers div, .project-visual { --c-soft: var(--brand-soft); }
}

/* App landing pages (PASS, IFSI) */
.app-hero { text-align: center; padding: 56px 24px 48px; margin-top: 28px; border-radius: 28px; background: linear-gradient(160deg, var(--c-soft), var(--bg) 75%); display: grid; gap: 18px; justify-items: center; }
.app-hero > img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14); }
.app-hero h1 { margin: 0; }
.app-hero .lead { margin: 0; }
.app-hero .stores { justify-content: center; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.pills li { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 700; color: var(--c-strong); }
.emoji { font-size: 1.8rem; line-height: 1; margin-bottom: 12px; }
.cols-2 { columns: 2; column-gap: 32px; }
.cols-2 li { break-inside: avoid; margin-bottom: 6px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: start; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; font-size: 0.95rem; }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--muted); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 14px; padding: 14px 18px; font-weight: 700; display: none; }
.notice.ok { display: block; background: #e3f5ea; color: #136c3a; }
.notice.err { display: block; background: #fde8e8; color: #9b1c1c; }
@media (prefers-color-scheme: dark) { .notice.ok { background: #13321f; color: #8de0a9; } .notice.err { background: #3a1717; color: #f6a6a6; } }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 72px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 12px; }
.footer-brand .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .footer-brand .logo-light { display: none; } .footer-brand .logo-dark { display: block; } }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.88rem; }

/* Responsive */
@media (max-width: 960px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-grid, .app-row, .contact-grid { grid-template-columns: 1fr; }
  .app-row.reverse .app-text { order: 0; }
  .hero { padding-top: 48px; }
  .hero-visual { max-width: 420px; margin: 0 auto; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .stats, .numbers { grid-template-columns: repeat(2, 1fr); }
  .case-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 18px; }
  .case-hero .tags, .case-hero .stores { justify-content: center; }
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shots img { scroll-snap-align: center; }
  .cols-2 { columns: 1; }
  .section { padding: 52px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-4, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .card { padding: 22px; }
  .cta { padding: 40px 20px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .stores a { transition: none; } }
.btn svg { width: 18px; height: 18px; flex: none; }
.project-visual picture { display: contents; }
