/* Flo444 order page: track A, "the outro's night" (violet night and gold),
   one column on a phone, two from 960 px (the offer left, the form right).
   Design: DESIGN.md. */

@font-face {
  font-family: "Anton";
  src: url("assets/fonts/anton-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald";
  src: url("assets/fonts/oswald-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --night-light: #2b2142;
  --night: #1b1526;
  --night-deep: #09070d;
  --panel: #120e1b;
  --form: #110d18;
  --line: #3a2d55;
  --gold: #ffc84a;
  --ink: #160a0e;
  --strike: #ff3b4e;
  --text: #f3eee6;
  --error: #ff8a8a;
  color-scheme: dark;
}

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

html {
  background: var(--night-deep);
}

body {
  min-height: 100vh;
  background: linear-gradient(var(--night-light), var(--night) 45%, var(--night-deep));
  color: var(--text);
  font: 400 15px/1.5 "Archivo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

/* Header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 0;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  font: 700 13px "Oswald", sans-serif;
  letter-spacing: 4px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.handle {
  font-size: 12.5px;
  opacity: 0.65;
  text-decoration: none;
}
.handle:hover {
  opacity: 1;
}

/* Layout: one column, then two */
.layout {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}

/* The offer */
.hero {
  text-align: center;
}
.question {
  font: 700 17px "Oswald", sans-serif;
  letter-spacing: 1px;
}
h1 {
  font: 400 44px/1 "Anton", sans-serif;
  color: var(--gold);
  margin-top: 4px;
}
.sub {
  opacity: 0.75;
  margin: 10px 6px 0;
  font-size: 14px;
}
.mascotte {
  width: 78%;
  margin: 8px auto 0;
  background: radial-gradient(circle at 50% 55%, rgba(255, 200, 74, 0.28), transparent 60%);
  -webkit-mask-image: linear-gradient(#000 72%, transparent);
  mask-image: linear-gradient(#000 72%, transparent);
}
.mascotte svg {
  display: block;
  width: 100%;
  height: auto;
}

.cartes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.carte {
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  background: var(--panel);
}
.carte.prix {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(255, 200, 74, 0.25);
}
.carte b {
  display: block;
  font: 400 30px/1.1 "Anton", sans-serif;
  color: #fff;
}
.carte s {
  font-size: 0.62em;
  opacity: 0.55;
  margin-right: 4px;
  text-decoration-color: var(--strike);
  text-decoration-thickness: 3px;
}
.carte span {
  font: 700 10px "Oswald", sans-serif;
  letter-spacing: 2px;
  opacity: 0.7;
}

.etapes {
  list-style: none;
  counter-reset: etape;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.etapes li {
  counter-increment: etape;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
}
.etapes li::before {
  content: counter(etape);
  flex: 0 0 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  color: var(--gold);
  font: 700 15px/26px "Oswald", sans-serif;
  text-align: center;
}

.promesses {
  list-style: none;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}
.promesses li::before {
  content: "✦ ";
  color: var(--gold);
}

/* The form */
.colonne-form {
  margin-top: 18px;
}
#commande,
#merci {
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 6px 16px 18px;
  background: var(--form);
}
h2 {
  font: 400 24px "Anton", sans-serif;
  letter-spacing: 1px;
  margin: 14px 0 4px;
}
.champ {
  margin-top: 14px;
  border: 0;
  min-width: 0;
}
.champ > label,
.champ > legend {
  display: block;
  font-weight: 700;
}
.champ > .fichier {
  display: inline-block;
}
.champ small {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.7;
  margin: 2px 0 2px;
}
input:not([type="file"]):not([type="hidden"]),
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
textarea {
  min-height: 64px;
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  color: var(--text);
  opacity: 0.45;
}
input:focus,
textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}
/* The link, then where the extract starts: stacked on a phone. */
.ligne input[name="debut"] {
  max-width: 50%;
}

/* File buttons: the label is the button; the native input is hidden but
   keeps the keyboard focus (its label opens the file picker). */
.fichier {
  position: relative;
  display: inline-block;
  margin-top: 6px;
  border: 1px solid var(--gold);
  color: var(--gold);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.fichier:hover {
  background: var(--gold);
  color: var(--ink);
}
.fichier:active {
  transform: translateY(1px);
}
.fichier input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}
.fichier:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.choisis {
  display: block;
  font-size: 12.5px;
  opacity: 0.8;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.retirer {
  display: block;
  border: 0;
  background: none;
  color: var(--text);
  opacity: 0.75;
  font: inherit;
  font-size: 12.5px;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 2px;
}
.retirer:hover {
  opacity: 1;
}
.erreur {
  color: var(--error);
  font-size: 12.5px;
  margin-top: 5px;
}

#envoyer {
  display: block;
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 30px;
  padding: 13px;
  background: var(--gold);
  color: var(--ink);
  font: 700 16px "Oswald", sans-serif;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(255, 200, 74, 0.35);
}
#envoyer:disabled {
  opacity: 0.6;
  cursor: progress;
}
#etat {
  text-align: center;
  font-size: 13px;
  margin-top: 10px;
}
#etat:empty {
  display: none;
}
#etat.erreur {
  color: var(--error);
}
.petit {
  text-align: center;
  font-size: 11.5px;
  opacity: 0.6;
  margin-top: 8px;
}
#merci {
  text-align: center;
  padding: 24px 18px;
}
#merci p {
  margin-top: 8px;
}

/* Wide screens: the offer left, the form right and in view. */
@media (min-width: 960px) {
  .top {
    padding: 22px 24px 0;
  }
  .brand {
    font-size: 14px;
  }
  .layout {
    max-width: 1120px;
    padding: 30px 24px 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 48px;
    align-items: start;
  }
  /* The title beside the mascot, then the rest across the whole column. */
  .offre {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    column-gap: 16px;
    align-items: center;
  }
  .offre > * {
    grid-column: 1 / -1;
  }
  .offre .hero {
    grid-column: 1;
    grid-row: 1;
  }
  .hero {
    text-align: left;
  }
  .question {
    font-size: 22px;
  }
  h1 {
    font-size: 60px;
    margin-top: 6px;
  }
  .sub {
    margin: 12px 0 0;
    font-size: 15px;
    max-width: 440px;
  }
  .offre .mascotte {
    grid-column: 2;
    grid-row: 1;
    width: 200px;
    margin: 0;
  }
  .carte b {
    font-size: 34px;
  }
  .carte span {
    font-size: 11px;
  }
  .etapes li,
  .promesses {
    font-size: 14.5px;
  }
  .colonne-form {
    margin-top: 0;
    position: sticky;
    top: 20px;
  }
  #commande,
  #merci {
    padding: 8px 20px 20px;
  }
  h2 {
    font-size: 26px;
  }
  .ligne {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 8px;
  }
  .ligne input[name="debut"] {
    max-width: none;
  }
}

/* The no-JavaScript thank-you page. */
.merci-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 16px;
}
