/* Style de Klin. Couleurs et polices : fiche d’identité. */

@font-face {
  font-family: "DM Serif Display";
  src: url("assets/polices/DMSerifDisplay_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/polices/NunitoSans_400Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nunito Sans";
  src: url("assets/polices/NunitoSans_500Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  background: #E6CFC4;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  background: linear-gradient(to bottom, #F8F3EC 0%, #F0E3D8 48%, #E6CFC4 100%);
  color: #2E2E2E;
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
p {
  margin: 0;
}

h1,
h2 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  letter-spacing: 0.6px;
}

h1 {
  color: #3A2618;
  font-size: 32px;
  line-height: 40px;
  overflow-wrap: break-word;
}

a {
  color: #3A2618;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid #4A3229;
  outline-offset: 3px;
}

header {
  box-sizing: border-box;
  padding: 16px;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 64rem;
  margin: 0 auto;
}

header nav a:first-child {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  text-decoration: none;
}

header img {
  display: block;
  width: auto;
  max-width: 150px;
  height: 36px;
}

header nav a:last-child {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid #D4C0B2;
  border-radius: 999px;
  background: #FBF8F4;
  color: #2E2E2E;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
}

main > section:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 32rem;
  padding: 48px 16px;
  overflow: hidden;
  background-color: #3A2618;
  /* Fond illustré du haut de l’accueil. Changer un seul mot dans le nom du fichier pour passer à l’autre image. */
  background-image:
    linear-gradient(rgba(58, 38, 24, 0.38), rgba(58, 38, 24, 0.38)),
    url("assets/fonds/fond-village.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

main > section:first-child h1,
main > section:first-child p {
  box-sizing: border-box;
  align-self: stretch;
  width: auto;
  min-width: 0;
  max-width: 28rem;
  margin: 0;
  text-align: center;
  background: #FBF8F4;
}

main > section:first-child h1 {
  padding: 20px 20px 0;
  border: 1.5px solid #D4C0B2;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  line-height: normal;
}

main > section:first-child p {
  padding: 16px 20px 20px;
  border: 1.5px solid #D4C0B2;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  color: #2E2E2E;
  font-size: 16px;
  line-height: 24px;
  overflow-wrap: break-word;
}

main > section:first-child img {
  display: block;
  width: auto;
  max-width: min(100%, 220px);
  height: auto;
  margin: 0 auto;
}

main > section:nth-child(2),
main > section:nth-child(3),
main > section:nth-child(4) {
  box-sizing: border-box;
  max-width: 64rem;
  margin: 48px auto 0;
  padding: 0 16px;
}

main > section:nth-child(2) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

main > section:nth-child(2) > div {
  overflow: hidden;
  border: 1.5px solid #D4C0B2;
  border-radius: 16px;
  background: #FBF8F4;
}

main > section:nth-child(2) h2 {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
  padding: 8px 20px;
  border-bottom: 1.5px solid #D4C0B2;
  color: #F8F3EC;
  font-size: 18px;
  line-height: 24px;
}

main > section:nth-child(2) > div:nth-child(1) h2,
main > section:nth-child(2) > div:nth-child(3) h2 {
  background: #B85F45;
}

main > section:nth-child(2) > div:nth-child(2) h2 {
  background: #4A3229;
}

main > section:nth-child(2) > div > p {
  padding: 20px;
  color: #2E2E2E;
  font-size: 16px;
  line-height: 24px;
}

main > section:nth-child(2) blockquote {
  margin: 0;
  padding: 16px 20px 20px;
  border-top: 1px solid #D4C0B2;
}

main > section:nth-child(2) blockquote p {
  margin: 0;
  padding: 0;
  color: #2E2E2E;
  font-size: 16px;
  font-style: italic;
  line-height: 24px;
}

main > section:nth-child(2) blockquote p:first-child {
  margin-bottom: 8px;
  color: #6E6864;
  font-size: 12px;
  font-weight: 500;
  font-style: normal;
  line-height: 16px;
}

main > section:nth-child(3) {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 24px;
}

main > section:nth-child(3) > div {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 220px);
  aspect-ratio: 9 / 16;
  padding: 20px;
  border: 1.5px solid #D4C0B2;
  border-radius: 28px;
  background: #E8D6CC;
  color: #2E2E2E;
  font-size: 16px;
  line-height: 24px;
  text-align: center;
}

main > section:nth-child(4) {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

main > section:nth-child(4) > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid #D4C0B2;
  border-radius: 999px;
  background: #FBF8F4;
  text-align: center;
}

main > section:nth-child(4) button {
  appearance: none;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #2E2E2E;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 20px;
  cursor: default;
  opacity: 1;
}

main > section:nth-child(4) button:disabled {
  color: #2E2E2E;
  opacity: 1;
}

main > section:nth-child(4) p {
  margin: 0;
  color: #6E6864;
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
}

main:not(:has(> section)) {
  max-width: 40rem;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

main:not(:has(> section)) > h1 {
  margin-bottom: 24px;
}

main:not(:has(> section)) > p {
  margin: 0;
  padding: 8px 20px;
  border-right: 1.5px solid #D4C0B2;
  border-left: 1.5px solid #D4C0B2;
  background: #FBF8F4;
}

main:not(:has(> section)) > h1 + p {
  padding-top: 20px;
  border-top: 1.5px solid #D4C0B2;
  border-radius: 16px 16px 0 0;
}

main:not(:has(> section)) > p:last-of-type {
  padding-bottom: 20px;
  border-bottom: 1.5px solid #D4C0B2;
  border-radius: 0 0 16px 16px;
}

main:not(:has(> section)) > p:only-of-type {
  padding: 20px;
  border: 1.5px solid #D4C0B2;
  border-radius: 16px;
}

footer {
  margin-top: 0;
  padding: 8px 16px 24px;
  border-top: 1px solid #D4C0B2;
  color: #2E2E2E;
  font-size: 12px;
  line-height: 16px;
}

footer nav,
footer p {
  max-width: 64rem;
  margin-right: auto;
  margin-left: auto;
}

footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

footer p {
  margin-top: 0;
}

footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

body:has(main > h1) header nav,
body:has(main > h1) footer nav,
body:has(main > h1) footer p {
  max-width: 40rem;
}

@media (min-width: 50rem) {
  main > section:nth-child(2),
  main > section:nth-child(3) {
    grid-template-columns: repeat(3, 1fr);
  }

  footer nav {
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 24px;
  }
}

/* Page de confidentialité uniquement. */
.page-confidentialite > div {
  padding: 20px;
  border: 1px solid #D4C0B2;
  border-radius: 16px;
  background: #FBF8F4;
}

.page-confidentialite > div > p:first-child {
  margin-bottom: 24px;
  color: rgb(46 46 46 / 70%);
  font-family: "Nunito Sans", sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.page-confidentialite > div > h2:first-of-type {
  margin-top: 0;
}

.page-confidentialite h2 {
  margin: 40px 0 12px;
  color: #3A2618;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.6px;
}

.page-confidentialite h3 {
  margin: 24px 0 8px;
  color: #3A2618;
  font-family: "DM Serif Display", serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  letter-spacing: 0.6px;
}

.page-confidentialite h2 + h3 {
  margin-top: 24px;
}

.page-confidentialite p {
  margin: 0 0 14px;
  color: #2E2E2E;
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.page-confidentialite strong {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 500;
}

.page-confidentialite ul {
  margin: 0 0 14px;
  padding-left: 1.25rem;
  color: #2E2E2E;
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.page-confidentialite li {
  margin: 0 0 8px;
}

.page-confidentialite li:last-child {
  margin-bottom: 0;
}

.page-confidentialite > div > :last-child {
  margin-bottom: 0;
}

@media (min-width: 50rem) {
  .page-confidentialite > div {
    padding: 32px;
  }
}
