:root {
  --fond: #141414;
  --fond-2: #1E1E1E;
  --trait: #2E2E2E;
  --texte: #EDEDED;
  --texte-2: #A3A3A3;
  --accent: #F5A524;
  --rayon: 6px;
}

body {
  margin: 0;
  padding: 0 1rem;
  background-color: var(--fond);
  color: var(--texte);
  font-family: system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

header,
main,
footer {
  max-width: 60rem;
  margin: 0 auto;
}

main p {
  max-width: 68ch;
  text-align: justify;
  hyphens: auto;
}

h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin: 3rem 0 0.5rem;
  text-align: center;
}

h2 {
  display: inline-block;
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--accent);
}

h1 + p {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--texte-2);
  text-align: center;
}

a {
  color: var(--accent);
}

abbr {
  text-decoration: none;
  cursor: help;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--trait);
}

header p {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
}

header p a {
  color: var(--texte);
  text-decoration: none;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: var(--texte-2);
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.25rem;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover {
  color: var(--texte);
  border-bottom-color: var(--trait);
}

nav a[aria-current="page"] {
  color: var(--texte);
  border-bottom-color: var(--accent);
}

figure {
  margin: 2rem 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--rayon);
}

figure img {
  max-height: 32rem;
  margin: 0 auto;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

.duo figure {
  margin: 0;
}

.duo img {
  width: 100%;
  max-height: none;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.banniere img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 60%;
}

video {
  display: block;
  width: 100%;
  height: auto;
  margin: 2rem 0;
  border-radius: var(--rayon);
}

figcaption {
  margin-top: 0.5rem;
  text-align: center;
  color: var(--texte-2);
  font-size: 0.875rem;
}

.cartes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem 0;
  padding: 0;
  list-style: none;
}

.cartes a {
  display: flex;
  align-items: center;

  box-sizing: border-box;
  height: 100%;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background-color: var(--fond-2);
  border: 1px solid var(--trait);
  border-radius: var(--rayon);
  color: var(--texte-2);
  font-size: 1rem;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s;
}

.cartes a:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.cartes strong {
  display: block;
  color: var(--texte);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}

.cartes a > span:first-child {
  min-width: 1.5rem;
}

.cartes a > span:last-child {
  margin-left: auto;
  color: var(--accent);
  font-size: 1.5rem;
}

address {
  font-style: normal;
}

footer {
  margin-top: 4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--trait);
  color: var(--texte-2);
  font-size: 0.875rem;
  text-align: center;
}

table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 1rem;
}

caption {
  margin-bottom: 0.5rem;
  color: var(--texte-2);
  font-size: 0.875rem;
  text-align: left;
}

th,
td {
  padding: 0.75rem;
  border: 1px solid var(--trait);
  text-align: left;
  vertical-align: top;
}

th {
  background-color: var(--fond-2);
}

@media (max-width: 40rem) {
  h1 {
    font-size: 2rem;
  }

  .banniere img {
    aspect-ratio: 4 / 3;
  }

  .duo,
  .cartes {
    grid-template-columns: 1fr;
  }

  .cartes a {
    gap: 1rem;
    padding: 1rem;
  }

  th,
  td {
    padding: 0.4rem;
    font-size: 0.875rem;
  }
}

@media print {
  body {
    background-color: #fff;
    color: #000;
  }

  nav {
    display: none;
  }

  a,
  header p a,
  .cartes strong {
    color: #000;
  }

  h2 {
    border-bottom-color: #000;
  }

  .cartes a,
  th {
    background-color: #fff;
  }

  th,
  td {
    border-color: #000;
  }

  .cartes a > span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  nav a,
  .cartes a {
    transition: none;
  }
}
