/* SetupSmith — feuille de style unique. Aucune ressource externe. */

@font-face {
  font-family: "Bebas Neue";
  src: url("fonts/BebasNeue.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "B612";
  src: url("fonts/B612.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #0b0d0a;
  --bg-deep: #060705;
  --bg-raised: #131612;
  --text: #ecefe6;
  --muted: #a7aea0;
  --line: #2a2f27;
  --accent: #b6f23a;
  --display: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --body: "B612", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gut: clamp(20px, 6vw, 80px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding-left: var(--gut);
  padding-right: var(--gut);
}

main {
  flex: 1;
}

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--accent);
}
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 0.9rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.875rem;
  text-decoration: none;
}
.skip:focus {
  top: 1rem;
}

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

/* Bascule de langue */
.top {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
  padding-top: 1.25rem;
  font-family: var(--mono);
  font-size: 0.875rem;
}
.top a {
  padding: 0.5rem 0.25rem;
}
.top [aria-current] {
  color: var(--muted);
}
.top .sep {
  color: var(--muted);
  padding: 0.5rem 0.25rem;
}

/* Titres */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
}

/* Héros : texte à gauche, cadre vertical 9:16 à droite */
.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3.5rem 8vw;
  padding: 3rem 0 6rem;
}
.hero-text {
  flex: 1 1 26rem;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(76px, 17vw, 168px);
  line-height: 0.88;
  letter-spacing: 0.005em;
}
.lead {
  margin: 2rem 0 2.25rem;
  max-width: 34ch;
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
}
.cta {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}
.cta:hover {
  background: var(--text);
  color: var(--bg);
}
.cta:focus-visible {
  outline-color: var(--text);
}

.frame {
  flex: 0 1 400px;
  width: min(400px, 100%);
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 32px 28px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  container-type: inline-size;
}
.slogan {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: 0.9;
  font-size: 64px;
  font-size: 25cqw;
}
.caption {
  display: grid;
  padding: 0.85rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.35;
}
.caption span {
  grid-area: 1 / 1;
}
.caption .cap-a {
  animation: cap-a 9s infinite;
}
.caption .cap-b {
  animation: cap-b 9s infinite;
}
@keyframes cap-a {
  0%, 42% { opacity: 1; }
  50%, 92% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes cap-b {
  0%, 42% { opacity: 0; }
  50%, 92% { opacity: 1; }
  100% { opacity: 0; }
}

/* Principes : trois colonnes séparées par des filets */
.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
}
.principles li {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.principles li:first-child {
  border-top: 0;
}
.principles h3 {
  font-size: clamp(38px, 5vw, 46px);
  line-height: 0.98;
  margin-bottom: 0.9rem;
}
.principles p {
  margin: 0;
  max-width: 30ch;
  color: var(--muted);
}

/* Sections : titre à gauche, contenu à droite */
.band {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 4rem;
  padding: 4.5rem 0;
  border-top: 1px solid var(--line);
}
.band > h2 {
  flex: 0 0 15rem;
  font-size: 56px;
  line-height: 0.95;
}
.band-body {
  flex: 1 1 24rem;
  min-width: 0;
}
.band-body > p {
  margin: 0 0 1.75rem;
  max-width: 46ch;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
  padding: 1.4rem 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.row + .row {
  border-top: 0;
}
.row .name {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 40px;
  line-height: 1;
}
.row .handle {
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--muted);
}
.row:hover {
  background: var(--accent);
  color: var(--bg);
}
.row:hover .handle {
  color: var(--bg);
}
.row:focus-visible {
  outline-offset: -3px;
}

.topics {
  margin: 0;
  max-width: 22em;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

/* Vidéos : tuiles verticales (section en commentaire tant qu'il n'y a pas de vidéo) */
.videos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 200px));
  gap: 1.25rem;
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 1rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}
.tile:hover {
  border-color: var(--accent);
  color: var(--text);
}
.tile .title {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 32px;
  line-height: 0.98;
}
.tile .tag,
.todo-mark {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.05rem 0.45rem;
}

.mail {
  font-family: var(--mono);
  font-size: clamp(1.0625rem, 2.4vw, 1.75rem);
  overflow-wrap: anywhere;
}
.band-body > p.mail {
  margin: 0;
  max-width: none;
}

/* Pages de texte (confidentialité, 404) */
.doc {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.doc h1 {
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.92;
  margin-bottom: 0.75rem;
}
.doc .meta {
  margin: 0 0 2.5rem;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.85rem;
}
.doc h2 {
  font-size: 2rem;
  letter-spacing: 0.02em;
  margin: 2.5rem 0 0.75rem;
}
.doc p,
.doc ul {
  margin: 0 0 1rem;
  max-width: 42rem;
}
.doc ul {
  padding-left: 1.25rem;
}
.doc li {
  margin-bottom: 0.4rem;
}
.doc .todo-mark {
  background: var(--accent);
  color: var(--bg);
  font-size: 0.8em;
}
.notfound .code {
  font-family: var(--mono);
  color: var(--accent);
  margin: 0 0 0.5rem;
}

/* Pied de page */
footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
footer p {
  margin: 0;
}
footer a {
  color: var(--text);
}
footer a:hover {
  color: var(--accent);
}

@media (min-width: 52rem) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .principles li {
    padding: 2.5rem 2rem 3rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .principles li:first-child {
    padding-left: 0;
    border-left: 0;
  }
  .principles li:last-child {
    padding-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .caption .cap-a {
    opacity: 1;
  }
  .caption .cap-b {
    display: none;
  }
}
