@import url('./fonts.css');

:root {
  --bs-primary: #286ac7;
  --bs-body-font-size: 0.8rem;
  --bs-font-sans-serif: 'Open Sans', 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";
  --bs-body-color: #575457;
  --bs-heading-color: #111;
  --bs-secondary-bg: #fff;
}

.nav {
  --bs-nav-link-color: #525457;
  --bs-nav-link-hover-color: var(--bs-primary);
  --bs-nav-underline-link-active-color: var(--bs-primary);
}

.nav-underline {
  --bs-nav-underline-gap: 3rem;
  margin-left: 10px;
}

@media(max-width:1000px) {
  .nav-underline {
    --bs-nav-underline-gap: 1rem;
  }
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: #0e3a70;
}

html,
body {
  height: 100%;
}

h2 {
  font-size: 1.2rem;
  margin-top: 1rem;
}

.wrapper {
  display: grid;
  grid-template-columns: 350px 1fr;
  grid-template-rows: 86px 1fr 1fr 50px;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  height: 100%;
}

@media(max-width:1000px) {
  .wrapper {
    /* 
    header and footer : fix value
    in the middle : 66% map, 33% parameters
    */
    /* grid-template-rows: 86px 2fr 1fr 70px; */
    /* fix header, footer and side bar, and the rest : map (1fr) */
    grid-template-rows: 86px 1fr 180px 40px;
  }
}

header {
  grid-area: 1 / 1 / 2 / 3;
}

header>.navbar {
  padding-top: 0;
  --bs-navbar-brand-color: var(--bs-body-color);
}

header>.navbar .logo {
  display: block;
  margin-right: 2rem;
}

#logoInsee {
  height: 50px;
  margin-left: 0.33rem;
}

@media(max-width:1000px) {
  #logoInsee {
    height: 45px;
  }
}

header>.navbar .navbar-brand {
  display: flex;
  align-items: center;
  min-width: 350px;

  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
}

header>.navbar nav .nav-link {
  border-width: 5px;
  display: flex;
  align-items: center;

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

  height: 86px;
}

@media(max-width:1000px) {
  header>.navbar nav .nav-link {
    font-size: 12px;
    height: 50px;
  }
}

.lang-switch {
  font-size: 10px;
  margin-left: auto;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer {
  grid-area: 4 / 1 / 5 / 3;

  padding: 10px;

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

  font-size: 12px;

  border-top: 5px solid #b6c3d4;
  ;
}

@media(max-width:1000px) {
  footer {
    font-size: 10px;
  }
}

footer>.link {
  margin-left: 1em;
}

footer>.link a {
  text-decoration: none;
  color: #264c7a;
}

footer .nav {
  --bs-nav-link-padding-x: 0.5em;
}

@media(max-width:1000px) {
  footer .nav {
    /* radical choice ? no links in footer on mobile */
    display: none;
  }
}

footer nav.nav .nav-link {
  position: relative;
}

footer nav.nav .nav-link+.nav-link:before {
  content: "";
  position: absolute;
  display: block;
  height: 1em;
  width: 1px;
  background: currentColor;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

footer .copyright {
  text-align: center;
  padding-right: 1em;
}

@media(max-width:1000px) {
  footer .copyright {
    font-size: 10px;
  }
}

.credits {
  margin-top: auto;
}

.button {
  font-size: 0.8em;
  text-transform: none;
  color: rgb(25, 118, 210);
  border: .15000000596046448px solid #999;
  border-radius: 24px;
  background-color: rgba(25, 118, 210, 0.04);
  text-align: center;
  padding: 3px 5px;
  margin: 1px;
}

button:disabled,
button[disabled]{
  border: 1px solid #999999;
  background-color: #cccccc;
  color: #666666;
}

td {
  padding: 0px 10px;
  text-align: right;
}

table {
  width: 100%;
}
