/* Nova Esthète — novaesthete.com
   Palette: porcelain #FCFBF9 · ink #141414 · hairline #E4DFD7 · oxblood #7A1F2B
   Type: Bodoni Moda (display) · Archivo (utility/body) */

:root {
  --paper: #FCFBF9;
  --ink: #141414;
  --muted: #8A857D;
  --line: #E4DFD7;
  --oxblood: #7A1F2B;
  --display: "Bodoni Moda", "Didot", serif;
  --sans: "Archivo", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 0;
}

.monogram {
  width: 52px;
  height: 52px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", var(--display); /* graisse uniforme A/E, contrairement au Æ didone de Bodoni */
  font-weight: 700;
  font-size: 27px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.monogram span {
  line-height: 1;
  transform: translateY(-1px); /* recentrage optique du Æ */
}

.site-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover { border-bottom-color: var(--ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--oxblood); }

/* ---------- hero ---------- */

.hero { padding: 56px 0 40px; }

.hero h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--oxblood);
}

.hero .manifesto {
  margin-top: 22px;
  max-width: 420px;
  color: var(--muted);
  font-size: 14px;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ---------- board page (all models) ---------- */

.board-head { padding: 44px 0 4px; }

.board-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 12px;
}

.board-head h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* ---------- filters ---------- */

.filters {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.filters button {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px 6px;
  border-bottom: 1px solid transparent;
}

.filters button:hover { color: var(--ink); }

.filters button.active {
  color: var(--ink);
  border-bottom-color: var(--oxblood);
}

/* advanced filters (models.html) */
.adv-filters {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin: -14px 0 44px;
}

.adv-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.adv-filters select {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  padding: 4px 18px 5px 0;
  border-radius: 0;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%238A857D'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
}

.adv-filters select:focus { outline: none; border-bottom-color: var(--oxblood); }

.adv-filters select[hidden] { display: none; }

/* custom dropdown */
.dd { position: relative; }

.dd-toggle {
  appearance: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  padding: 4px 22px 5px 0;
  cursor: pointer;
  min-width: 74px;
  text-align: left;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%238A857D'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  transition: border-color 0.2s ease;
}

.dd.open .dd-toggle,
.dd-toggle:hover { border-bottom-color: var(--oxblood); }

.dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: max-content;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(20, 18, 16, 0.09);
  z-index: 30;
}

.dd-menu button {
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding: 8px 22px 8px 16px;
  white-space: nowrap;
}

.dd-menu button:hover { background: #F2EDE5; }

.dd-menu button.sel { color: var(--oxblood); }

#clear-filters {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oxblood);
  padding: 4px 0 6px;
  border-bottom: 1px solid transparent;
}

#clear-filters:hover { border-bottom-color: var(--oxblood); }

.filter-count {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 4px; /* calé optiquement sur la baseline du bouton Clear */
}

/* ---------- model grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding-bottom: 34px;
}

.grid.expanded { padding-bottom: 80px; }

/* "See all models" — même vocabulaire que l'ornement Æ des fiches */
.see-all {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 72px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.25s ease;
}

.see-all::before,
.see-all::after {
  content: '';
  width: 56px;
  height: 1px;
  background: rgba(196, 188, 176, 0.6);
  transition: background 0.25s ease, width 0.3s ease;
}

.see-all:hover { color: var(--oxblood); }
.see-all:hover::before,
.see-all:hover::after { background: var(--oxblood); width: 76px; }

.see-all[hidden] { display: none; }

.model {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--line);
}

.model img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transform: scale(1.001);
  transition: filter 0.5s ease, transform 0.8s ease;
}

.model:hover img,
.model:focus-within img {
  filter: grayscale(0);
  transform: scale(1.035);
}

.model .card {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 20px 18px;
  background: linear-gradient(to top, rgba(10, 8, 8, 0.72), transparent);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.model:hover .card,
.model:focus-within .card {
  opacity: 1;
  transform: translateY(0);
}

.model .name {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.1;
}

.model .stats {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.model .country {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  mix-blend-mode: difference;
}

.model.hidden { display: none; }

/* ---------- inner pages ---------- */

.page { padding: 24px 0 100px; max-width: 640px; }

.page .eyebrow {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 14px;
}

.page h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
  margin-bottom: 26px;
}

.page h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 26px;
  margin: 48px 0 14px;
}

.page p { color: #4c4741; margin-bottom: 16px; }

.page ul { color: #4c4741; padding-left: 20px; margin-bottom: 16px; }

/* ---------- form ---------- */

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }

.form .full { grid-column: 1 / -1; }

.form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
  border-radius: 0;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-bottom-color: var(--oxblood);
}

.btn {
  display: inline-block;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 15px 34px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover { background: var(--oxblood); border-color: var(--oxblood); }

.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- model profile ---------- */

.profile {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 40px 56px;
  padding: 12px 0 28px;
  align-items: start;
}

.profile-cover { grid-column: 1 / -1; }

.profile-cover .eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 6px;
}

.profile-cover .count { color: var(--muted); letter-spacing: 0.18em; }

.profile-cover h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
}

.profile-portrait {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--line);
}

.profile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info .bio {
  font-family: var(--display);
  font-style: italic;
  font-size: 21px;
  line-height: 1.45;
  color: #3a362f;
  margin-bottom: 30px;
}

.base-line {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.base-line strong { color: var(--ink); font-weight: 500; }

.comp-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}

.comp-card .stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding: 12px 0;
}

.comp-card dt {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.comp-card dd {
  font-family: var(--display);
  font-size: 21px;
  line-height: 1;
}

.profile-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.digitals { grid-column: 1 / -1; margin-top: 8px; }

.digitals-label {
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.digitals-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.digital {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--line);
}

.digital img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
}

.digital:hover img { filter: grayscale(0); }

/* crops from the single placeholder shot: full / upper / face */
.digital:nth-child(2) img { object-position: 50% 0%; transform: scale(1.6); transform-origin: 50% 12%; }
.digital:nth-child(3) img { transform: scale(2.4); transform-origin: 50% 18%; }

/* more from the same country */
.orn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 2px 0 0;
}

.orn::before,
.orn::after {
  content: '';
  width: 56px;
  height: 1px;
  background: rgba(196, 188, 176, 0.6);
}

.orn span {
  font-family: "Cormorant Garamond", var(--display);
  font-weight: 700;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.more { grid-column: 1 / -1; margin-top: 8px; }

.more-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.more-head .digitals-label { margin-bottom: 0; }

.more-nav { display: flex; gap: 8px; }

.more-nav button {
  appearance: none;
  background: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.more-nav button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.more-nav[hidden] { display: none; }

.more-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.more-row::-webkit-scrollbar { display: none; }

.more-card {
  flex: 0 0 calc((100% - 3 * 22px) / 4); /* 4 cartes visibles → même taille réduite qu'avant */
  scroll-snap-align: start;
}

.more-card { display: block; }

.more-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s ease;
  display: block;
}

.more-card:hover img { filter: grayscale(0); }

.more-name {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  margin-top: 10px;
}

.more-card:hover .more-name { color: var(--oxblood); }

.profile-nav {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 22px;
  gap: 20px;
}

.profile-nav a { display: flex; align-items: center; gap: 16px; }
.profile-nav a:last-child { text-align: right; }

.profile-nav .thumb {
  width: 52px;
  height: 66px;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s ease;
}

.profile-nav a:hover .thumb { filter: grayscale(0); }

.profile-nav .dir {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.profile-nav .who {
  font-family: var(--display);
  font-style: italic;
  font-size: 20px;
}

.profile-nav a:hover .who { color: var(--oxblood); }

/* lightbox */
.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 9, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
}

/* page-load reveal */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.1s; }
.reveal:nth-child(3) { animation-delay: 0.2s; }
.reveal:nth-child(4) { animation-delay: 0.3s; }

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.site-footer .wordmark {
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- a11y & responsive ---------- */

:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .site-header { gap: 22px; }
  .site-nav { gap: 18px; }
  .profile { grid-template-columns: 1fr; gap: 36px; }
  .profile-portrait { position: static; }
  .digitals-row { gap: 10px; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .more-card { flex-basis: calc((100% - 22px) / 2); }
  .model img { filter: grayscale(0); } /* touch: no hover, show color */
  .model .card { opacity: 1; transform: none; }
}
