@import url("https://fonts.googleapis.com/css2?family=Jura:wght@400;500;600;700&family=Roboto+Mono:wght@400;500;600&display=swap");


/* ============================================================
   BUDGETCLAIR
   APPLICATION SHELL
   DH STUDIO
   ============================================================ */

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;
}

body {
  overflow: hidden;

  font-family:
    "Jura",
    sans-serif;

  font-weight: 600;

  color: #f5f5f5;

  background:
    radial-gradient(
      circle at 50% 0%,
      #004467 0%,
      #003b59 24%,
      #002236 65%,
      #001824 100%
    );
}

button,
input,
select,
textarea {
  font-family:
    "Jura",
    sans-serif;
}


/* ============================================================
   APPLICATION
   ============================================================ */

.app-shell {
  width: 100%;
  height: 100dvh;

  display: grid;
  grid-template-rows:
    92px
    minmax(0, 1fr)
    54px;

  overflow: hidden;
}


/* ============================================================
   HEADER / NAVIGATION BUDGETCLAIR
   ============================================================ */

.app-header {
  position: relative;
  z-index: 1000;

  min-width: 0;

  border-top: 1px solid rgba(75, 204, 255, 0.62);
  border-bottom: 1px solid rgba(75, 204, 255, 0.42);

  background:
    radial-gradient(circle at 64% 45%, rgba(0, 119, 190, 0.30), transparent 34%),
    linear-gradient(100deg, #00243b 0%, #00375c 48%, #004b78 100%);

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 45%),
    radial-gradient(circle at 28% 0%, rgba(38, 174, 255, 0.10), transparent 30%);
}

.app-header-inner {
  position: relative;
  z-index: 1;

  width: min(1780px, calc(100% - 54px));
  height: 100%;
  margin: 0 auto;
  min-width: 0;

  display: grid;
  grid-template-columns:
    auto
    1px
    minmax(0, 1fr)
    1px
    auto;
  align-items: center;
  column-gap: 24px;
}


/* ============================================================
   BRAND
   ============================================================ */

.budgetclair-brand {
  min-width: 0;

  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: center;
  row-gap: 5px;

  text-decoration: none;
}

.budgetclair-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.budgetclair-tagline {
  margin: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  color: rgba(255, 255, 255, 0.92);

  font-family: "Roboto Mono", monospace;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.budgetclair-tagline-dot {
  color: #a8e84f;
  font-size: 16px;
  letter-spacing: 0;
}

.header-separator {
  width: 1px;
  height: 48px;
  margin: 0;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(138, 211, 255, 0.55) 18%,
      rgba(138, 211, 255, 0.55) 82%,
      transparent
    );
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.header-navigation {
  min-width: 0;

  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 6px;
}

.header-nav-link {
  position: relative;
  height: 58px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0 14px;
  border-radius: 8px 8px 0 0;

  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;

  transition:
    color 0.22s ease,
    text-shadow 0.22s ease;
}

/*
 * Barre d'accent du menu.
 * Elle existe en permanence dans le flux visuel et seule son échelle X
 * est animée. Aucun changement de largeur, marge ou position du lien.
 */
.header-nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 3px;

  border-radius: 999px 999px 0 0;

  background:
    linear-gradient(90deg, #4bd5ff 0%, #7fe878 46%, #b9ed4f 100%);

  box-shadow:
    0 0 7px rgba(75, 213, 255, 0.32),
    0 0 12px rgba(169, 232, 79, 0.24);

  transform: scaleX(0);
  transform-origin: left center;

  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease;
}

.header-nav-link .material-symbols-outlined {
  color: rgba(255, 255, 255, 0.92);
  font-size: 23px;
  font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;

  transition:
    color 0.22s ease,
    text-shadow 0.22s ease,
    font-variation-settings 0.22s ease;
}

.header-nav-link:hover {
  color: #ffffff;
  background: transparent;
  text-shadow: 0 0 12px rgba(207, 244, 255, 0.16);
}

.header-nav-link:hover::after {
  transform: scaleX(1);
}

.header-nav-link:hover .material-symbols-outlined {
  color: #b9ed4f;
  text-shadow: 0 0 10px rgba(185, 237, 79, 0.30);
}

.header-nav-link.active {
  color: #c8f36a;
  background: transparent;
  text-shadow: 0 0 10px rgba(185, 237, 79, 0.14);
}

.header-nav-link.active::after {
  transform: scaleX(1);
  box-shadow:
    0 0 8px rgba(75, 213, 255, 0.36),
    0 0 14px rgba(169, 232, 79, 0.34);
}

.header-nav-link.active .material-symbols-outlined {
  color: #b9ed4f;
  text-shadow: 0 0 10px rgba(185, 237, 79, 0.26);
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

.header-nav-link:focus-visible {
  outline: 2px solid rgba(134, 218, 255, 0.92);
  outline-offset: -2px;
}

.header-nav-link:focus-visible::after {
  transform: scaleX(1);
}


/* ============================================================
   ACTIONS HEADER
   ============================================================ */

.header-separator-actions {
  margin: 0;
}

.app-header-actions {
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-login-button,
.header-register-button {
  min-height: 46px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 0 18px;
  border-radius: 9px;

  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;

  transition:
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
}

.header-login-button {
  border: 1px solid #73cfff;

  background:
    linear-gradient(180deg, rgba(0, 66, 108, 0.82), rgba(0, 38, 63, 0.92));

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.05),
    0 5px 14px rgba(0, 0, 0, 0.22);
}

.header-register-button {
  border: 1px solid rgba(193, 244, 91, 0.62);

  background:
    linear-gradient(120deg, #00a990 0%, #75c84a 68%, #a8db5b 100%);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 6px 16px rgba(0, 0, 0, 0.22);
}

.header-login-button:hover {
  color: #ffffff;
  border-color: #a9e7ff;

  background:
    linear-gradient(180deg, rgba(0, 91, 145, 0.94), rgba(0, 45, 74, 0.96));

  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 0 0 1px rgba(115, 207, 255, 0.08),
    0 0 18px rgba(79, 197, 255, 0.24),
    0 6px 16px rgba(0, 0, 0, 0.25);
}

.header-register-button:hover {
  color: #ffffff;
  border-color: rgba(218, 255, 143, 0.86);

  background:
    linear-gradient(120deg, #00b49b 0%, #83d450 66%, #b7e767 100%);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    0 0 0 1px rgba(185, 237, 79, 0.08),
    0 0 20px rgba(158, 229, 63, 0.26),
    0 7px 18px rgba(0, 0, 0, 0.26);
}

.header-login-button:focus-visible,
.header-register-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: 3px;
}

.header-login-button .material-symbols-outlined,
.header-register-button .material-symbols-outlined {
  font-size: 21px;
}


/* ============================================================
   ZONE SCROLLABLE
   ============================================================ */

.app-content-scroll {
  min-width: 0;
  min-height: 0;

  overflow: hidden;

  scrollbar-gutter: stable;
}


/* ============================================================
   PAGE
   ============================================================ */

.page {
  width: min(1760px, calc(100% - 80px));
  height: 100%;
  min-height: 0;

  margin: 0 auto;
  padding: 18px 0 20px;

  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  row-gap: 16px;
}


/* ============================================================
   HERO
   ============================================================ */

.hero {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 0;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  margin:
    0 0 2px;

  color: #66d0ff;

  font-size: 16px;
  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1.4px;
}

.hero h1 {
  margin: 0;

  font-size: 29px;
  font-weight: 700;

  background:
    linear-gradient(
      to right,
      #ccc,
      #fff,
      #aaa
    );

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy {
  margin:
    4px 0 0;

  color: #9db9c6;

  font-size: 16px;
}


/* ============================================================
   AJOUTER
   ============================================================ */

.primary-action {
  min-width: 126px;
  height: 40px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 5px;

  padding:
    0 18px;

  border:
    2px solid transparent;

  border-radius: 8px;

  color: #f5f5f5;

  background:
    linear-gradient(
      #002236,
      #002236
    ) padding-box,

    linear-gradient(
      to right,
      #555,
      #aaa,
      #fff,
      #aaa,
      #555
    ) border-box;

  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.6);

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  transition:
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.primary-action .material-symbols-outlined {
  font-size: 19px;
}

.primary-action:hover {
  color: #dff5cf;

  background:
    linear-gradient(
      #002236,
      #002236
    ) padding-box,

    linear-gradient(
      to right,
      #426a2b,
      #64a03b,
      #9bd66d,
      #64a03b,
      #426a2b
    ) border-box;

  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(100, 160, 59, 0.35),
    inset 0 0 6px rgba(100, 160, 59, 0.12);
}


/* ============================================================
   FOOTER
   ============================================================ */

.app-footer {
  position: relative;
  z-index: 1000;

  min-width: 0;

  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 28px;

  padding:
    6px 24px;

  border-top:
    1px solid rgba(205, 220, 228, 0.28);

  background:
    linear-gradient(
      180deg,
      #002236,
      #001a29
    );

  box-shadow:
    0 -4px 12px rgba(0, 0, 0, 0.35);

  color: #8ca8b5;

  font-size: 16px;
}

.footer-publisher {
  min-width: 0;

  height: 100%;

  display: flex;
  align-items: center;

  gap: 12px;
}

.footer-logo {
  width: 76px;
  height: 38px;

  object-fit: contain;

  opacity: 0.95;

  padding:
    3px 0;
}

.footer-separator {
  width: 1px;
  height: 24px;

  background:
    linear-gradient(
      transparent,
      #aaa,
      transparent
    );

  opacity: 0.6;
}

.footer-copyright {
  white-space: nowrap;

  font-size: 16px;
}

.footer-dot {
  margin:
    0 5px;

  color: #5f7b88;
}

.footer-links {
  display: flex;

  align-items: center;

  gap: 9px;

  white-space: nowrap;

  font-size: 16px;
}

.footer-links a {
  color: #9bb5c1;

  text-decoration: none;

  transition:
    color 0.2s ease;
}

.footer-links a:hover {
  color: #8bc85d;
}

.footer-version {
  margin-left: 7px;

  padding-left: 10px;

  border-left:
    1px solid rgba(255, 255, 255, 0.16);

  color: #4dccff;

  font-family:
    "Roboto Mono",
    monospace;

  font-size: 16px;
}


/* ============================================================
   MOBILE NAV
   ============================================================ */

.mobile-nav {
  display: none;
}


/* ============================================================
   SCROLLBAR
   ============================================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background:
    rgba(255, 255, 255, 0.04);
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;

  background:
    linear-gradient(
      180deg,
      #777,
      #ddd,
      #777
    );
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(
      180deg,
      #64a03b,
      #9bd66d,
      #64a03b
    );
}