/* Base : typographie système, contraste et largeur de lecture. */
:root {
  font-family: system-ui, sans-serif;
  color: #252b27;
  background: #f6f5f1;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
header,
main,
footer {
  max-width: 1240px;
  margin: auto;
}
header {
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dddcd5;
}
.brand {
  font-weight: 750;
  font-size: 23px;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand span {
  color: #477157;
  padding-right: 8px;
}
.header-note,
.eyebrow,
.category {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 650;
}
.header-note {
  color: #74776f;
}
main {
  padding: 56px 36px 64px;
}
.intro {
  position: relative;
  margin-bottom: 44px;
}
.eyebrow {
  color: #5c7162;
  margin-bottom: 23px;
}
h1 {
  font-size: clamp(56px, 8vw, 100px);
  line-height: 0.98;
  letter-spacing: -5px;
  margin: 0;
  font-weight: 650;
}
h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #477157;
}
.lead {
  max-width: 355px;
  position: absolute;
  right: 0;
  bottom: 8px;
  color: #6c7169;
  line-height: 1.8;
  font-size: 15px;
}
/* La grille s’étend automatiquement quand des sites sont ajoutés. */
.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px;
}
.site-card {
  border: 1px solid #deded5;
  border-radius: 20px;
  overflow: hidden;
  background: #fffefa;
  display: flex;
  flex-direction: column;
}
.visual {
  height: 180px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.violet {
  --accent: #65578d;
  --wash: #e6e0ef;
}
.blue {
  --accent: #3f647c;
  --wash: #dce9ed;
}
.orange {
  --accent: #ae603e;
  --wash: #f2e1d4;
}
.visual {
  background: var(--wash);
  color: var(--accent);
}
.visual::before,
.visual::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.16;
}
.visual::after {
  width: 260px;
  height: 260px;
}
.symbol {
  font-size: 100px;
  line-height: 1;
  font-family: Georgia, serif;
}
.number {
  position: absolute;
  left: 20px;
  top: 18px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1px;
}
.card-content {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.category {
  color: var(--accent);
  letter-spacing: 1.2px;
  margin: 0 0 14px;
  font-size: 9px;
}
h2 {
  font-size: 26px;
  letter-spacing: -0.8px;
  margin: 0;
}
.description {
  font-size: 14px;
  line-height: 1.75;
  color: #6c7169;
  margin: 14px 0 26px;
}
.open-site {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #deded5;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition: background 0.15s;
}
.open-site:hover {
  background: var(--wash);
}
.open-site span {
  font-size: 21px;
  color: var(--accent);
}
a:focus-visible {
  outline: 3px solid #477157;
  outline-offset: 4px;
}
footer {
  border-top: 1px solid #dddcd5;
  display: flex;
  justify-content: space-between;
  padding: 24px 36px;
  font-size: 12px;
  color: #797e75;
}
/* Tablettes et téléphones : lecture verticale et zones tactiles confortables. */
@media (max-width: 900px) {
  .lead {
    position: static;
    margin-top: 26px;
    max-width: 500px;
  }
  .catalogue {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  header {
    padding: 23px 20px;
  }
  .header-note {
    display: none;
  }
  main {
    padding: 36px 20px;
  }
  h1 {
    letter-spacing: -3px;
  }
  .intro {
    margin-bottom: 30px;
  }
  .catalogue {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .visual {
    height: 155px;
  }
  footer {
    padding: 22px 20px;
    gap: 16px;
    flex-wrap: wrap;
  }
}
