/* Homepage Edouard de Ganay
   Registre : évasion, aérien, sombre. */

:root {
  --bg: #0d0d0f;
  --bg-soft: #141417;
  --line: #242429;
  --text: #ececec;
  --muted: #9a9aa3;
  --muted-2: #6c6c75;
  --accent: #e8c39e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

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

.wrap { width: min(1180px, 90vw); margin: 0 auto; }
.narrow { width: min(720px, 90vw); margin: 0 auto; }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 200;
}
.skip:focus { left: 16px; top: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  mix-blend-mode: difference;
}
.site-header.on-solid {
  mix-blend-mode: normal;
  background: rgba(13, 13, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 22px; width: auto; opacity: 0.92; }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.75;
  transition: opacity 0.5s var(--ease);
}
.site-header nav a:hover { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  will-change: transform, opacity;
  transition: opacity 0.9s var(--ease);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,15,0.92) 0%, rgba(13,13,15,0.25) 45%, rgba(13,13,15,0.35) 100%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 0 0 90px;
  max-width: 760px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.06;
  max-width: 680px;
  margin: 0 0 22px;
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #14110c;
  cursor: pointer;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #f0d0ad; }
.btn:active { transform: scale(0.98); }
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.35);
}
.btn.ghost:hover { background: rgba(255,255,255,0.06); }

/* ---------- Sections ---------- */
section { position: relative; }
.section-tag {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

/* Tagline reveal */
.tagline {
  padding: 160px 0;
  text-align: center;
}
.tagline p {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.15;
  max-width: 900px;
  margin: 0 auto;
}
.tagline .w {
  opacity: 0.22;
  transition: opacity 0.9s var(--ease), filter 0.9s var(--ease);
  filter: blur(2px);
}
.tagline .w.on { opacity: 1; filter: blur(0); }

/* Gallery */
.gallery { padding: 40px 0 120px; }
.gallery-head { margin-bottom: 46px; }
.gallery-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}
.gallery-head p { color: var(--muted); max-width: 560px; margin: 0; }

.grid {
  columns: 3;
  column-gap: 18px;
}
@media (max-width: 900px) { .grid { columns: 2; } }
@media (max-width: 560px) { .grid { columns: 1; } }
.tile {
  break-inside: avoid;
  margin-bottom: 18px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-soft);
}
.tile img {
  width: 100%;
  height: auto;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.96);
}
.tile:hover img { transform: scale(1.03); filter: saturate(1.05); }
.tile .label {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(13,13,15,0.85), transparent);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.tile:hover .label { opacity: 1; }
.tile .label strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
}
.tile .label span { font-size: 12px; color: var(--muted); }
.tile.is-current { outline: 1px solid var(--accent); outline-offset: -1px; }

.gallery-more { text-align: center; margin-top: 54px; }

/* Products */
.products { padding: 120px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.products-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.products-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 0 0 12px;
}
.products-head p { color: var(--muted); max-width: 560px; margin: 0; }
.current-pick {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.current-pick img { width: 46px; height: 46px; object-fit: cover; border-radius: 50%; }
.current-pick span { font-size: 13px; color: var(--muted); }
.current-pick strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--text); font-weight: 500; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1040px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.card:hover { border-color: #3a3a42; transform: translateY(-3px); }
.prod-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ffffff;
}
.card > :not(.prod-img) { margin-left: 22px; margin-right: 22px; }
.card > *:first-child:not(.prod-img) { margin-top: 24px; }
.card > *:last-child { margin-bottom: 24px; }
.card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 0 0 6px; }
.card .desc { color: var(--muted); font-size: 0.92rem; margin: 0 0 18px; flex: 1; }
.card .opts { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
.card .opts label {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--muted); cursor: pointer;
}
.card .opts input { accent-color: var(--accent); }
.price { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 16px; }
.add {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: all 0.4s var(--ease);
}
.add:hover { background: rgba(255,255,255,0.07); }
.add.on { background: var(--accent); color: #14110c; border-color: var(--accent); }

.products-note { color: var(--muted-2); font-size: 0.85rem; margin-top: 26px; }

/* Déclencheur */
.declencheur { padding: 150px 0; text-align: center; }
.declencheur h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.15;
  max-width: 820px;
  margin: 0 auto 24px;
}
.declencheur p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* Preuve */
.proof { padding: 0 0 140px; }
.proof-seals {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
}
@media (max-width: 860px) { .proof-seals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .proof-seals { grid-template-columns: 1fr; } }
.seal {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 22px;
  text-align: center;
}
.seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.seal h3 { font-family: var(--serif); font-weight: 500; font-size: 1.2rem; margin: 0 0 6px; }
.seal p { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* Inspiration */
.inspiration {
  padding: 140px 0;
  border-top: 1px solid var(--line);
}
.inspiration-head { text-align: center; margin-bottom: 52px; }
.inspiration h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  margin: 0 0 16px;
}
.inspiration-head p { color: var(--muted); max-width: 560px; margin: 0 auto; }
.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 1000px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }
.gal-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-soft);
}
.gal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.92) brightness(0.82);
}
.gal-card:hover img { transform: scale(1.05); filter: saturate(1.05) brightness(1); }
.gal-card span {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,0.7);
}
.inspiration-more { text-align: center; margin-top: 46px; }

/* Newsletter */
.newsletter { padding: 140px 0; background: var(--bg-soft); border-top: 1px solid var(--line); }
.newsletter .inner { text-align: center; }
.newsletter h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.4vw, 2.8rem);
  margin: 0 0 16px;
}
.newsletter p { color: var(--muted); max-width: 520px; margin: 0 auto 32px; }
.capture { max-width: 520px; margin: 0 auto; }
.capture form { display: flex; gap: 10px; }
.capture input {
  flex: 1;
  font-family: var(--sans);
  font-size: 15px;
  padding: 15px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
.capture input:focus { outline: none; border-color: var(--accent); }
.capture input[aria-invalid="true"] { border-color: #d05353; }
.form-note { font-size: 12px; color: var(--muted-2); margin: 14px 0 0; }
.form-error { color: #e07a7a; font-size: 13px; margin: 12px 0 0; display: none; }
.form-success { color: var(--accent); font-size: 14px; margin: 12px 0 0; display: none; }
@media (max-width: 520px) { .capture form { flex-direction: column; } }

/* Footer */
footer { padding: 60px 0 80px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer p { margin: 0; color: var(--muted-2); font-size: 0.85rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Cart */
.cartbar {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 14px 12px 24px;
  border-radius: 999px;
  background: rgba(20, 20, 23, 0.94);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  font-size: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.cartbar button {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #14110c;
  cursor: pointer;
}
.cartmodal {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(8,8,10,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cartmodal[hidden] { display: none; }
.cartmodal-panel {
  width: min(480px, 100%);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
}
.cartmodal-panel h2 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; margin: 0 0 20px; }
.cartmodal-panel ul { list-style: none; padding: 0; margin: 0 0 18px; }
.cartmodal-panel li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cartmodal-panel li button { background: none; border: none; color: var(--muted-2); cursor: pointer; font-size: 12px; }
.cart-total { display: flex; justify-content: space-between; font-weight: 600; margin: 8px 0 22px; }
.cart-actions { display: flex; flex-direction: column; gap: 12px; }
.cart-actions .btn { justify-content: center; }
.cart-close { background: none; border: none; color: var(--muted); cursor: pointer; margin-top: 14px; font-size: 13px; }
.cart-msg { font-size: 13px; color: var(--muted); margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.on { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .tagline .w { transition: none; opacity: 1; transform: none; filter: none; }
}
