/* Atelier Tempéré: feuille de style */

:root {
  --paper: #f6f1e7;
  --paper-deep: #ece3d0;
  --ink: #2b2420;
  --ink-soft: #5f544b;
  --felt: #1f4d3a;
  --felt-deep: #15372a;
  --wine: #7a2e2e;
  --rule: #d6c9b0;
}

* { box-sizing: border-box; }

html { font-size: 106.25%; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  line-height: 1.58;
}

a { color: var(--felt); text-underline-offset: .15em; }
a:hover { color: var(--wine); }

.page { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }

/* Keyboard band: white keys every 24px, black keys in groups of 2 and 3 */
.keys {
  height: 20px;
  background-color: #fbf8f1;
  background-image:
    linear-gradient(90deg,
      transparent 0 18px, #211c18 18px 30px,
      transparent 30px 42px, #211c18 42px 54px,
      transparent 54px 90px, #211c18 90px 102px,
      transparent 102px 114px, #211c18 114px 126px,
      transparent 126px 138px, #211c18 138px 150px,
      transparent 150px 168px),
    repeating-linear-gradient(90deg, #c4b9a6 0 1px, transparent 1px 24px);
  background-size: 168px 12px, 24px 100%;
  background-repeat: repeat-x, repeat;
  border-bottom: 1px solid #c4b9a6;
}

.masthead { background: var(--paper-deep); border-bottom: 1px solid var(--rule); }
.masthead__inner {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .5rem 2rem; padding-top: 1.1rem; padding-bottom: 1.1rem;
}
.wordmark {
  font-size: 1.45rem; font-variant: small-caps; letter-spacing: .06em;
  color: var(--felt); text-decoration: none;
}
.wordmark:hover { color: var(--felt-deep); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--rule); }
.nav a[aria-current="page"] { color: var(--felt); border-bottom-color: var(--felt); }

main.page { padding-top: 3rem; padding-bottom: 1rem; }

.kicker {
  margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wine);
}
h1 {
  margin: 0 0 1rem; max-width: 24em;
  font-weight: 400; font-size: clamp(1.75rem, 4.2vw, 2.6rem); line-height: 1.18; letter-spacing: -.005em;
}
h2 { font-weight: 600; font-size: 1.2rem; margin: 0 0 .5rem; color: var(--felt-deep); }
h3 { font-weight: 600; font-size: 1.02rem; margin: 1.6rem 0 .35rem; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 38em; margin: 0; }

.grid-3 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem; margin: 3rem 0;
}
.tile { border-top: 3px solid var(--felt); padding-top: .85rem; }
.tile p { margin: 0; }

.split {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
  border-top: 1px solid var(--rule); padding-top: 2.25rem; margin-bottom: 2rem;
}
@media (min-width: 46rem) { .split { grid-template-columns: 3fr 2fr; gap: 3.5rem; } }

.aside {
  background: var(--paper-deep); border-left: 3px solid var(--wine); padding: 1.1rem 1.25rem;
}
.aside p:last-child { margin-bottom: 0; }

.button {
  display: inline-block; background: var(--felt); color: var(--paper);
  padding: .55rem 1.05rem; border-radius: 2px; text-decoration: none; letter-spacing: .02em;
}
.button:hover { background: var(--felt-deep); color: #fff; }

.small { font-size: .9rem; color: var(--ink-soft); }

/* Tarifs */
.prices { width: 100%; border-collapse: collapse; margin: 1rem 0 .5rem; font-size: 1rem; }
.prices caption { text-align: left; font-weight: 600; color: var(--felt-deep); padding-bottom: .4rem; }
.prices th, .prices td { text-align: left; vertical-align: top; padding: .6rem .5rem .6rem 0; border-bottom: 1px dotted var(--rule); }
.prices th { font-weight: normal; }
.prices td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.prices .detail { display: block; font-size: .88rem; color: var(--ink-soft); }
.prices-block { margin-bottom: 2.5rem; }

/* Conseils */
.advice { max-width: 40em; margin-top: 2.5rem; }
details { border-bottom: 1px solid var(--rule); padding: .8rem 0; }
details:first-of-type { border-top: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; color: var(--felt-deep); }
summary:hover { color: var(--wine); }
details p { margin: .6rem 0 0; }

.notfound { padding: 2rem 0 4rem; max-width: 34em; }

/* Pied de page */
.colophon { background: var(--felt-deep); color: #e7e0cf; margin-top: 4rem; padding: 2.25rem 0 1.25rem; font-size: .93rem; }
.colophon strong { color: #fff; font-weight: 600; }
.colophon a { color: #e7e0cf; }
.colophon__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.colophon__legal { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid rgba(231, 224, 207, .25); font-size: .82rem; color: #bdb5a2; }
