/* Global styles (font, colors, etc.) */

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

:root {
  --Surface-Page-Containers-Default-Background: #f7f6f8;
  --Surface-Page-Containers-Lightbox-Overlay: rgba(14, 7, 22, 0.7);
  --Surface-Background-Primary-Default: #e0f147;
  --Surface-Background-Primary-Hovered: #bed50d;
  --Surface-Background-Secondary-Default: #0e0716;
  --Surface-Background-Secondary-Hovered: #353239;
  --Surface-Background-Tertiary-Default: #ffffff;
  --Surface-Background-Tertiary-Hovered: #efeef1;
  --Surface-Background-Warning-Default: #d52b52;
  --Surface-Stroke-Warning: #d52b52;
  --Stroke-Default: rgba(14, 7, 22, 10%);

  --Content-Information-Primary: #0e0716;
  --Content-Information-Secondary: #353239;
  --Content-Information-Tertiary: #665f6e;
  --Content-Information-Inverted: #fff;
  --Content-Dynamic-Inverted-Hovered: rgba(255, 255, 255, 0.7);
  --Content-Dynamic-Hovered: rgba(14, 7, 22, 0.7);
  --Content-Dynamic-Interactive: #6a7800;
  --Content-Dynamic-Interactive-Hovered: #5a6600;
  --Content-Dynamic-Warning: #d52b52;
  --Content-Dynamic-Warning-Hovered: #a92342;
  --Content-Dynamic-Unactive: #968fa2;

  --regular: 400;
  --medium: 500;
  --semi-bold: 600;
  --bold: 700;
  --extra-bold: 800;
}

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/MonaSans.woff2") format("woff2-variations"),
    url("../fonts/MonaSans.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Mona Sans", sans-serif;
  font-weight: var(--regular);
  margin: 0;
  display: flex;
  align-items: flex-start; /* Important pour que le sticky fonctionne */
  max-width: 100vw;
  min-height: 100vh;
  font-size: 1rem;
  background-color: var(--Surface-Page-Containers-Default-Background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -o-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
  flex-wrap: wrap;
}

* {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin: 0px;
}

h1 {
  font-weight: var(--extra-bold);
  font-variation-settings: "wdth" 75;
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-transform: uppercase;
  line-height: 110%;
}

h2,
.savelist-card h3,
.post-card h3,
.map-card .big-text {
  font-weight: var(--bold);
  font-variation-settings: "wdth" 75;
  font-size: clamp(1.5rem, 3.5vw, 1.75rem);
  text-transform: uppercase;
  line-height: 110%;
}

h3,
.tab-btn,
.profile-stats .stat-item strong,
.notification h2 {
  font-weight: var(--semi-bold);
  font-variation-settings: "wdth" 100;
  text-transform: none;
  line-height: auto; /* Global styles (font, colors, etc.) */

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

  :root {
    --Surface-Page-Containers-Default-Background: #f7f6f8;
    --Surface-Page-Containers-Lightbox-Overlay: rgba(14, 7, 22, 0.7);
    --Surface-Background-Primary-Default: #e0f147;
    --Surface-Background-Primary-Hovered: #bed50d;
    --Surface-Background-Secondary-Default: #0e0716;
    --Surface-Background-Secondary-Hovered: #353239;
    --Surface-Background-Tertiary-Default: #ffffff;
    --Surface-Background-Tertiary-Hovered: #efeef1;
    --Surface-Background-Warning-Default: #d52b52;
    --Surface-Stroke-Warning: #d52b52;
    --Stroke-Default: rgba(14, 7, 22, 10%);

    --Content-Information-Primary: #0e0716;
    --Content-Information-Secondary: #353239;
    --Content-Information-Tertiary: #665f6e;
    --Content-Information-Inverted: #fff;
    --Content-Dynamic-Inverted-Hovered: rgba(255, 255, 255, 0.7);
    --Content-Dynamic-Hovered: rgba(14, 7, 22, 0.7);
    --Content-Dynamic-Interactive: #6a7800;
    --Content-Dynamic-Interactive-Hovered: #5a6600;
    --Content-Dynamic-Warning: #d52b52;
    --Content-Dynamic-Warning-Hovered: #a92342;
    --Content-Dynamic-Unactive: #968fa2;

    --regular: 400;
    --medium: 500;
    --semi-bold: 600;
    --bold: 700;
    --extra-bold: 800;
  }

  @font-face {
    font-family: "Mona Sans";
    src: url("../fonts/MonaSans.woff2") format("woff2-variations"),
      url("../fonts/MonaSans.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
  }

  body {
    font-family: "Mona Sans", sans-serif;
    font-weight: var(--regular);
    margin: 0;
    display: flex;
    align-items: flex-start; /* Important pour que le sticky fonctionne */
    max-width: 100vw;
    min-height: 100vh;
    font-size: 1rem;
    background-color: var(--Surface-Page-Containers-Default-Background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -o-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-text-size-adjust: 100%;
    flex-wrap: wrap;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  h1,
  h2,
  h3,
  p {
    margin: 0px;
  }

  h1 {
    font-weight: var(--extra-bold);
    font-variation-settings: "wdth" 75;
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-transform: uppercase;
    line-height: 110%;
  }

  h2,
  .savelist-card h3,
  .post-card h3,
  .map-card .big-text {
    font-weight: var(--bold);
    font-variation-settings: "wdth" 75;
    font-size: clamp(1.5rem, 3.5vw, 1.75rem);
    text-transform: uppercase;
    line-height: 110%;
  }

  h3,
  .tab-btn,
  .profile-stats .stat-item strong,
  .notification h2 {
    font-weight: var(--semi-bold);
    font-variation-settings: "wdth" 100;
    text-transform: none;
    line-height: auto;
    font-size: 1.25rem;
  }

  p {
    font-weight: var(--regular);
    font-size: 1rem;
  }

  hr {
    border-color: var(--Stroke-Default);
    border-radius: 2px;
  }

  strong,
  .strong,
  .post-modal .header-title,
  .map-card .small-text,
  .action-text > .text,
  .post-header .header-title,
  .suggestions .name {
    font-family: "Mona Sans";
    font-weight: var(--semi-bold);
  }

  bold,
  .bold,
  .menu-item a {
    font-weight: var(--medium);
  }

  a {
    color: var(--Content-Dynamic-Interactive);
    font-weight: var(--medium);
    font-size: 1rem;
  }

  a:hover {
    color: var(--Content-Dynamic-Interactive-Hovered);
  }

  /* (Display/Label) */
  .main-label {
    font-weight: var(--bold);
    font-variation-settings: "wdth" 75;
    font-size: 1rem;
    text-transform: uppercase;
  }

  .label {
    font-size: 0.875rem;
    font-weight: var(--medium);
  }

  .legend {
    font-size: 0.875rem;
    font-weight: var(--regular);
    color: var(--Content-Information-Tertiary);
  }

  .warning {
    color: var(--Content-Dynamic-Warning) !important;
  }

  .warning > * {
    color: var(--Content-Dynamic-Warning) !important;
  }

  .warning > svg path {
    fill: var(--Content-Dynamic-Warning) !important;
  }

  a.warning:hover,
  button.warning:hover {
    color: var(--Content-Dynamic-Warning-Hovered) !important;
  }

  .warning-on-hover:hover {
    color: var(--Content-Dynamic-Warning) !important;
  }

  .warning-on-hover:hover > * {
    color: var(--Content-Dynamic-Warning) !important;
  }

  .warning-on-hover:hover > svg path {
    fill: var(--Content-Dynamic-Warning) !important;
  }

  menu {
    padding: 0;
    margin: 0;
  }

  button,
  input {
    font-family: "Mona Sans", sans-serif;
  }

  input {
    width: 432px;
    height: 32px;
  }

  button,
  a {
    cursor: pointer;
  }

  address {
    font-style: normal;
  }

  svg.icon {
    width: 24px;
    height: 24px;
  }

  main {
    margin-left: max(240px, 25.42vw);
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
    padding: 64px 24px 24px 24px;
  }

  main.full {
    padding: 0;
    position: relative;
  }

  main.no-nav {
    padding: 24px;
    margin: 0;
    margin-left: 0 !important;
    box-sizing: border-box;
  }

  @media screen and (max-width: 767px) {
    .desktop-only {
      display: none !important;
    }
    main {
      margin-left: 0;
      padding-bottom: 104px !important;
    }
    main.no-nav {
      margin-left: 0 !important;
      padding: 24px;
    }
    header + main {
      padding: 84px 24px 104px 24px !important;
    }
  }

  @media screen and (min-width: 767px) {
    .mobile-only {
      display: none !important;
    }
    .page-header.mobile-only + main {
      padding: 64px 24px 24px 24px;
    }
    .page-header:not(.mobile-only) + main {
      padding: 0px 24px 24px 24px;
    }
  }

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .off-screen {
    display: none;
  }

  .unstyled-list {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    list-style-type: none;
  }

  .avatar {
    object-fit: cover;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
  }

  /* === Vertical Stacking === */

  /* 4px spacing */
  .v-stack-3XS {
    gap: 4px;
    display: flex;
    flex-direction: column;
  }

  /* 8px spacing */
  .v-stack-2XS {
    gap: 8px;
    display: flex;
    flex-direction: column;
  }

  /* 16px spacing */
  .v-stack-S {
    gap: 16px;
    display: flex;
    flex-direction: column;
  }

  /* 24px spacing */
  .v-stack-M {
    gap: 24px;
    display: flex;
    flex-direction: column;
  }

  /* 32px spacing */
  .v-stack-L {
    gap: 32px;
    display: flex;
    flex-direction: column;
  }

  /* === Horizontal Stacking === */

  /* 4px spacing */
  .h-stack-3XS {
    gap: 4px;
    display: flex;
    flex-direction: row;
  }

  /* 8px spacing */
  .h-stack-2XS {
    gap: 8px;
    display: flex;
    flex-direction: row;
  }

  /* 16px spacing */
  .h-stack-S {
    gap: 16px;
    display: flex;
    flex-direction: row;
  }

  font-size: 1.25rem;
}

p {
  font-weight: var(--regular);
  font-size: 1rem;
}

hr {
  border-color: var(--Stroke-Default);
  border-radius: 2px;
}

strong,
.post-modal .header-title,
.map-card .small-text,
.action-text > .text,
.post-header .header-title,
.suggestions .name {
  font-family: "Mona Sans";
  font-weight: var(--semi-bold);
}

bold,
.menu-item a {
  font-weight: var(--medium);
}

a {
  color: var(--Content-Dynamic-Interactive);
  font-weight: var(--medium);
  font-size: 1rem;
}

a:hover {
  color: var(--Content-Dynamic-Interactive-Hovered);
}

/* (Display/Label) */
.main-label {
  font-weight: var(--bold);
  font-variation-settings: "wdth" 75;
  font-size: 1rem;
  text-transform: uppercase;
}

.label {
  font-size: 0.875rem;
  font-weight: var(--medium);
}

.legend {
  font-size: 0.875rem;
  font-weight: var(--regular);
  color: var(--Content-Information-Tertiary);
}

.warning {
  color: var(--Content-Dynamic-Warning) !important;
}

.warning > * {
  color: var(--Content-Dynamic-Warning) !important;
}

.warning > svg path {
  fill: var(--Content-Dynamic-Warning) !important;
}

a.warning:hover,
button.warning:hover {
  color: var(--Content-Dynamic-Warning-Hovered) !important;
}

.warning-on-hover:hover {
  color: var(--Content-Dynamic-Warning) !important;
}

.warning-on-hover:hover > * {
  color: var(--Content-Dynamic-Warning) !important;
}

.warning-on-hover:hover > svg path {
  fill: var(--Content-Dynamic-Warning) !important;
}

menu {
  padding: 0;
  margin: 0;
}

button,
input {
  font-family: "Mona Sans", sans-serif;
}

input {
  width: 432px;
  height: 32px;
}

button,
a {
  cursor: pointer;
}

address {
  font-style: normal;
}

svg.icon {
  width: 24px;
  height: 24px;
}

main {
  margin-left: max(240px, 25.42vw);
  width: 100%;
  min-height: 100vh;
  overflow-y: auto;
  padding: 64px 24px 24px 24px;
}

main.full {
  padding: 0;
  position: relative;
}

main.no-nav {
  padding: 24px;
  margin: 0;
  margin-left: 0 !important;
  box-sizing: border-box;
}

@media screen and (max-width: 767px) {
  .desktop-only {
    display: none !important;
  }
  main {
    margin-left: 0;
    padding-bottom: 104px !important;
  }
  main.no-nav {
    margin-left: 0;
    padding: 24px;
  }
  header + main {
    padding: 84px 24px 104px 24px !important;
  }
}

@media screen and (min-width: 767px) {
  .mobile-only {
    display: none !important;
  }
  .page-header.mobile-only + main {
    padding: 64px 24px 24px 24px;
  }
  .page-header:not(.mobile-only) + main {
    padding: 0px 24px 24px 24px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.off-screen {
  display: none;
}

.unstyled-list {
  margin-top: 0;
  margin-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  list-style-type: none;
}

.avatar {
  object-fit: cover;
  border-radius: 50%;
  aspect-ratio: 1 / 1;
}

/* === Vertical Stacking === */

/* 4px spacing */
.v-stack-3XS {
  gap: 4px;
  display: flex;
  flex-direction: column;
}

/* 8px spacing */
.v-stack-2XS {
  gap: 8px;
  display: flex;
  flex-direction: column;
}

/* 16px spacing */
.v-stack-S {
  gap: 16px;
  display: flex;
  flex-direction: column;
}

/* 24px spacing */
.v-stack-M {
  gap: 24px;
  display: flex;
  flex-direction: column;
}

/* 32px spacing */
.v-stack-L {
  gap: 32px;
  display: flex;
  flex-direction: column;
}

/* === Horizontal Stacking === */

/* 4px spacing */
.h-stack-3XS {
  gap: 4px;
  display: flex;
  flex-direction: row;
}

/* 8px spacing */
.h-stack-2XS {
  gap: 8px;
  display: flex;
  flex-direction: row;
}

/* 16px spacing */
.h-stack-S {
  gap: 16px;
  display: flex;
  flex-direction: row;
}

fieldset {
  border: none;       
  margin: 0;       
  padding: 0; 
}