/* ATOM Launcher : site */
@font-face { font-family: Unbounded; src: url(fonts/unbounded-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Unbounded; src: url(fonts/unbounded-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Figtree; src: url(fonts/figtree-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Figtree; src: url(fonts/figtree-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Figtree; src: url(fonts/figtree-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Figtree; src: url(fonts/figtree-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --night: #10151d;      /* fond */
  --slate: #171e29;      /* surfaces */
  --slate-2: #1f2835;
  --line: rgba(255, 255, 255, .09);
  --text: #eceae4;
  --muted: #a3aab6;
  --gold: #e8a33d;       /* couleur du launcher (modifiable) */
  --ink: #1b1306;        /* texte sur or */
  --leaf: #62c15a;
  --display: Unbounded, "Segoe UI", system-ui, sans-serif;
  --body: Figtree, "Segoe UI", system-ui, sans-serif;
  --r: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--night); color: var(--text); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font: .9em/1 Consolas, "Cascadia Mono", monospace; background: rgba(255,255,255,.07); padding: .15em .4em; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 12px; }

/* ---------------------------------------------------------------- boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 8px; font: 600 15px/1 var(--body); text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s; }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 3px 0 rgba(0,0,0,.28); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.28); }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 26px; font-size: 17px; }
.btn svg { width: 19px; height: 19px; fill: currentColor; }

/* ---------------------------------------------------------------- logo */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo span { font: 700 19px/1 var(--display); letter-spacing: .12em; }
.atom { width: 30px; height: 30px; flex: none; }
.atom .orb { stroke-opacity: .55; }
.atom .nuc { fill: var(--gold); }
.atom .el { fill: #fff; }
.logo.small span { font-size: 15px; }
.logo.small .atom { width: 24px; height: 24px; }

/* ---------------------------------------------------------------- navigation */
.nav { position: fixed; z-index: 20; inset: 0 0 auto; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(16, 21, 29, .92); backdrop-filter: blur(10px); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 36px; height: 68px; }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { text-decoration: none; font-weight: 500; font-size: 15px; color: rgba(255,255,255,.78); }
.links a:hover { color: #fff; }
.burger { display: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: 92vh; min-height: 92svh; padding: 132px 0 72px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url(img/bg.jpg) center 60% / cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(16,21,29,.94) 0%, rgba(16,21,29,.78) 34%, rgba(16,21,29,.35) 70%, rgba(16,21,29,.55) 100%),
  linear-gradient(0deg, var(--night) 0%, rgba(16,21,29,0) 30%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.2vw, 58px); line-height: 1.06; max-width: 13ch; }
.lead { margin-top: 24px; font-size: 19px; color: #cfd2d8; max-width: 44ch; }
.cta { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.dl-meta { font-size: 14px; color: var(--muted); }
.window { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 80px -20px rgba(0,0,0,.7), 0 0 0 6px rgba(255,255,255,.03); transform-origin: left center; }

/* ouverture : le logo se dessine, puis le texte et la fenêtre arrivent */
@media (prefers-reduced-motion: no-preference) {
  .nav .atom .orb ellipse { stroke-dasharray: 90; stroke-dashoffset: 90; animation: draw .9s ease forwards; }
  .nav .atom .orb ellipse:nth-child(2) { animation-delay: .15s; }
  .nav .atom .orb ellipse:nth-child(3) { animation-delay: .3s; }
  .hero h1, .lead, .cta { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero h1 { animation-delay: .2s; } .lead { animation-delay: .32s; } .cta { animation-delay: .44s; }
  .window { animation: win 1s cubic-bezier(.2,.7,.2,1) .35s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes win { from { opacity: 0; transform: perspective(1400px) rotateY(-10deg) translateX(40px); } }

/* ---------------------------------------------------------------- sections */
.section { padding: 112px 0; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.sec-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* launcher : fonctionnalités en alternance */
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-text { order: 2; }
.feature h3 { font-size: 24px; line-height: 1.25; }
.feature-text > p { margin-top: 14px; color: #c9ccd3; }
.shot { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(0,0,0,.65); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--muted); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px; border: solid var(--gold); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.swatches button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; background: var(--c); box-shadow: inset 0 0 0 3px var(--night); cursor: pointer; transition: transform .15s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button.on { border-color: #fff; }
.hint { margin-top: 10px; font-size: 13px; color: #737b88; }

/* pack */
.pack { background: var(--slate); border-block: 1px solid var(--line); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 240px 240px; gap: 12px; }
.mosaic figure { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--slate-2); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic figure:hover img { transform: scale(1.04); }
.mosaic figcaption { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 6px; background: rgba(16,21,29,.8); font-size: 13px; font-weight: 600; }
.m1 { grid-column: span 2; grid-row: span 2; }
.m4 { grid-column: span 1; }
.m5 { grid-column: span 1; }
.atomone { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: center; padding: 32px; border-radius: 14px; background: var(--night); border: 1px solid var(--line); }
.atomone h3 { font-size: 22px; }
.atomone p { margin-top: 12px; color: #c9ccd3; max-width: 58ch; }
.atomone img { border-radius: 8px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* installer : étapes */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.steps::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; background: linear-gradient(90deg, var(--gold), rgba(255,255,255,.08)); }
.steps li { counter-increment: s; position: relative; }
.steps li::before { content: counter(s); position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--night); border: 2px solid var(--gold); color: var(--gold); font: 700 18px/1 var(--display); margin-bottom: 22px; }
.steps h3 { font-size: 19px; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.steps b { color: var(--text); font-weight: 600; }
.reqs { margin-top: 72px; padding-top: 40px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
.reqs h3 { font-size: 19px; }
.reqs dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.reqs dt { font-size: 14px; color: var(--muted); }
.reqs dd { margin: 2px 0 0; font-weight: 600; }

/* actualités */
.news { background: var(--slate); border-block: 1px solid var(--line); }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post { border-radius: var(--r); overflow: hidden; background: var(--night); border: 1px solid var(--line); }
.post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--slate-2); }
.post > div { padding: 18px 20px 20px; }
.post h3 { margin-top: 10px; font-size: 17px; line-height: 1.3; }
.post p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.post time { display: block; margin-top: 12px; font-size: 13px; color: #737b88; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.t-update { background: rgba(98,193,90,.16); color: #7fd677; }
.t-event { background: rgba(232,163,61,.18); color: #f0b55a; }
.t-pack { background: rgba(59,156,255,.16); color: #74b7ff; }
.t-info { background: rgba(255,255,255,.1); color: #d3d6dc; }

/* questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); border-color: var(--gold); }
.faq summary:hover { color: #fff; }
.faq details p { padding: 0 44px 24px 0; color: #c2c6ce; max-width: 68ch; }

/* fin */
.final { position: relative; padding: 140px 0; overflow: hidden; text-align: center; }
.final-bg { position: absolute; inset: 0; background: url(img/plateau.jpg) center / cover; }
.final-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--night) 0%, rgba(16,21,29,.72) 40%, rgba(16,21,29,.85) 100%); }
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final h2 { font-size: clamp(30px, 4vw, 52px); margin-bottom: 14px; }

/* pied de page */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; }
.foot nav { display: flex; gap: 24px; justify-content: flex-end; }
.foot nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot nav a:hover { color: #fff; }
.legal { grid-column: 1 / -1; font-size: 13px; color: #6f7784; }

/* ---------------------------------------------------------------- tablette et mobile */
@media (max-width: 980px) {
  .hero { min-height: 0; padding-top: 120px; }
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 14ch; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-text { order: 0; }
  .feature + .feature { margin-top: 72px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 180px 180px; }
  .m1 { grid-column: span 2; grid-row: span 1; }
  .atomone { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), rgba(255,255,255,.08)); }
  .steps li { padding-left: 70px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .reqs { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .nav-in { gap: 12px; height: 60px; }
  .nav .dl { margin-left: auto; }
  .burger { display: grid; place-content: center; gap: 6px; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: rgba(23,30,41,.8); cursor: pointer; }
  .burger i { display: block; width: 18px; height: 2px; background: #fff; transition: transform .2s; }
  .burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
  .burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }
  .links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: rgba(16,21,29,.97); border-bottom: 1px solid var(--line); }
  .links.open { display: flex; }
  .links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav.menu { background: rgba(16,21,29,.97); }
  .section { padding: 80px 0; }
  .sec-head { margin-bottom: 40px; }
  .lead { font-size: 17px; }
  .btn-lg { padding: 16px 20px; font-size: 16px; }
  .mosaic { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .m1 { grid-column: auto; }
  .atomone { padding: 20px; }
  .reqs dl { grid-template-columns: 1fr; }
  .final { padding: 100px 0; }
  .foot-in { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
