@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --graphite: #0b0c0e;
  --ivory: #f8f7f4;
  --white: #ffffff;
  --champagne: #c7b58b;
  --titanium: #7c8288;
  --mist: #e9eaed;
  --text-secondary: #62666b;

  --bg: var(--ivory);
  --surface: var(--white);
  --text: var(--graphite);
  --text-2: var(--text-secondary);
  --divider: var(--mist);
  --border: 1px solid rgba(11, 12, 14, 0.08);
  --shadow: 0 1px 2px rgba(11, 12, 14, 0.04), 0 12px 32px rgba(11, 12, 14, 0.06);
  --btn-bg: var(--graphite);
  --btn-fg: var(--white);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --motion-fast: 160ms;
  --motion-standard: 260ms;
  --motion-brand: 560ms;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0b0c0e;
    --surface: #15171a;
    --text: #f8f7f4;
    --text-2: #a6aaaf;
    --divider: #292c30;
    --border: 1px solid rgba(248, 247, 244, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --btn-bg: #f8f7f4;
    --btn-fg: #0b0c0e;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--champagne); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 24px; }
@media (min-width: 768px) { .wrap { padding-inline: 48px; } }
@media (min-width: 1100px) { .wrap { padding-inline: 80px; } }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 12px 20px; border-radius: var(--radius-sm);
  transition: top var(--motion-fast);
}
.skip:focus { top: 16px; }

/* Wordmark : majuscules, interlettrage généreux, point central Champagne */
.wordmark {
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dot {
  display: inline-block;
  width: 0.2em; height: 0.2em;
  margin-inline: 0.18em 0.5em;
  border-radius: 50%;
  background: var(--champagne);
  vertical-align: 0.32em;
}
.wordmark.small { font-size: 14px; }
.about .h1 { letter-spacing: 0.28em; text-transform: uppercase; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--divider);
}
.bar { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.bar .wordmark { font-size: 15px; margin-right: auto; }
.nav { display: none; gap: 32px; font-size: 14px; color: var(--text-2); }
.nav a, .langs a { transition: color var(--motion-fast); }
.nav a:hover { color: var(--text); }
@media (min-width: 768px) { .nav { display: flex; } }

.langs { display: flex; gap: 4px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; border-radius: var(--radius-sm);
  color: var(--text-2);
}
.langs a:hover { color: var(--text); }
.langs a[aria-current] { color: var(--text); box-shadow: inset 0 -2px 0 var(--champagne); border-radius: 0; }

/* Hero : image plein cadre, titre sur la zone claire */
.hero { position: relative; display: flex; flex-direction: column; overflow: hidden; padding-block: 56px 0; }
.hero-grid { display: block; order: 1; }
.hero-bg { order: 2; }
.hero-copy { position: relative; z-index: 1; }
.hero-bg img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 50%; margin-top: 56px; }
@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: center; min-height: min(88vh, 840px); padding-block: 112px; }
  .hero-bg { position: absolute; inset: 0; }
  .hero-bg img { height: 100%; aspect-ratio: auto; margin: 0; object-position: 80% center; }
  .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 30%, transparent 56%); }
  .hero-grid { width: 100%; }
  .hero-copy { max-width: 580px; }
}
.descriptor { font-size: 12px; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; color: var(--text-2); }
.rule { display: block; width: 48px; height: 1px; background: var(--champagne); margin-block: 32px; }
.display {
  font: 400 clamp(44px, 7vw, 88px)/1.02 var(--serif);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.lead { margin-top: 24px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; margin-top: 40px; padding: 0 28px;
  background: var(--btn-bg); color: var(--btn-fg);
  border-radius: 999px; font-size: 15px; font-weight: 500;
  box-shadow: 0 1px 2px rgba(11, 12, 14, 0.12);
  transition: transform var(--motion-fast) ease-out, opacity var(--motion-fast);
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.attributes {
  display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 64px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-2);
}
.hero { background: radial-gradient(60% 60% at 80% 30%, color-mix(in srgb, var(--champagne) 14%, transparent), transparent 70%); }
/* Sections */
.section { padding-block: 112px; border-top: 1px solid var(--divider); }
@media (min-width: 900px) { .section { padding-block: 160px; } }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--text-2); margin-bottom: 16px; }
.eyebrow::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--champagne); margin-right: 14px; vertical-align: 0.1em; }
.h1 { font: 400 clamp(36px, 5vw, 56px)/1.08 var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
.intro { margin-top: 16px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--text-2); }

/* Products */
.products { display: grid; gap: 16px; margin-top: 72px; }
@media (min-width: 768px) { .products { grid-template-columns: 1fr 1fr; gap: 24px; } }
@media (min-width: 1100px) { .products { grid-template-columns: 1.35fr 1fr; } }
.product article {
  display: flex; flex-direction: column; height: 100%; padding: 16px 16px 32px;
  background: var(--surface); border: var(--border); border-radius: 28px; box-shadow: var(--shadow);
  transition: transform var(--motion-standard) ease-out, box-shadow var(--motion-standard) ease-out;
}
.product article { position: relative; }
.product article:hover { transform: translateY(-4px); }
.product h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.product h3 a:focus-visible { outline: none; }
.product h3 a:focus-visible::after { outline: 2px solid var(--champagne); outline-offset: 3px; }
.product .more { margin: 16px 16px 0; font-size: 14px; font-weight: 500; }
.shot {
  display: flex; align-items: center; justify-content: center; height: 520px; margin-bottom: 32px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, var(--bg), color-mix(in srgb, var(--divider) 70%, var(--bg)));
  border-radius: 20px;
}
.shot img { height: 100%; width: auto; max-width: 100%; object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%, #000 66%, transparent); mask-image: linear-gradient(90deg, transparent, #000 34%, #000 66%, transparent); }
.shot.cover img { width: 100%; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
.product h3, .product .category, .product article > p { margin-inline: 16px; }
.product h3 { font: 600 24px/1.2 var(--font); }
.product .category { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.product article > p:not(.category):not(.by) { margin-top: 16px; }
.product .by { margin-top: auto; padding-top: 24px; font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--titanium); }

/* Philosophy */
.quote { font: 400 clamp(36px, 5.5vw, 64px)/1.1 var(--serif); letter-spacing: -0.01em; }
.principles { display: grid; gap: 32px; margin-top: 64px; }
@media (min-width: 768px) { .principles { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.principles li { padding-top: 24px; border-top: 1px solid var(--champagne); }
.principles h3 { font: 600 24px/1.2 var(--font); }
.principles p { margin-top: 8px; color: var(--text-2); }
.mood { display: grid; gap: 16px; margin-top: 96px; }
@media (min-width: 768px) { .mood { grid-template-columns: repeat(3, 1fr); } }
.mood img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; }
@media (max-width: 767px) { .mood img { aspect-ratio: 4 / 3; } }

/* About */
.about-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1.2fr; gap: 96px; } }
.about .h1 { font-family: var(--font); font-weight: 500; font-size: clamp(28px, 3.4vw, 36px); }
.prose p { font-size: 18px; line-height: 1.55; color: var(--text-2); }
.prose p + p { margin-top: 24px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--divider); transition: color var(--motion-fast); }
.prose a:hover { color: var(--text); }

/* Footer */
.site-footer { padding-block: 48px; border-top: 1px solid var(--divider); }
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.signature, .copy { font-size: 14px; color: var(--text-2); }

@supports (animation-timeline: view()) {
  .section .wrap > *, .product, .principles li {
    animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%;
  }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; opacity: 1 !important; }
  .product article:hover, .btn:hover { transform: none; }
}

.notfound { min-height: 100vh; display: grid; align-content: center; justify-items: start; gap: 24px; }

@keyframes breathe { 0%, 100% { opacity: 0.45; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }

.copy a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--divider); transition: color var(--motion-fast); }
.copy a:hover { color: var(--text); }

.legal { padding-block: 80px 128px; }
.legal .wrap { max-width: 880px; }
.legal .updated { margin-top: 12px; font-size: 14px; color: var(--text-2); }
.legal section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); }
.legal h2 { font: 600 24px/1.2 var(--font); margin-bottom: 16px; }
.legal p { color: var(--text-2); max-width: 40em; }
.legal p + p { margin-top: 12px; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: 4px 32px; margin: 16px 0 0; }
.legal dt { font-size: 14px; font-weight: 500; color: var(--text-2); }
.legal dd { margin: 0 0 12px; }
@media (min-width: 640px) { .legal dl { grid-template-columns: 240px 1fr; } .legal dd { margin: 0; padding-bottom: 8px; } }
.todo { background: rgba(199, 181, 139, 0.25); padding: 0 6px; border-radius: 4px; }
