/* * GENERAL * */
/* :root {
  --titleFontsize: 2.2rem;
  --textFontSize: 2rem;
  --buttonFontSize: 2rem;
} */

/* Empêche tout débordement horizontal */
html,
body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Force tous les enfants à respecter la largeur de l'écran */
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Optionnel : pour éviter les élargissements cachés */
img,
video,
svg {
  max-width: 100%;
  height: auto;
}

* {
  list-style: none;
  scroll-behavior: smooth;
}

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


html {
  display: grid;
  min-width: 100%;
  font-size: 18px;
  font-family: Roboto, Helvetica, sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
  max-height: 100%;
  max-width: 100%;
  line-height: 1.6;

}

body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  color: var(--fg-main);
}

.svelte-body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

a {
  color: var(--fg1);
  text-decoration: none;
}

h1 {
  font-size: 4rem;
  font-weight: bold;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: .5rem;
  margin-top: 1rem;
}

h3 {
  font-size: 1.8rem;
  margin-top: 3rem;
}

h4 {
  font-size: 1.6rem;
}

h5 {
  font-size: 1.4rem;
}

p {
  max-width: 50em;
  margin: 1.6em 0;
}

svg {
  stroke: var(--fg-main);
  fill: var(--fg-main);
}

/*CONTAINER*/
#mainContainer {
  flex-grow: 1;
}

.msg,
.error {
  border-radius: 4px;
  font-style: italic;
  text-align: center;
  font-size: .9em;
  padding: .2em .2em;
  width: 100%;
  text-align: center;
}

.msg {
  margin-top: 16px;
  background-color: var(--bg-ok);
  color: var(--fg-box-ok);
}

.error {
  margin-top: 16px;
  background-color: var(--bg-alert);
  color: var(--fg-box-alert);
}

#breadcrumb {
  display: flex;
  flex-grow: 1;
  background-color: #32465a;
}

.navElement {
  flex-grow: 1;
  background-color: rgba(0, 0, 0, 0);
}

.hidden {
  display: none;
}

#navMenu {
  position: absolute;
  display: flex;
  flex-direction: column;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 10;
  background-color: rgba(119, 136, 152, 0.82);
  backdrop-filter: blur(2px);
}

#navMenu.hidden {
  display: none;
}

.topSide {
  display: flex;
  /*   height: max-content; */
  width: 100%;
}

#breadcrumb.hidden {
  display: none;
}

.crumbOfBread {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.textContainer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 0;
  margin-top: 0;
  margin-left: 0;
  padding: 2vh 6%;
}