@font-face { font-family: "Bangers"; src: url("polices/Bangers.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Marker"; src: url("polices/PermanentMarker.ttf") format("truetype"); font-display: swap; }

:root {
  --fond: #0b0b0e;
  --texte: #f4f1ea;
  --doux: #b9b4aa;
  --rouge: #ff1e3d;
  --jaune: #ffd23d;
  --bordeaux: #8c1634;
  --vert: #0f9d4a;
  --bord: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: "Bangers", Impact, sans-serif; font-weight: 400; letter-spacing: 0.02em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 92px); }
h2 { font-size: clamp(36px, 5vw, 60px); margin-bottom: 24px; }
h3 { font-size: clamp(30px, 3.6vw, 44px); }

section { padding: 96px max(20px, calc((100vw - 1160px) / 2)); }

/* haut */
.haut {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(11, 11, 14, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bord);
}
.marque { font-family: "Marker", cursive; font-size: 28px; text-decoration: none; color: var(--rouge); }

.bouton {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border: 0; border-radius: 999px;
  background: var(--rouge); color: #fff;
  font: 400 22px/1 "Bangers", Impact, sans-serif; letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 0 0 0 rgba(255, 30, 61, 0.5);
  transition: transform 0.15s, box-shadow 0.2s;
}
.bouton:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 30, 61, 0.45); }
.bouton small { font: 600 13px system-ui, sans-serif; opacity: 0.8; letter-spacing: 0; }
.bouton.petit { padding: 10px 18px; font-size: 18px; }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  min-height: calc(100vh - 70px);
  background:
    radial-gradient(60% 70% at 78% 45%, rgba(255, 30, 61, 0.35), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(255, 210, 61, 0.12), transparent 70%);
}
.surtitre, .ou { font-family: "Marker", cursive; color: var(--jaune); font-size: 20px; margin: 0 0 14px; }
.chapo { font-size: 21px; color: var(--doux); max-width: 34em; margin: 26px 0 34px; }
.compat { font-size: 14px; color: var(--doux); margin-top: 18px; }
.hero-rat { width: 100%; max-width: 420px; justify-self: center; filter: drop-shadow(0 0 40px rgba(255, 30, 61, 0.55)); animation: hoche 1.9s ease-in-out infinite; }
@keyframes hoche { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-rat { animation: none; } }

/* plugins */
.plugins { padding-top: 40px; }
.plugin {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center;
  padding: 48px; margin-bottom: 28px; border-radius: 28px;
  border: 1px solid var(--bord);
}
.plugin > *, .hero > * { min-width: 0; } /* une image large ne pousse pas la colonne hors de l'écran */
.plugin:nth-of-type(even) .plugin-texte { order: 2; }
.plugin img { border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.plugin p { color: #e9e4da; }
.plugin .ou { margin-top: 10px; }
.rouge { background: linear-gradient(140deg, #a40d24, #4a0610); }
.rouge h3 { color: #fff; }
.bordeaux { background: linear-gradient(140deg, #5c0d22, #23040c); }
.bordeaux h3 { color: #ffb3c4; }
.jaune { background: linear-gradient(140deg, #1d1806, #0a0a0c); border-color: rgba(255, 210, 61, 0.45); }
.jaune h3, .jaune .ou { color: var(--jaune); }
.noir { background: linear-gradient(140deg, #1a1a20, #08080a); }

/* ensemble */
.ensemble p { font-size: 19px; max-width: 46em; color: var(--doux); }
.chaine { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: c; }
.chaine li {
  padding: 22px 24px; border-radius: 18px; border: 1px solid var(--bord); background: #141418;
  font: 400 30px/1 "Bangers", Impact, sans-serif; letter-spacing: 0.03em;
}
.chaine span { display: block; font: 600 14px system-ui, sans-serif; color: var(--doux); margin-bottom: 10px; letter-spacing: 0; }

/* téléchargement */
.telecharger { background: radial-gradient(70% 80% at 50% 0%, rgba(255, 30, 61, 0.25), transparent 70%); text-align: center; }
.telecharger > p { color: var(--doux); font-size: 19px; }
.formulaire { max-width: 620px; margin: 30px auto 0; text-align: left; }
.formulaire label[for] { display: block; font-weight: 600; margin-bottom: 8px; }
.ligne { display: flex; gap: 10px; flex-wrap: wrap; }
.ligne input {
  flex: 1 1 260px; padding: 16px 20px; border-radius: 999px;
  border: 1px solid var(--bord); background: #141418; color: var(--texte); font-size: 17px;
}
.ligne input:focus { outline: 2px solid var(--rouge); outline-offset: 2px; }
.case { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--doux); font-size: 15px; cursor: pointer; }
.case input { margin-top: 5px; accent-color: var(--rouge); }
.note { font-size: 13px; color: #8b867d; }
.erreur { color: var(--jaune); }
.piege { position: absolute; left: -9999px; }
.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 30px auto 0; }
.version { padding: 32px; border-radius: 24px; border: 1px solid var(--bord); background: #141418; }
.version p { color: var(--doux); }
.bientot { font-family: "Marker", cursive; color: var(--jaune) !important; }

/* installer, questions */
.colonnes { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.installer ol { padding-left: 22px; color: var(--doux); }
.installer li { margin-bottom: 10px; }
.installer h3 { margin-bottom: 14px; }
.questions details { border-top: 1px solid var(--bord); padding: 18px 0; max-width: 820px; }
.questions summary { cursor: pointer; font-weight: 600; font-size: 19px; }
.questions details p { color: var(--doux); }
.bas { padding: 40px 20px; text-align: center; color: #77726a; font-size: 14px; border-top: 1px solid var(--bord); }

@media (max-width: 860px) {
  section { padding-top: 64px; padding-bottom: 64px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; text-align: left; }
  .hero-rat { max-width: 240px; order: -1; }
  .plugin { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 22px; }
  .plugin:nth-of-type(even) .plugin-texte { order: 0; }
  .chaine, .versions, .colonnes { grid-template-columns: minmax(0, 1fr); }
}
