/* AURALIS — site vitrine. Aucune police ni ressource externe : rien ne quitte la page. */
:root {
  --bg: #08080a;
  --bg-2: #0f0f12;
  --panel: #141418;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f2f0ec;
  --muted: #a3a09a;
  --dim: #6b6862;
  --amber: #e9a949;
  --amber-glow: rgba(233, 169, 73, 0.18);
  --green: #5fd08a;
  --metal: linear-gradient(180deg, #2c2c31 0%, #1b1b1f 55%, #25252a 100%);
  --metal-edge: linear-gradient(180deg, rgba(255,255,255,.18), rgba(0,0,0,.6));
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 16px;
  --max: 1160px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* En-tête */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 8, 10, 0.78); backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 24px; height: 76px; transition: height .3s ease; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: auto; height: 46px; }
nav.main { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav.main a { color: var(--muted); font-size: 14px; }
nav.main a:hover { color: var(--text); text-decoration: none; }
.lang { font-size: 13px; border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(180deg, #f2b65a, #d99632); color: #1a1205; box-shadow: 0 8px 30px rgba(233,169,73,.25); }
.btn-primary:hover { box-shadow: 0 10px 40px rgba(233,169,73,.38); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.03); }
.btn-small { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 7px 11px; font-size: 14px; cursor: pointer; }

/* Héros */
.hero { position: relative; padding: 96px 0 56px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 620px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(233,169,73,.16), transparent 70%);
}
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--dim); font-weight: 600; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(38px, 6.4vw, 74px); margin: 18px auto 18px; max-width: 900px; }
h1 em { font-style: normal; color: var(--amber); }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 720px; margin: 0 auto 32px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.meta { margin-top: 16px; font-size: 13px; color: var(--dim); }
.dl-count { margin-top: 6px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.hero-shot { margin: 56px auto 0; max-width: 1100px; position: relative; }
.hero-shot img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.6); }

/* Sections */
section { padding: 88px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 14px 0 0; }

/* Promesse (façade) */
.faceplate {
  background: var(--metal); border-radius: 22px; padding: 26px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.faceplate::after { content: ""; position: absolute; inset: 0; border-radius: 22px; padding: 1px; background: var(--metal-edge);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.readouts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.readout { background: #000; border-radius: 12px; padding: 18px 14px; text-align: center; border: 1px solid rgba(255,255,255,.06); }
.readout strong { display: block; font-family: var(--mono); font-weight: 300; font-size: clamp(22px, 3vw, 32px); color: var(--amber); text-shadow: 0 0 18px rgba(233,169,73,.45); }
.readout span { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); }

/* Fonctionnalités */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--amber-glow); color: var(--amber); margin-bottom: 16px; }
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* Vitrine (texte + capture) */
.showcase { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; }
.showcase + .showcase { margin-top: 96px; }
.showcase.reverse { grid-template-columns: 1.35fr 1fr; }
.showcase.reverse .copy { order: 2; }
.showcase h3 { font-size: clamp(26px, 3vw, 36px); margin: 10px 0 14px; }
.showcase p { color: var(--muted); }
.showcase ul { padding: 0; margin: 18px 0 0; list-style: none; }
.showcase li { padding: 6px 0 6px 26px; position: relative; color: var(--text); }
.showcase li::before { content: ""; position: absolute; left: 4px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.shot { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.55); cursor: zoom-in; transition: scale .25s ease; }
.shot:hover { scale: 1.01; }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 13px; color: var(--dim); margin-top: 8px; }

/* Formats */
table.formats { width: 100%; border-collapse: collapse; font-size: 15px; }
table.formats th, table.formats td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.formats th { color: var(--dim); font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.tag { display: inline-block; font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 999px; background: rgba(95,208,138,.12); color: var(--green); }
.tag.soon { background: rgba(255,255,255,.06); color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

/* Téléchargement */
.download { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.card h3 { font-size: 26px; margin-bottom: 6px; }
.platform { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--muted); }
.specs { list-style: none; padding: 0; margin: 20px 0; font-size: 14px; color: var(--muted); }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.specs li b { color: var(--text); font-weight: 500; text-align: right; }
.hash { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.hash code { font-family: var(--mono); font-size: 11.5px; color: var(--muted); background: #000; padding: 8px 10px; border-radius: 8px; overflow-x: auto; white-space: nowrap; flex: 1; min-width: 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 14px 0 0; }
.steps li { counter-increment: s; padding: 8px 0 8px 40px; position: relative; color: var(--muted); font-size: 15px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--amber-glow); color: var(--amber); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.note { font-size: 13.5px; color: var(--muted); background: rgba(233,169,73,.07); border: 1px solid rgba(233,169,73,.2); border-radius: 12px; padding: 14px 16px; margin-top: 18px; }
.windows-card { display: flex; flex-direction: column; justify-content: space-between; }
.badge-soon { display: inline-block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 22px; color: var(--amber); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* Pied de page */
footer.site { padding: 48px 0 64px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

/* Pages de texte */
.prose { max-width: 760px; padding: 72px 0 96px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); text-align: left; margin: 0 0 24px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose .version { display: flex; gap: 12px; align-items: baseline; }
.prose .version time { color: var(--dim); font-size: 14px; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 4vw; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 10px; box-shadow: 0 30px 120px rgba(0,0,0,.8); }
.lightbox button { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 34px; cursor: pointer; line-height: 1; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .showcase, .showcase.reverse { grid-template-columns: 1fr; gap: 28px; }
  .showcase.reverse .copy { order: 0; }
  .download { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-block; }
  nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: rgba(8,8,10,.97); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 10px 0; font-size: 16px; width: 100%; }
  .features { grid-template-columns: 1fr; }
  .readouts { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 40px; }
  .wrap { padding: 0 16px; }
}

section[id], [id="main"] { scroll-margin-top: 84px; }
.mb-56 { margin-bottom: 56px; }
table.formats .fmt-name { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 15px; }
.sha-label { font-size: 13px; color: var(--dim); }
.install-h { font-size: 20px; margin-top: 26px; }
.muted { color: var(--muted); }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: var(--text); }
.guide-card:hover { text-decoration: none; }
.guide-card h3 { font-size: 20px; margin-bottom: 8px; }
.guide-card p { color: var(--muted); margin: 0; font-size: 15px; }
.prose.guide h1 { font-size: clamp(30px, 4.4vw, 46px); }
.prose .lead { font-size: 19px; color: var(--text); }
.prose strong { color: var(--text); font-weight: 600; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 18px; }
.guide-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 40px 0 8px; padding: 22px; border: 1px solid rgba(233,169,73,.25); border-radius: var(--radius); background: rgba(233,169,73,.06); }
.guide-cta span { color: var(--muted); font-size: 14px; }
.related { padding-left: 18px; }
.related li { margin: 6px 0; }
@media (max-width: 760px) { .guides { grid-template-columns: 1fr; } }

/* Vidéo de démonstration */
#demo .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.video-frame { max-width: 880px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0,0,0,.6); background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; max-width: 100%; display: block; object-fit: contain; }
.video-note { font-size: 13px; margin: 12px auto 0; text-align: center; max-width: 880px; }

/* Kit presse */
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.brand-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.brand-card img { height: 150px; width: 100%; object-fit: contain; padding: 28px; box-sizing: border-box; }
.brand-card.dark img { background: #08080a; }
.brand-card.light img { background: #f4f1ea; }
.brand-card figcaption { font-size: 13px; color: var(--muted); padding: 10px 14px; background: var(--panel); border-top: 1px solid var(--line); }
.swatches { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.swatches li { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.swatches code { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.swatch { height: 64px; border-radius: 12px; border: 1px solid var(--line); }
.sw-08080a { background: #08080a; } .sw-f2f0ec { background: #f2f0ec; } .sw-e9a949 { background: #e9a949; }
.sw-b87a1e { background: #b87a1e; } .sw-f4f1ea { background: #f4f1ea; } .sw-5fd08a { background: #5fd08a; }
.press-shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) {
  .brand-grid, .press-shots { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand img { height: 38px; }
}

/* ——— Animations (désactivées si le système demande moins de mouvement, cf. règle en tête) ——— */

/* Barre de progression de lecture */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none;
  background: linear-gradient(90deg, #d99632, var(--amber)); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* En-tête : plus compact et plus opaque une fois la page défilée */
header.site.scrolled { background: rgba(8, 8, 10, 0.92); }
header.site.scrolled .wrap { height: 62px; }
header.site.scrolled .brand img { height: 38px; }
.brand img { transition: height .3s ease; }

/* Symbole du héros : l'anneau se trace, le A apparaît, l'onde traverse la lettre */
.hero-mark { display: block; width: 116px; height: 116px; margin: 0 auto 26px; overflow: visible; }
.hero-mark .hm-ring { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hm-draw 1.4s cubic-bezier(.65,0,.35,1) .1s forwards; }
.hero-mark .hm-a { opacity: 0; transform: translateY(14px); transform-origin: 256px 256px; animation: hm-rise .9s ease .55s forwards; }
.hero-mark .hm-wave { stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 10px rgba(233,169,73,.65));
  animation: hm-draw 1.2s cubic-bezier(.45,0,.2,1) 1.05s forwards, hm-glow 3.2s ease-in-out 2.4s infinite; }
@keyframes hm-draw { to { stroke-dashoffset: 0; } }
@keyframes hm-rise { to { opacity: 1; transform: none; } }
@keyframes hm-glow { 50% { filter: drop-shadow(0 0 18px rgba(233,169,73,.95)); } }

/* Entrée du titre et du héros au chargement */
.hero .eyebrow, .hero h1, .hero .lede, .hero .cta, .hero .meta { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .eyebrow { animation-delay: .35s; } .hero h1 { animation-delay: .45s; } .hero .lede { animation-delay: .6s; }
.hero .cta { animation-delay: .75s; } .hero .meta { animation-delay: .85s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Capture du héros : inclinée au départ, elle se redresse en défilant */
.hero-shot { perspective: 1600px; }
.hero-shot img { transform: rotateX(calc(14deg * (1 - var(--t, 1)))) scale(calc(.94 + .06 * var(--t, 1)));
  transform-origin: 50% 0; will-change: transform; transition: none; }

/* Apparitions au défilement, en cascade dans les grilles */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1), translate .25s ease, border-color .25s ease, box-shadow .25s ease;
  transition-delay: calc(var(--i, 0) * 90ms), calc(var(--i, 0) * 90ms), 0s, 0s, 0s; }
.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.zoom { transform: scale(.96); }
.reveal.in { transform: none; }

/* Survol des cartes */
/* « translate » est indépendant de « transform » : le survol ne perturbe pas les apparitions. */
.feature:hover, .guide-card:hover { translate: 0 -4px; border-color: rgba(233,169,73,.35); box-shadow: 0 18px 50px rgba(0,0,0,.45); }
.guide-card { transition: border-color .2s, translate .25s ease, box-shadow .25s ease; }

@media (prefers-reduced-motion: reduce) {
  .hero-mark .hm-ring, .hero-mark .hm-wave { stroke-dashoffset: 0; }
  .hero-mark .hm-a { opacity: 1; transform: none; }
  .hero-shot img { transform: none; }
  .reveal { opacity: 1; transform: none; }
  .progress { display: none; }
}

/* Boutons d'installation par système */
.os-cta { gap: 14px; }
.btn-os { display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; text-align: left; border-color: var(--line); color: var(--text); background: rgba(255,255,255,.04); }
.btn-os b { display: block; font-weight: 600; font-size: 16px; line-height: 1.2; }
.btn-os small { display: block; font-size: 12px; font-weight: 400; opacity: .72; margin-top: 2px; }
.btn-os .os-ico { width: 26px; height: 26px; flex: none; }
.btn-os.btn-primary { border-color: transparent; color: #1a1205; background: linear-gradient(180deg, #f2b65a, #d99632); box-shadow: 0 8px 30px rgba(233,169,73,.25); }
.btn-os:hover { transform: translateY(-1px); }
.platform { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 14px; }
.platform .os-ico { width: 22px; height: 22px; color: var(--amber, #e9a949); }
.meta a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) { .btn-os { width: 100%; } }

/* Formulaire de rapport de compatibilité */
.report-form { margin: 18px 0 28px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.report-form fieldset { border: 0; padding: 0; margin: 0 0 14px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.report-form legend { float: left; margin-right: 8px; font-weight: 600; }
.report-form label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 6px; }
.report-form label.radio { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-size: 15px; color: var(--text); }
.report-form input:not([type=radio]), .report-form select, .report-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--text); background: rgba(0,0,0,.35);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.report-form textarea { resize: vertical; font-family: var(--mono); font-size: 13px; }
.report-form input:focus, .report-form select:focus, .report-form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; }
.report-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.report-form .small { font-size: 13px; margin: 0 0 6px; }
@media (max-width: 640px) { .report-form .grid2 { grid-template-columns: 1fr; } }
