@font-face { font-family: Toupret; src: url(/assets/regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Toupret; src: url(/assets/extrabold.ttf) format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --red: #cc2c24;
  --red-dark: #b7251e;
  --gray-50: #f7f7f7;
  --gray-200: #cdcdcd;
  --gray-600: #616161;
  --gray-700: #353434;
  --gray-900: #1e1e1e;
}

* { box-sizing: border-box; margin: 0; }

body {
  display: grid;
  grid-template-rows: 300px auto;
  min-height: 100dvh;
  font-family: Toupret, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11";
  line-height: 1.5;
  color: var(--gray-700);
  background: var(--gray-50);
}

/* Panneau visuel repris de la page de connexion BRIAN */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gray-900);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(/assets/bg-auth.png) left / cover;
  transform: scaleX(-1);
  opacity: 0.3;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgb(30 30 30 / 40%), var(--gray-900) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
}
.hero img { width: 256px; max-width: 100%; height: auto; }
.hero h1 { font-size: 1.875rem; font-weight: 800; line-height: 1.2; color: #fff; }

main {
  justify-self: center;
  width: min(32rem, 100%);
  padding: 3rem 1rem;
}
.eyebrow { font-size: 0.875rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--red); }
h2 { margin: 0.25rem 0 1rem; font-size: 1.875rem; font-weight: 800; line-height: 1.2; color: var(--gray-900); }
.url {
  display: block;
  margin: 0.5rem 0 2rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
  overflow-wrap: anywhere;
  text-decoration: none;
}
.url:hover { text-decoration: underline; }

.progress { height: 4px; background: var(--gray-200); }
.progress span { display: block; height: 100%; background: var(--red); animation: drain 5s linear forwards; }
@keyframes drain { from { width: 100%; } to { width: 0; } }
#countdown { margin: 0.75rem 0 2rem; color: var(--gray-600); }

/* Bouton biseauté façon variante « trace » du thème */
.btn {
  position: relative;
  display: inline-block;
  margin-left: 8px;
  padding: 0.625rem 1.5rem 0.625rem 1rem;
  font: inherit;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  background: var(--red);
  border: 0;
  cursor: pointer;
  transition: background-color 0.2s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 16px;
  background: inherit;
  transform: translateX(-8px) skewX(20deg);
}
.btn:hover { background: var(--red-dark); }
.btn:focus-visible { outline: 2px solid var(--gray-900); outline-offset: 3px; }

.hint { margin-top: 2rem; font-size: 0.875rem; color: var(--gray-600); }

@media (min-width: 1024px) {
  body { grid-template-rows: auto; grid-template-columns: minmax(0, 50%) auto; }
  .hero::after { background: linear-gradient(45deg, transparent, var(--gray-900) 80%); }
  .hero h1 { font-size: 3rem; }
  main { align-self: center; }
}
@media (min-width: 1280px) {
  .hero h1 { font-size: 3.75rem; }
}
