/* Ankoay Studio — feuille de style du site */
:root {
  --bg: #14110F;
  --bg-alt: #1B1714;
  --surface: #221D19;
  --border: #352D27;
  --text: #F3EDE7;
  --muted: #B3A99F;
  --orange: #E8892B;
  --orange-dark: #C96F17;
  --red: #FF5A4E;
  --on-orange: #1A1006;
  --radius: 14px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--orange); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.acc { color: var(--orange); }
.red { color: var(--red); }
.eyebrow { color: var(--orange); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .6em; }
.lead, .section-lead { color: var(--muted); font-size: 1.15rem; max-width: 62ch; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--orange); color: var(--on-orange); padding: 8px 12px; border-radius: 8px; }

/* ---- Boutons */
.btn {
  display: inline-block; background: var(--orange); color: var(--on-orange); font-weight: 700;
  padding: 13px 24px; border-radius: 10px; text-decoration: none; border: 2px solid var(--orange);
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); border-color: var(--orange); }
.btn-small { padding: 8px 16px; font-size: .95rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---- En-tête */
.top { position: sticky; top: 0; z-index: 50; background: rgba(20, 17, 15, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 1.15rem; font-weight: 600; }
.brand b { color: var(--orange); font-weight: 800; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .98rem; }
.menu a:hover { color: var(--orange); }
.menu a.btn { color: var(--on-orange); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* ---- Accueil */
.hero {
  background: radial-gradient(ellipse 70% 80% at 15% 0%, #3A2414 0%, var(--bg) 70%);
  padding: 90px 0 100px;
}
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-logos { position: relative; aspect-ratio: 1; max-width: 440px; justify-self: center; width: 100%; }
.hl { position: absolute; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.hl-main { width: 74%; left: 13%; top: 2%; }
.hl-a, .hl-b, .hl-c { width: 30%; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 4%; }
.hl-a { left: 0; bottom: 6%; }
.hl-b { left: 35%; bottom: 0; }
.hl-c { right: 0; bottom: 6%; }

/* ---- Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; }
.service { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 28px; border-left: 4px solid var(--orange); }
.service p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 20px 20px 20px 0; border-top: 2px solid var(--border); position: relative; }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--orange); font-weight: 800; font-size: 1.4rem; display: block; margin-bottom: 4px; }
.steps b { display: block; font-size: 1.1rem; }
.steps span { color: var(--muted); font-size: .95rem; }

/* ---- Produits */
.product { display: grid; grid-template-columns: 128px 1fr; gap: 32px; align-items: start; padding: 36px 0; border-bottom: 1px solid var(--border); }
.product:last-child { border-bottom: 0; }
.product-logo { width: 128px; height: 128px; }
.product-sub { color: var(--orange); font-weight: 700; margin-bottom: .6em; }
.product p { max-width: 70ch; }
.tag { display: inline-block; vertical-align: middle; font-size: .78rem; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; margin-left: 8px; }
.tag-free { color: var(--on-orange); background: var(--red); border-color: var(--red); }

/* ---- AnkoayPlay */
.play-head { display: flex; gap: 22px; align-items: center; margin-bottom: 36px; }
.play-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .1em; }
.play-head .section-lead { margin: 0; }
.video { margin: 0 0 64px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.video video { width: 100%; aspect-ratio: 16 / 9; }

.feature { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; margin: 0 0 64px; }
.feature img { border-radius: var(--radius); border: 1px solid var(--border); width: 100%; height: auto; }
.feature-rev img { order: 2; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
.note { color: var(--muted); font-size: .95rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 72px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 10px; border: 1px solid var(--border); width: 100%; height: auto; }
.gallery figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }

.download { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 40px; }
.download-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin-bottom: 24px; }
.download-head h3 { font-size: 1.7rem; margin: 0; }
.counter { margin: 0; color: var(--muted); font-size: 1.05rem; }
.counter b { color: var(--orange); font-size: 1.6rem; font-weight: 800; }
.version { margin: 0; color: var(--muted); flex-basis: 100%; }
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dl {
  display: grid; gap: 2px; text-decoration: none; color: var(--on-orange); background: var(--orange);
  border-radius: 14px; padding: 22px 26px; transition: background .15s, transform .15s;
}
.dl:hover { background: var(--orange-dark); transform: translateY(-2px); }
.dl-os { font-weight: 800; font-size: 1.3rem; }
.dl-file { font-weight: 600; }
.dl-meta { font-size: .9rem; opacity: .8; }
.help { margin-top: 22px; color: var(--muted); }
.help summary { cursor: pointer; color: var(--text); font-weight: 600; }
.help p { margin: .8em 0; }
.help pre { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; overflow-x: auto; color: var(--text); }
.all-versions { margin: 18px 0 0; font-size: .95rem; }

/* ---- Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 30px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { display: grid; text-decoration: none; color: var(--text); padding: 14px 18px; border-radius: 12px; border: 1px solid var(--border); }
.contact-list a:hover { border-color: var(--orange); }
.contact-list b { color: var(--orange); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.contact-empty { color: var(--muted); margin: 0; }

/* ---- Pied de page */
.foot { padding: 40px 0; border-top: 1px solid var(--border); color: var(--muted); }
.foot-in p { margin: 8px 0 0; }
.small { font-size: .82rem; }

/* ---- Mobile */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px 24px 20px;
  }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .menu a.btn { margin-top: 14px; text-align: center; border-bottom: 0; }
  .hero { padding: 56px 0 64px; }
  .hero-in, .feature, .contact { grid-template-columns: 1fr; }
  .hero-logos { max-width: 300px; order: -1; }
  .feature-rev img { order: 0; }
  .services, .dl-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; gap: 16px; }
  .product-logo { width: 96px; height: 96px; }
  .section { padding: 64px 0; }
  .download { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dl:hover { transform: none; }
}
