:root {
  --main-color: #0029A5;
  font-family: Inter, sans-serif;
  font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
  --text-size: 22px;
  --h1-size: 68px;
}

@supports (font-variation-settings: normal) {
  :root { font-family: InterVariable, sans-serif; }
}

html {
  scroll-padding-top: 154px; /* height + padding of homebar */
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
		margin:0 auto;
    font-size: var(--text-size);
    line-height:1.62;
    font-family: Inter,sans-serif;
    scroll-behavior: smooth;
}

.section-content {
	max-width:1366px;
  margin: 0 auto;
}

.section-separator {
  position: relative;
  width: 100vw;
  height:4vw;
  background: var(--main-color);
  clip-path: polygon(0 2vw, 100% 0, 100% calc(100% - 2vw), 0 100%);
  margin: -2vw 0;
  left: 50%;
  transform: translateX(-50%);
}

header {
  height:140px;
  position: sticky;
  top: -1px;
  background-color: white;
  padding: 10px 16px;
  z-index: 2;
  border-bottom: 2px solid var(--main-color);
}

footer {
  margin-top: 20px;
}

#homebar {
	max-width:1366px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

h1,h2,h3,h4 {
  line-height:1.2;
  font-variant: small-caps;
}

hgroup {
  text-align: center;
  margin:2em;
}

h1 {
  margin-block: 0.67em;
  font-size: 3em;
  font-weight: 500;
}

h2 {
  font-size: 2em;
}

h4 {
  font-size: 1.2em;
}

hgroup h1 {
  margin-bottom: 6px;
}

hgroup p {
  font-weight: bold;
  font-size: 0.8em;
  padding-left: 20px;
}

.centered {
  margin-left:auto;
  margin-right:auto;
}

.text-centered {
  text-align: center;
  display: block;
}

.call-to-action {
  margin-top: 30px;
  display:block;
  background-color: var(--main-color);
  color: white;
  border: none;
  border-radius: 60px;
  font-size: 0.8em;
  font-weight: bold;
  padding: 20px 30px;
  width: fit-content;
  text-decoration: none;
}

.cta-header {
  margin:0 0 0 20px;
}

.half-width {
  max-width: 50%;
}

.section-heading {
  text-align: center;
}

.parallax {
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

.cover {
  padding: 4vw;
  color:white;
}

.cover-light {
  color:black;
}

main p {
  padding:0 20px;
}

#logo {
  height: 125px;
}

nav {
  list-style: none;
  display: flex;
  align-items: center;
  padding-left: 20px;
}

nav a {
  padding-left: 20px;
  text-decoration: none;
  color:var(--main-color);
}

nav span {
  padding-left: 20px;
  color:white;
}

.header-nav {
  margin-left:auto;
  display: flex;
  align-items: center;
  font-size: 20px;
}


.footer-nav {
  font-size: 16px;
  font-variant: small-caps;
  margin: 0 auto;
  width: fit-content;
}

.footer-nav a {
  text-decoration: underline;
  color:white;
}

.activities {
  margin-left: 4vw;
  margin-right: 4vw;
}

.activity {
  min-height: 400px;
  align-content: center;
}

.activity:nth-child(odd) .cover-content{
  margin-left:auto;
}

.references {
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
}

.reference-box img {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px;
  width: 280px;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease-in-out;
}

.reference-box img:hover {
  transform: scale(1.1);
}

.reference-box {
  text-align: center;
  display:flex;
  flex-direction: column;
  padding: 2vw;
  width: 360px;
}

.ref-lieu {
  font-size: 0.8em;
  font-style: italic;
  padding-bottom: 1.5vw;
}

.popoverbutton {
  background:transparent;
  border:none;
  font:inherit;
}
.popoverbutton:hover{
  cursor:pointer;
}
dialog {
  background-color: rgba(255, 255, 255, 1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  padding:0;
}
dialog::backdrop {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: grayscale(40%) blur(3px);
  transition: all 1s ease-in-out;
}

.dialog-modal {
  animation: expand 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes expand {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

body:has(:popover-open) :is(button, a) {
  pointer-events: none;
}
dialog[popover] :is(button, a) {
  pointer-events: auto;
}

.dialog-reference {
  padding:5px;
  text-align: center;
  display:flex;
  flex-direction: column;
  width:500px;
}

.equipe {
  display:flex;
  flex-wrap: wrap;
  justify-content: center;
}

.equipe-box {
  text-align: center;
  align-items: center;
  display:flex;
  flex-direction: column;
  padding: 10px;
  width: 250px;
}

.equipe-box img {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 5px; 
  object-fit: cover;
}

.eq-poste {
  font-size: 0.8em;
  font-style: italic;
  padding-bottom: 15px;
}

.centered-container {
  width: fit-content;
  margin-left: auto;
  margin-right:auto;
  text-align: center;
}

.img-address{
  height:200px;
}

address {
  width: fit-content;
  margin-left: auto;
  margin-right:auto;
  text-align: center;
}

.address-header {
  font-style: normal;
  font-size: 1.5em;
  font-variant: small-caps;
}

.bottom-band {
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display:none;
}
.hamburger-icon {
  display:none;
}

.notice {
  font-size: 16px;
  text-align: center;
}

@media (max-width: 840px) {
  .half-width {
    max-width: 100%;
  }

  .hamburger-icon {
    cursor: pointer;
    display: inline-block;
    position: relative;
    user-select: none;
    margin-left: 10px;
    margin-right: auto;
    color:var(--main-color);
    font-size: 1.5em;
  }

  .menu {
    top:160px;
    right:0px;
    background-color: white;
    position:absolute;
    z-index: 3;
    clear: both;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease-out;
    padding:0;
    align-items:end;
  }

  .menu a {
    padding: 0.1em 1em;
  }

  .hamburger:checked ~ .menu {
    max-height: 200px;
    border-bottom: 2px solid var(--main-color);
    border-left: 2px solid var(--main-color);
  }

  .call-to-action {
    padding:15px 20px;
  }

  .cover {
    padding-left: 1vw;
    padding-right: 1vw;
  }

  h4 {
    text-align: center;
  }

  main p {
    text-align: center;
  }

  .cta-header {
    margin:auto;
  }

  .footer-nav {
    flex-direction: column;
    text-align: center;
    padding-left: 0px;
  }

  .footer-nav span {
    padding-left:0px;
  }
  .footer-nav a {
    padding-left:0px;
  }
}

@media (max-width: 600px) {
  .dialog-reference {
    width:auto;
    max-width: 90vw;
  }
}

html {
    visibility: visible;
    opacity: 1;
}