/* Page home de Byzance : socle et variables dans base.css (copié de ngserveur/web). */
@font-face {
  font-family: 'Marcellus SC';
  src: url('assets/marcellus-sc-latin-400-normal.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Commissioner Variable';
  src: url('assets/commissioner-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
.home { overflow-x: clip; }

.evitement {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--surface-2);
}
.evitement:focus { top: 0.5rem; }

.haut {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
  padding: 0.6rem clamp(1rem, 5vw, 4rem);
  background: rgb(23 9 16 / 0.92);
  border-bottom: 1px solid var(--trait-doux);
}
.liens { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.liens a { color: var(--encre-2); text-decoration: none; font-weight: 500; }
.liens a:hover { color: var(--or-vif); }
.compte { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; min-width: 0; }
.compte-nom {
  color: var(--encre-2);
  font-size: var(--t-1);
  max-width: 24ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heros {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 4.25rem);
  padding: clamp(2rem, 6vh, 4rem) clamp(1.25rem, 6vw, 6rem);
}
.heros::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--fond) 0%, transparent 35%),
    linear-gradient(90deg, var(--fond) 0%, rgb(23 9 16 / 0.85) 38%, rgb(23 9 16 / 0.2) 100%),
    url('assets/terrasse.webp') 72% center / cover no-repeat;
}
.heros-texte { display: grid; justify-items: start; gap: 1.1rem; max-width: 36rem; }
.embleme { width: clamp(90px, 10vw, 132px); height: auto; filter: drop-shadow(0 6px 18px rgb(0 0 0 / 0.6)); }
.heros h1 { font-size: clamp(3.6rem, 1.5rem + 9vw, 7.5rem); line-height: 0.95; text-shadow: 0 2px 24px rgb(0 0 0 / 0.5); }
.heros .ornement { width: min(100%, 22rem); }
.accroche { font: 400 var(--t-3) / 1.3 var(--police-titre); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.actions .bouton { white-space: normal; }

.section { width: min(1180px, 100%); margin-inline: auto; padding: clamp(3rem, 8vw, 5.5rem) 1.25rem 0; }
.section-tete { display: grid; justify-items: center; gap: 0.8rem; max-width: 46rem; margin: 0 auto 2.25rem; text-align: center; }
.section-tete h2 { font-size: var(--t-4); }
.section-tete p { color: var(--encre-2); }
.centre { text-align: center; }

.piliers, .services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.piliers li {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--trait-doux);
  border-top: 2px solid var(--or);
  border-radius: var(--r-1);
}
.piliers h3 { font-size: var(--t-3); margin-bottom: 0.5rem; }
.piliers p { color: var(--encre-2); }

.service {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: start;
  gap: 0.75rem;
  height: 100%;
  padding: 1.6rem;
  background: linear-gradient(160deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--trait);
  border-radius: var(--r-2);
  color: var(--encre);
  text-decoration: none;
  transition: border-color var(--anim), translate var(--anim);
}
a.service:hover { border-color: var(--or); translate: 0 -3px; }
.service h3 { font-size: var(--t-3); }
.service p { color: var(--encre-2); }
.service-adresse { color: var(--or-vif); font-weight: 700; font-size: var(--t-1); overflow-wrap: anywhere; }
.service.bientot { background: transparent; border-style: dashed; }

.galerie { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1.25rem; }
.galerie figure { margin: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-2); overflow: hidden; }
.galerie img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.galerie figcaption { padding: 0.75rem 1rem; text-align: center; font-family: var(--police-titre); color: var(--or-vif); }

.pied {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 8vw, 5.5rem);
  padding: 1.75rem clamp(1rem, 5vw, 4rem);
  border-top: 1px solid var(--trait-doux);
  color: var(--encre-2);
}

@media (max-width: 760px) {
  html { scroll-padding-top: 7.5rem; }
  .haut { flex-wrap: wrap; gap: 0.5rem 1rem; }
  .liens { order: 3; width: 100%; font-size: var(--t-1); }
  .compte-nom { max-width: 14ch; }
  .heros { align-items: end; min-height: calc(100svh - 7rem); padding-top: 12vh; }
  .heros::before {
    background:
      linear-gradient(180deg, rgb(23 9 16 / 0.2) 0%, rgb(23 9 16 / 0.75) 40%, var(--fond) 75%),
      url('assets/terrasse.webp') 70% top / cover no-repeat;
  }
}
