/* =========================================================
   DYNASTY — Design tokens
   Fond:         #0A0F0B  (noir vert profond)
   Panneau:      #121A14  (charbon vert)
   Panneau alt:  #18211A
   Vert:         #2E7D52  (émeraude)
   Vert clair:   #7FD9A8
   Ivoire:       #E9EDE6
   Gris chaud:   #93A296
   Cuivre:       #B5793B  (accent secondaire, contraste chaud)
   Display: Fraunces / Body: Manrope / Mono: JetBrains Mono
   ========================================================= */

:root{
  --bg: #0A0F0B;
  --panel: #121A14;
  --panel-alt: #18211A;
  --line: rgba(127,217,168,0.18);
  --gold: #2E7D52;
  --gold-light: #7FD9A8;
  --ivory: #E9EDE6;
  --muted: #93A296;
  --wine: #B5793B;
  --wine-light: #D19A5C;

  --display: "Fraunces", serif;
  --body: "Manrope", sans-serif;
  --mono: "JetBrains Mono", monospace;

  --container: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3{ font-family: var(--display); font-weight:500; margin:0; }
p{ margin:0; }

:focus-visible{
  outline: 1.5px solid var(--gold-light);
  outline-offset: 3px;
}

.eyebrow{
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9rem;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0.85rem 1.6rem;
  font-family: var(--body);
  font-weight:600;
  font-size: 0.92rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor:pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.btn--gold{
  background: var(--gold);
  color: var(--ivory);
}
.btn--gold:hover{ background: var(--gold-light); transform: translateY(-1px); }
.btn--outline{
  border-color: rgba(237,231,216,0.35);
  color: var(--ivory);
}
.btn--outline:hover{ border-color: var(--gold-light); color: var(--gold-light); }
.btn--ghost{
  border-color: var(--line);
  color: var(--gold-light);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}
.btn--ghost:hover{ background: rgba(201,162,39,0.1); }

/* ---------- Nav ---------- */
.nav{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(11,10,8,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display:flex;
  align-items:center;
  gap: 2.5rem;
}
.brand{ display:flex; align-items:center; gap:0.6rem; margin-right:auto; color: var(--ivory); }
.brand__mark{ width: 26px; height:26px; color: var(--gold); flex-shrink:0; }
.brand__word{
  font-family: var(--display);
  letter-spacing: 0.18em;
  font-size: 1rem;
  font-weight: 500;
}
.nav__links{ display:flex; gap: 2rem; }
.nav__links a{
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav__links a:hover{ color: var(--gold-light); }
.nav__cta{ flex-shrink:0; }
.nav__burger{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding: 6px;
}
.nav__burger span{ width:20px; height:1.5px; background: var(--ivory); display:block; }
.nav__mobile{
  display:none;
  flex-direction:column;
  padding: 0.5rem 1.5rem 1.2rem;
  border-top: 1px solid var(--line);
}
.nav__mobile a{ padding: 0.7rem 0; color: var(--muted); font-size:0.95rem; border-bottom: 1px solid var(--line); }
.nav__mobile.is-open{ display:flex; }

@media (max-width: 860px){
  .nav__links, .nav__cta{ display:none; }
  .nav__burger{ display:flex; }
}

/* ---------- Hero ---------- */
.hero{
  position:relative;
  padding: 7.5rem 1.5rem 0;
  overflow:hidden;
  min-height: 88vh;
  display:flex;
  align-items:center;
}
.hero__glow{
  position:absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(201,162,39,0.14) 0%, rgba(201,162,39,0) 65%);
  pointer-events:none;
}
.hero__inner{
  max-width: var(--container);
  margin: 0 auto;
  position:relative;
  z-index:2;
  padding-bottom: 8rem;
}
.hero__title{
  font-size: clamp(2.8rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  max-width: 14ch;
  font-weight: 500;
}
.hero__title em{ font-style: italic; color: var(--gold-light); }
.hero__sub{
  margin-top: 1.8rem;
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero__cta{ display:flex; gap:1rem; margin-top: 2.6rem; flex-wrap:wrap; }
.hero__skyline{
  position:absolute;
  left:0; right:0; bottom:0;
  width:100%;
  height: 220px;
  color: rgba(201,162,39,0.35);
}

@media (max-width: 640px){
  .hero{ min-height: auto; padding-top: 6.5rem;}
  .hero__inner{ padding-bottom: 5rem; }
  .hero__skyline{ height: 130px; }
}

/* ---------- Trust strip ---------- */
.trust{
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 3rem;
  border-bottom: 1px solid var(--line);
  flex-wrap:wrap;
}
.trust__item{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:0.35rem; }
.trust__num{ font-family: var(--display); font-size: 2rem; color: var(--gold-light); }
.trust__label{ font-size: 0.8rem; color: var(--muted); max-width: 18ch; }
.trust__div{ width:1px; height: 40px; background: var(--line); }
@media (max-width: 640px){ .trust__div{ display:none; } }

/* ---------- Section shared ---------- */
.section__head{ max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; text-align:center; }
.section__title{ font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section__sub{ color: var(--muted); max-width: 52ch; margin: 1rem auto 0; }

/* ---------- Listings ---------- */
.listings{ padding: 7rem 0 6rem; }
.filters{
  max-width: var(--container);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  display:flex;
  gap: 0.6rem;
  flex-wrap:wrap;
  justify-content:center;
}
.filter{
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  cursor:pointer;
  transition: all 0.2s ease;
}
.filter:hover{ border-color: var(--gold); color: var(--gold-light); }
.filter.is-active{ background: var(--gold); border-color: var(--gold); color: var(--ivory); }

.grid{
  max-width: var(--container);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.grid__empty{
  text-align:center;
  color: var(--muted);
  padding: 3rem 1.5rem 0;
  display:none;
}
.grid__empty[hidden]{ display:none; }

@media (max-width: 980px){ .grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 640px){ .grid{ grid-template-columns: 1fr; } }

.card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.card:hover{ border-color: rgba(201,162,39,0.5); transform: translateY(-3px); }
.card[hidden]{ display:none; }
.card__visual{
  position:relative;
  background: linear-gradient(160deg, var(--panel-alt), var(--bg));
  padding: 1.4rem 1.4rem 0.6rem;
  color: rgba(201,162,39,0.7);
}
.card__tag{
  position:absolute;
  top: 1rem; left: 1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(11,10,8,0.7);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  border-radius: 2px;
}
.card__body{ padding: 1.4rem; display:flex; flex-direction:column; gap: 0.7rem; flex:1; }
.card__row{ display:flex; align-items:baseline; justify-content:space-between; gap:0.6rem; }
.card__row h3{ font-size: 1.15rem; }
.card__ref{ font-family: var(--mono); font-size: 0.72rem; color: var(--muted); flex-shrink:0; }
.card__loc{ font-size: 0.85rem; color: var(--gold); }
.card__desc{ font-size: 0.9rem; color: var(--muted); flex:1; }
.card__specs{ display:flex; flex-wrap:wrap; gap: 0.5rem 1rem; font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.7rem; }
.card__foot{ display:flex; align-items:center; justify-content:space-between; margin-top: 0.3rem; }
.card__price{ font-family: var(--mono); color: var(--gold-light); font-size: 1rem; }
.card__link{ font-size: 0.85rem; color: var(--ivory); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color 0.2s ease, border-color 0.2s ease; }
.card__link:hover{ color: var(--gold-light); border-color: var(--gold-light); }

/* ---------- Why ---------- */
.why{
  position:relative;
  background: var(--panel);
  padding: 7rem 0 6rem;
  overflow:hidden;
}
.why__skyline{
  position:absolute;
  top:0; left:0; right:0;
  width:100%; height:70px;
  color: var(--bg);
}
.why__grid{
  max-width: var(--container);
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2.5rem;
}
.why__item{
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.why__icon{ width:34px; height:34px; color: var(--gold); margin-bottom: 1.1rem; }
.why__item h3{ font-size: 1.15rem; margin-bottom: 0.6rem; }
.why__item p{ color: var(--muted); font-size: 0.92rem; }
@media (max-width: 780px){ .why__grid{ grid-template-columns: 1fr; } }

/* ---------- Process ---------- */
.process{ padding: 7rem 0; }
.process__list{
  max-width: 760px;
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
  display:flex;
  flex-direction:column;
}
.process__step{
  display:flex;
  gap: 1.6rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}
.process__step:last-child{ border-bottom: 1px solid var(--line); }
.process__index{
  font-family: var(--mono);
  color: var(--gold);
  font-size: 0.95rem;
  flex-shrink:0;
  width: 2.4rem;
}
.process__step h3{ font-size: 1.1rem; margin-bottom: 0.4rem; }
.process__step p{ color: var(--muted); font-size: 0.92rem; max-width: 52ch; }

/* ---------- Contact ---------- */
.contact{ background: var(--panel); padding: 7rem 0; }
.contact__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}
.contact__text .section__title{ text-align:left; }
.contact__text .section__sub{ text-align:left; margin-left:0; }
.contact__list{ margin-top: 2.2rem; display:flex; flex-direction:column; gap: 1rem; }
.contact__list li{ font-size: 0.95rem; color: var(--ivory); display:flex; gap: 1rem; }
.contact__list span{ font-family: var(--mono); font-size: 0.72rem; color: var(--gold); text-transform:uppercase; letter-spacing:0.05em; width: 5.5rem; flex-shrink:0; padding-top:0.15rem; }

.contact__form{ display:flex; flex-direction:column; gap: 1.1rem; }
.contact__form label{ display:flex; flex-direction:column; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); }
.contact__form input, .contact__form select, .contact__form textarea{
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 0.75rem 0.9rem;
  border-radius: 2px;
  font-family: var(--body);
  font-size: 0.95rem;
  resize: vertical;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus{
  outline: none;
  border-color: var(--gold);
}
.contact__note{ font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

@media (max-width: 860px){ .contact__inner{ grid-template-columns: 1fr; gap: 3rem; } }

/* ---------- Footer ---------- */
.footer{ padding: 3rem 0 2.5rem; border-top: 1px solid var(--line); }
.footer__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap: 1.5rem;
}
.footer__links{ display:flex; gap: 1.6rem; }
.footer__links a{ font-size: 0.85rem; color: var(--muted); }
.footer__links a:hover{ color: var(--gold-light); }
.footer__legal{ width:100%; font-size: 0.76rem; color: var(--muted); opacity:0.7; text-align:center; margin-top: 1rem; }