@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

:root {
  --ivoire: #faf7f1;
  --encre: #1b2233;
  --vermillon: #b5402e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  background: var(--ivoire);
  color: var(--encre);
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Cormorant Garamond", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  font-weight: 300;
  font-style: normal;
  font-synthesis: none;
  font-size: 1.0625rem;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

a {
  color: var(--encre);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:visited {
  color: var(--encre);
}

.page {
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  max-width: 26rem;
  margin: 0 auto;
  padding: calc(1.6rem + env(safe-area-inset-top, 0px)) 1.5rem calc(1.4rem + env(safe-area-inset-bottom, 0px));
}

header,
main,
footer {
  width: 100%;
}

header {
  text-align: center;
}

.embleme {
  width: 5rem;
  height: auto;
  display: block;
  margin: 0 auto 1.15rem;
}

.office {
  font-weight: 600;
  font-style: normal;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0;
}

.phrase {
  font-weight: 500;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0.45rem 0 0;
}

.filet {
  display: block;
  width: 2.5rem;
  height: 2px;
  margin: 1.15rem auto 1.6rem;
  background: var(--vermillon);
  border: 0;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.82rem 1rem;
  border: 1px solid var(--encre);
  border-radius: 0;
  background: transparent;
  color: var(--encre);
  font-family: inherit;
  font-weight: 600;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.btn-principal {
  background: var(--encre);
  color: var(--ivoire);
}

.btn:focus-visible,
a:focus-visible {
  outline: 2px solid var(--encre);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    background: var(--encre);
    color: var(--ivoire);
  }

  .btn-principal:hover {
    background: transparent;
    color: var(--encre);
  }
}

.repartition {
  margin: 1.65rem 0 0;
  text-align: center;
  font-weight: 500;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
}

.avis {
  display: block;
  margin: 1.4rem 0 0;
  text-align: center;
  color: var(--encre);
  font-weight: 500;
  font-style: italic;
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

footer {
  margin-top: auto;
  padding-top: 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.45;
}

footer p {
  margin: 0.2rem 0 0;
}

footer p:first-child {
  margin-top: 0;
}

footer a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

/* Parcours */
.haut-parcours {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 0.5rem;
}

.retour {
  border: 0;
  padding: 0;
  background: none;
  color: var(--encre);
  font-family: inherit;
  font-weight: 500;
  font-style: italic;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.question {
  font-weight: 600;
  font-style: normal;
  font-size: 1.35rem;
  line-height: 1.3;
  text-align: center;
  margin: 0;
}

.parcours header .filet {
  margin-bottom: 1.35rem;
}

.resultat h2,
.mentions h1 {
  font-weight: 600;
  font-style: normal;
  font-size: 1.35rem;
  line-height: 1.3;
  text-align: center;
  margin: 0.35rem 0 0;
}

.resultat .texte,
.mentions .texte {
  margin: 0 0 1.1rem;
  text-align: center;
}

.resultat .texte p,
.mentions .texte p {
  margin: 0 0 0.8rem;
}

.resultat .coordonnees {
  margin: 1.25rem 0 0;
  text-align: center;
  font-weight: 600;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.55;
}

.resultat .coordonnees a {
  color: inherit;
  text-decoration: none;
}

.resultat .coordonnees a:hover,
.resultat .coordonnees a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.adresse {
  font-weight: 600;
  font-style: normal;
}

noscript p {
  text-align: center;
  margin: 0 0 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mentions */
.mentions .texte {
  text-align: left;
}

.mentions h2 {
  font-weight: 600;
  font-style: normal;
  font-size: 1.05rem;
  margin: 1.4rem 0 0.4rem;
}

.mentions .texte p {
  text-align: left;
  margin: 0 0 0.55rem;
}

.page-mentions main {
  justify-content: flex-start;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
}
