@font-face {
  font-family: "Open Sans";
  font-stretch: 100%;
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/OpenSans-Latin.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-stretch: 100%;
  font-style: normal;
  font-weight: 600;
  src: url("/assets/fonts/OpenSans-Latin.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-stretch: 100%;
  font-style: italic;
  font-weight: 400;
  src: url("/assets/fonts/OpenSans-Italic-Latin.woff2") format("woff2");
}

@font-face {
  font-family: "Open Sans";
  font-stretch: 100%;
  font-style: italic;
  font-weight: 600;
  src: url("/assets/fonts/OpenSans-Italic-Latin.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/RobotoSlab-Latin.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Slab";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/RobotoSlab-Latin.woff2") format("woff2");
}

:root {
  --brand: #f56a6a;
  --brand-dark: #f56a6a;
  --text: #7f888f;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

:focus-visible {
  outline: 3px solid #3d4449;
  outline-offset: 3px;
}

.skip-link {
  background: #ffffff;
  color: #222222;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: -5rem;
  z-index: 20000;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

#header.site-header > * {
  flex: 0 0 auto;
}

/* Conserve la hauteur du bandeau public sans réintroduire l'espace connecté. */
#header.site-header::before {
  content: "";
  display: block;
  height: 2.8em;
  width: 0;
}

.eyebrow {
  color: var(--brand);
  font-family: "Roboto Slab", serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

#banner .actions {
  margin-top: 2rem;
}

.page-content {
  display: flow-root;
  padding: 5rem 0 3rem;
}

.page-content > .main {
  margin-bottom: 2rem;
}

.page-content > .main h1 {
  margin-bottom: 0;
}

.page-hero {
  aspect-ratio: 32 / 9;
  display: block;
  margin: 0 0 3rem;
  overflow: hidden;
  width: 100%;
}

.page-hero img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

/* Le site historique recadrait tous les bandeaux principaux en 32:9. */
.image.main {
  aspect-ratio: 32 / 9;
  overflow: hidden;
}

.image.main img {
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  width: 100% !important;
}

.legacy-subheading {
  font-size: 1.1em;
}

.legacy-section-title {
  font-size: 1.75em;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.page-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 70ch;
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 2.5rem;
}

.feature-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  border: solid 1px rgba(210, 215, 217, 0.75);
  border-radius: 0.375rem;
  padding: 1.75rem;
}

.feature-card > :last-child {
  margin-bottom: 0;
}

.feature-card h2 {
  font-size: 1.25rem;
}

.page-actions {
  margin-top: 1rem;
}

.notice {
  background: #f5f6f7;
  border-left: 0.35rem solid var(--brand);
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
}

.posts article .image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  transition: transform 0.2s ease;
  width: 100% !important;
}

.posts article .image {
  overflow: hidden;
}

.posts article .image:hover img {
  transform: scale(1.075);
}

.mini-posts article .image img {
  aspect-ratio: auto;
  display: block;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  width: 100% !important;
}

.mini-posts article .image {
  aspect-ratio: 1 / 1;
  display: block;
  overflow: hidden;
  width: 100%;
}

#menu .menu-group > summary {
  border-bottom: 0;
  box-sizing: border-box;
  color: inherit;
  cursor: pointer;
  display: block;
  font-family: "Roboto Slab", serif;
  font-size: 0.9em;
  letter-spacing: inherit;
  list-style: none;
  padding: 0.625em 0;
  position: relative;
  text-transform: uppercase;
}

#menu .menu-group > summary::-webkit-details-marker {
  display: none;
}

#menu .menu-group > summary::after {
  color: #9fa3a6;
  content: "\f078";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  line-height: 1;
  position: absolute;
  right: 0;
  transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
}

#menu .menu-group > summary:hover,
#menu .menu-group > summary:focus-visible,
#menu .menu-group--current > summary {
  color: var(--brand-dark);
}

#menu .menu-group > summary:hover::after,
#menu .menu-group > summary:focus-visible::after {
  color: var(--brand-dark);
}

#menu .menu-group[open] > summary::after {
  transform: rotate(-180deg);
}

#menu .menu-group > ul {
  color: #9fa3a6;
  margin: 0.5em 0 1.5em;
  padding-left: 1em;
}

#menu .menu-group > ul a {
  font-size: 0.8em;
}

#menu .menu-group > ul > li {
  margin: 0.125em 0 0;
  padding: 0.125em 0 0;
}

.menu-toggle {
  display: none;
}

@media screen and (min-width: 981px) {
  #main {
    min-width: 0;
    width: auto;
  }
}

@media screen and (min-width: 981px) and (max-width: 1280px) {
  #sidebar {
    box-shadow: none;
  }
}

@media screen and (max-width: 980px) {
  .js .menu-toggle {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #7f888f;
    cursor: pointer;
    display: block;
    font-size: 0.9em;
    font-weight: 400;
    height: 6.25em;
    left: 0;
    line-height: 6.25em;
    outline: 0;
    overflow: hidden;
    padding: 0;
    position: fixed;
    text-align: center;
    text-indent: 6em;
    top: 0;
    transition: left 0.5s ease;
    white-space: nowrap;
    width: 6em;
    z-index: 11000;
  }

  .js .menu-toggle::before {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    content: "\f0c9";
    display: inline-block;
    font-family: "Font Awesome 5 Free";
    font-size: 1.5rem;
    font-style: normal;
    font-variant: normal;
    font-weight: 900;
    height: inherit;
    left: 0;
    line-height: inherit;
    margin-left: -0.4375em;
    position: absolute;
    text-indent: 0;
    text-rendering: auto;
    text-transform: none;
    top: 0;
    width: inherit;
  }

  .js .menu-toggle:hover,
  .js .menu-toggle:focus-visible {
    background: transparent;
    box-shadow: none;
    color: var(--brand) !important;
  }

  .js body.menu-open {
    overflow: hidden;
  }

  .js #sidebar {
    box-shadow: none;
    margin-left: -24em;
  }

  .js body.menu-open #sidebar {
    box-shadow: 0 0 5em 0 rgba(0, 0, 0, 0.175);
    margin-left: 0;
  }

  .js body.menu-open .menu-toggle {
    left: 24em;
  }
}

@media screen and (max-width: 736px) {
  .js .menu-toggle {
    text-indent: 7.25em;
    width: 7.25em;
  }

  .js .menu-toggle::before {
    color: #7f888f;
    font-size: 1.1rem;
    margin-left: -0.0625em;
    margin-top: -0.25em;
    z-index: 1;
  }

  .js .menu-toggle::after {
    background: rgba(222, 225, 226, 0.75);
    border-radius: 0.375em;
    content: "";
    height: 3.5em;
    left: 1em;
    position: absolute;
    top: 1em;
    width: 5em;
  }

  .page-content {
    padding-top: 3.5rem;
  }

  .page-hero {
    aspect-ratio: 16 / 9;
  }

  .feature-grid,
  .feature-grid--three {
    grid-template-columns: 1fr;
  }

  .site-header .logo {
    font-size: 0.85rem;
  }

  #banner .actions li,
  #banner .actions .button {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .site-header {
    padding-left: 5.5rem;
  }
}
