/* ==========================================================================
   Page de sélection des versions (temporaire, phase de présentation)
   Compacte : introduction courte + 4 versions visibles d'un coup d'œil.
   ========================================================================== */

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-variable.woff2") format("woff2");
}

:root {
  --bg: #f6f2ec;
  --surface: #ffffff;
  --ink: #1e191c;
  --muted: #6b625d;
  --gold: #a88a5c;
  --gold-text: #7c6340; /* champagne assombri : contraste AA sur fond clair */
  --line: rgba(30, 25, 28, 0.12);
  --night: #141110;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 3.5vw, 48px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.page {
  max-width: calc(1440px + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(28px, 4vh, 48px) var(--gutter) 32px;
}

/* ---- Introduction ---- */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  align-items: end;
  gap: 24px clamp(32px, 5vw, 80px);
  margin-bottom: clamp(28px, 4vh, 48px);
}

.intro__logo {
  width: 150px;
  margin-bottom: clamp(20px, 3vh, 36px);
}

.intro__title {
  margin: 0 0 16px;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.intro__title em {
  color: var(--gold-text);
}

.intro__text {
  max-width: 44em;
  color: var(--muted);
}

.note {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: var(--surface);
  font-size: 0.875rem;
  color: var(--muted);
}

.note__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: var(--gold-text);
}

/* ---- Versions : 4 colonnes ---- */
.versions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.versions > li {
  display: flex;
}

.version {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px 10px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-color: var(--surface);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}

.version:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 28px 56px -36px rgba(42, 31, 45, 0.45);
}

.version__preview {
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 16 / 10;
  background-color: #e6ded3;
}

.version__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 1s var(--ease);
}

.version:hover .version__preview img {
  transform: scale(1.04);
}

.version__meta,
.version__name,
.version__text,
.version__cta {
  margin-inline: 10px;
}

.version__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.version__meta span {
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--gold-text);
}

.version__name {
  margin-top: 0;
  margin-bottom: 8px;
  font-family: "Instrument Serif", "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.05;
}

.version__text {
  flex: 1;
  margin-bottom: 18px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.version__cta {
  align-self: flex-start;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-size: 0.875rem;
  font-weight: 600;
}

.version__cta span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.5s var(--ease);
}

.version:hover .version__cta span {
  transform: translateX(4px);
}

/* Original : en retrait, sans fond */
.version--original {
  background-color: transparent;
}

/* Maison de nuit : carte sombre, fidèle à la démo */
.version--night {
  border-color: var(--night);
  background-color: var(--night);
  color: #ece4d8;
}

.version--night .version__meta,
.version--night .version__text {
  color: rgba(236, 228, 216, 0.66);
}

.version--night .version__meta span,
.version--night .version__cta {
  color: #c9a56f;
}

.footnote {
  margin-top: clamp(24px, 3vh, 36px);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .versions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .intro {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .versions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .version,
  .version__preview img,
  .version__cta span {
    transition: none;
  }
}
