@font-face {
  font-family: 'Platelet';
  src: url('../assets/fonts/Platelet.ttf') format('truetype');
}

:root {
  --font-body-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --font-body-color: #151723;

  --h1-style: 'Platelet', sans-serif;
  --h1-color: #292156;
  --h1-size: 2.45rem;
  --h1-line-height: 1;
  --h1-weight: 700;
  --h1-subtitle-color: #292156;
  --h1-subtitle-size: 38%;
  --h1-subtitle-weight: 700;

  --Hn-style: "Khand", sans-serif;

  --h2-color: #292156;
  --h2-background-color: #faec00;
  --h2-size: 2.2rem;
  --h2-weight: 700;
  --h2-border-radius: 2px;

  --h3-color: #029ee3;
  --h3-size: 1.7rem;

  --h4-color: #d48132;
  --h4-size: 1.5rem;

  --h5-color: #a6c718;
  --h5-size: 1.2rem;

  /* --nav-background-color: #323232; */
  --nav-background-color: #5da1d8;
  --nav-font-color: white;
  --nav-font-size: 1em;

  --table-head-background-color: #f19f00;
  --table-head-color: white;
}


.futuroscope-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1320 / 320;
  /* Maintains image ratio responsively */
  background-image: url('/img/futuroscope/banniere-futuroscope.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.futuroscope-banner h1 {
  position: relative;
  color: #292156;
  text-align: center;
  z-index: 2;
}

.futuroscope-banner .highlight {
  background-color: rgba(255, 235, 85, 0.86);  /* yellow with 85% opacity */
  padding: 0.5rem 1rem;
  display: inline-block;
}

.aquascope-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 1320 / 320;
  /* Maintains image ratio responsively */
  background-image: url('/img/futuroscope/banniere-aquascope.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aquascope-banner h1 {
  position: relative;
  color: #292156;
  text-align: center;
  z-index: 2;
}

.aquascope-banner .highlight {
  background-color: rgba(255, 235, 85, 0.86);  /* yellow with 85% opacity */
  padding: 0.5rem 1rem;
  display: inline-block;
}

.h1-subtitle {
  display: block;
  font-size: 1.5rem;
  font-weight: normal;
  background-color: rgba(255, 235, 85, 0.85);
  margin-top: 20px;
  padding: 5px 0px;
}

/* ---------------------------------------------------------- TABLES  */
.table thead th {
  background-color: var(--table-head-background-color);
  color: var(--table-head-color);
}

.table .table-top-thick-border {
  border-top-width: 3px;
  border-top-style: solid;
  border-top-color: black;
}

.table th.hide-cell {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  color: transparent !important;
}


/* ------------------------------------------------------------RESPONSIVE FONTS */
h1,
.h1 {
  font-size: calc(var(--h1-size) + 1.6vw);
}

h2,
.h2 {
  font-size: calc(var(--h2-size) + 0.4vw);
}

h3,
.h3 {
  font-size: calc(var(--h3-size) + 0.3vw);
}

h4,
.h4 {
  font-size: calc(var(--h4-size) + 0.2vw);
}

h5,
.h5 {
  font-size: calc(var(--h5-size) + 0.2vw);
}

.display-1 {
  font-size: calc(1.725rem + 5.7vw);
}

.display-2 {
  font-size: calc(1.675rem + 5.1vw);
}

.display-3 {
  font-size: calc(1.575rem + 3.9vw);
}

.display-4 {
  font-size: calc(1.475rem + 2.7vw);
}

.close {
  font-size: calc(1.275rem + 0.3vw);
}

legend {
  font-size: calc(1.275rem + 0.3vw);
}


/* ---------------------------------------------------------- LEAD */
.lead {
  font-size: 1.05rem;
  font-weight: normal;
  font-style: italic;
  margin: 1rem 1rem;
}

/* ---------------------------------------------------------- TITRES */
h1 {
  font-family: var(--h1-style);
  color: var(--h1-color);
  line-height: var(--h1-line-height);
  font-weight: var(--h1-weight);
  text-align: center;
  overflow-wrap: break-word;
  margin: 1.6rem 0.4em 1.2rem 0.4em;
}

.h1-subtitle {
  color: var(--h1-subtitle-color);
  font-weight: var(--h1-subtitle-weight);
  font-size: var(--h1-subtitle-size);
}

h2,
h3,
h4,
h5 {
  font-family: var(--Hn-style);
}

h2 {
  background-color: var(--h2-background-color);
  color: var(--h2-color);
  font-weight: var(--h2-weight);
  text-align: center;
  margin: 1.7em -9px 0.3em -9px;
  padding: 0.35em 0.35em 0.10em 0.35em;
  border-radius: var(--h2-border-radius);
}

h3 {
  color: var(--h3-color);
  font-weight: 700;
  text-align: center;
  margin: 1.5em 0px 1rem 0px;
  padding: 0em 0em;
  overflow: hidden;
}

h3:before {
  content: '';
  display: inline-block;
  width: 100%;
  height: 100%;
  margin-left: -100%;
  margin-right: 0.5em;
  border-bottom: 2px solid var(--h3-color);
  ;
  position: relative;
  vertical-align: middle;
}

h3:after {
  content: '';
  display: inline-block;
  width: 100%;
  height: 100%;
  margin-right: -100%;
  margin-left: 0.5em;
  border-bottom: 2px solid var(--h3-color);
  ;
  position: relative;
  vertical-align: middle;
}

/* h3 {
    color: var(--h3-color);
    font-weight: 700;
    text-align: left;
    margin: 1em 0px 0.8rem 0px;
    padding: 0em 0em;
    overflow: hidden;
}

h3:after {
    content:'';
    display:inline-block;
    width:100%; height:100%;
    margin-right:-100%;
    margin-left: 0.5em;
    border-bottom:2px solid  var(--h3-color);;
    position: relative;
    vertical-align: middle;
  } */

h4 {
  color: var(--h4-color);
  font-weight: 700;
  margin-top: 1.3em;
  margin-bottom: 0rem;
}

h5 {
  color: var(--h5-color);
  font-size: var(--h5-size);
  font-weight: 700;
}

/* ------------------------------------------------------------STRUCTURE */
body {
  font-family: var(--font-body-family);
  color: var(--font-body-color);
  /* background-color: var(--nav-background-color); */
}

.container {
  background-color: white;
}

/* ------------------------------------------------------------NAVIGATION */
nav {
  color: var(--nav-font-color);
  background-color: var(--nav-background-color);
  font-size: var(--nav-font-size);
  font-weight: bold;
  margin-bottom: 2rem;
}

.navbar-nav .nav-link.active:hover,
.navbar-nav .nav-link.active:active {
  text-decoration: none;
  color: var(--nav-background-color);
  background-color: var(--nav-font-color);
  border-radius: 2px;
}