@font-face { font-family: "Onest"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/onest-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/onest-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/onest-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/onest-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 800; font-style: normal; font-display: swap; src: url("../fonts/onest-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --ground: #F1F5F3;
  --surface: #FFFFFF;
  --ink: #0C1F1B;
  --text: #23352F;
  --muted: #4D5F59;
  --line: #D7E3DE;
  --primary: #0E7A5F;
  --event: #C8ECDF;
  --event-ink: #073D30;
  --event2: #DCE7F3;
  --event2-ink: #1E3A5F;
  --panel: #0C1F1B;
  --panel-ink: #EEF6F3;
  --panel-muted: #9DB3AB;
  --gold: #F2B84B;
  --discord: #4752C4;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0B1512;
    --surface: #13221E;
    --ink: #E6EFEB;
    --text: #C6D8D2;
    --muted: #9DB3AB;
    --line: #22352F;
    --primary: #5DD4A9;
    --event: #12402F;
    --event-ink: #9FE5C6;
    --event2: #142A42;
    --event2-ink: #A9C8EE;
    --panel: #1B3A31;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ground);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -60px;
  background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 8px;
  z-index: 10; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 16px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

/* Haut */
.top { border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { height: 38px; width: auto; display: block; }
.logo--light { display: none; }
@media (prefers-color-scheme: dark) {
  .logo--dark { display: none; }
  .logo--light { display: block; }
}
.lang {
  min-width: 44px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.lang:hover { border-color: var(--primary); }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang__flag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(12, 31, 27, .15); display: block; }
html[lang="fr"] .lang__flag--fr, html[lang="en"] .lang__flag--en { display: none; }

/* Accroche */
main { flex: 1 0 auto; }
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 64px; }
.hero__text { flex: 1 1 440px; min-width: 0; }
.eyebrow {
  margin: 0 0 16px; display: inline-flex; align-items: center; gap: 10px;
  font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--primary);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}
h1 { margin: 0; font-size: clamp(38px, 6.2vw, 66px); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
.lead { margin: 24px 0 0; font-size: 19px; color: var(--text); max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; transition: transform .15s ease, background-color .15s ease;
}
.btn--discord { background: var(--discord); color: #fff; }
.btn--discord:hover { background: #3C45A5; color: #fff; transform: translateY(-1px); }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); max-width: 460px; }

/* Aperçu */
.preview {
  flex: 1 1 440px; min-width: 0; display: flex; flex-wrap: wrap; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px;
  box-shadow: 0 30px 60px -30px rgba(12, 31, 27, .35);
}
.preview__col { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.preview__day { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ev { padding: 10px 12px; border-radius: 10px; display: flex; flex-direction: column; font-size: 14px; }
.ev .mono { font-size: 12px; }
.ev--green { background: var(--event); color: var(--event-ink); }
.ev--blue { background: var(--event2); color: var(--event2-ink); }
.ev--tall { min-height: 76px; }
.task { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--primary); color: var(--primary); font-size: 14px; }
.box { width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 3px; flex: 0 0 auto; }
.prio { background: var(--panel); color: var(--panel-ink); border-radius: 14px; padding: 16px; }
.prio p { margin: 0; min-height: 32px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.prio .prio__t { font-weight: 600; margin-bottom: 6px; min-height: 0; }
.prio .done { color: var(--panel-muted); text-decoration: line-through; }
.gold { color: var(--gold); text-decoration: none; }
.clock { border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; }
.clock__h { font-size: 40px; font-weight: 300; line-height: 1; }
.clock__d { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Fonctions */
.features { padding-bottom: 80px; }
.features__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.features__list li { display: flex; flex-direction: column; gap: 6px; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.features__list b { font-size: 17px; }
.features__list span:last-child { font-size: 14px; color: var(--muted); }
.num { font-size: 13px; color: var(--primary); }

/* Aperçu vidéo */
.section-t { margin: 0 0 18px; font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.01em; }
.showcase { padding-bottom: 72px; }
.showcase__frame { border-radius: 20px; overflow: hidden; background: #0B1512; aspect-ratio: 16 / 9; box-shadow: 0 30px 60px -30px rgba(12, 31, 27, .45); }
.showcase__video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Communauté */
.community { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px; padding-bottom: 88px; }
.community__media { flex: 1 1 380px; min-width: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 9; background: #0B1512; }
.community__video { display: block; width: 100%; height: 100%; object-fit: cover; }
.community__text { flex: 1 1 320px; min-width: 0; }
.community__text h2 { margin: 0; font-size: clamp(26px, 3.6vw, 36px); font-weight: 800; line-height: 1.1; }
.community__text p { margin: 14px 0 22px; font-size: 17px; color: var(--text); max-width: 460px; }
.eyebrow--plain::before { display: none; }

/* Pied */
.foot { border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; min-height: 72px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--primary); display: inline-flex; align-items: center; min-height: 44px; }

/* Écran de chargement */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--ground);
  transition: opacity .5s ease, visibility .5s ease;
  cursor: pointer;
}
.loader video, .loader .loader__static { grid-area: 1 / 1; }
.loader video { display: block; width: min(560px, 82vw); height: auto; opacity: 0; }
.loader video.is-on { opacity: 1; }
.loader .loader__static { width: min(420px, 70vw); height: auto; opacity: 0; transition: opacity .3s ease; }
.loader .loader__static.logo--dark { display: block; }
.loader .loader__static.logo--light { display: none; }
@media (prefers-color-scheme: dark) {
  .loader .loader__static.logo--dark { display: none; }
  .loader .loader__static.logo--light { display: block; }
}
.loader--static .loader__static { opacity: 1; }
.loader--mp4 { background: #F1F6F2; }
.loader--mp4 video { width: min(1100px, 100vw); }
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.no-js .loader { display: none; }
html.is-loading { overflow: hidden; }

/* Animations */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .eyebrow::before { animation: none; }
  .btn { transition: none; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .hero { padding-top: 40px; gap: 32px; }
  .lead { font-size: 17px; }
  .btn { width: 100%; justify-content: center; }
  .logo { height: 32px; }
  .features__list li { padding-right: 0; }
}

/* Boutique */
.shop { padding-bottom: 72px; }
.shop__head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; justify-content: space-between; }
.shop__all { display: inline-flex; align-items: center; min-height: 44px; color: var(--primary); font-weight: 600; }
.shop__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 16px; }
.shop__card { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; border-radius: 14px; }
.shop__card:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
.shop__card b { font-size: 15px; }
.shop__card > span:last-child { font-size: 13px; color: var(--muted); }
.shop__img { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: var(--line); margin-bottom: 6px; }
.shop__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; display: block; transition: transform .4s ease; }
.shop__card:hover .shop__img img { transform: scale(1.03); }
.shop__flag { position: absolute; left: 8px; top: 8px; padding: 4px 9px; border-radius: 999px; background: #0C1F1B; color: #FFFFFF; font-size: 11px; font-weight: 600; }
@media (max-width: 520px) { .shop__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
