/* ==========================================================================
   Feliya — squelette de la page d'accueil
   Ordre : base · utilitaires · en-tête · sections (dans l'ordre de la page) ·
   pied de page · bannière cookies · responsive
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; }

button { background: none; border: 0; padding: 0; cursor: pointer; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, p { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Utilitaires typographiques ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow--sm { font-size: 9px; letter-spacing: 0.22em; color: var(--color-muted); }

.display {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.section-head::before {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
  margin-bottom: 12px;
}

.section-head .eyebrow { color: var(--color-muted); }

.section-head h2 { font-size: clamp(38px, 4.4vw, 64px); }

/* Lien souligné (« VIEW ALL … ») */
.link-underline {
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  transition: opacity var(--dur) var(--ease);
}

.link-underline:hover { opacity: 0.6; }

.section-cta { display: flex; justify-content: center; }

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 19px 34px;
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.btn--light { background: var(--color-bg); color: var(--color-ink); }
.btn--light:hover { background: var(--color-paper); }

.btn--ghost { border-color: rgba(247, 244, 239, 0.7); color: var(--color-on-dark); }
.btn--ghost:hover { background: var(--color-on-dark); color: var(--color-ink); }

.btn--dark { background: var(--color-ink); color: var(--color-on-dark); border-color: var(--color-ink); padding: 13px 16px; }
.btn--outline { border-color: var(--color-sand); padding: 13px 16px; }

/* ---------- En-tête ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  color: var(--color-on-dark);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.site-header.is-solid {
  background: var(--color-bg);
  color: var(--color-ink);
  box-shadow: 0 1px 0 var(--color-line);
}

.announce {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 41px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(247, 244, 239, 0.18);
  overflow: hidden;
  transition: height var(--dur) var(--ease);
}

.site-header.is-solid .announce { height: 0; border-bottom-color: transparent; }

.announce__currency { display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
.announce__currency img { width: 11px; height: 11px; }
.site-header:not(.is-solid) .announce__currency img { filter: invert(1); }
.announce__advisory { justify-self: end; }

.nav-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 86px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid rgba(247, 244, 239, 0.18);
}

.site-header.is-solid .nav-bar { height: 72px; border-bottom-color: transparent; }

.nav-main { display: flex; gap: 26px; font-size: 13px; }
.nav-main a { transition: opacity var(--dur) var(--ease); }
.nav-main a:hover { opacity: 0.62; }

.nav-toggle { display: none; width: 24px; height: 24px; }
.nav-toggle svg { width: 24px; height: 24px; }

/* Logo : version ivoire sur le hero, version encre une fois l'en-tête plein */
.brand { display: grid; }

.brand img {
  grid-area: 1 / 1;
  width: auto;
  height: 58px;
  transition: opacity var(--dur) var(--ease), height var(--dur) var(--ease);
}

.brand__on-light { opacity: 0; }
.site-header.is-solid .brand__on-dark { opacity: 0; }
.site-header.is-solid .brand__on-light { opacity: 1; }
.site-header.is-solid .brand img { height: 50px; }

.site-footer .brand img { height: 88px; }

.nav-actions { display: flex; justify-content: flex-end; gap: 27px; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(640px, 100svh);
  padding: 146px var(--gutter) 40px;
  color: var(--color-on-dark);
  background: var(--color-ink);
  overflow: hidden;
}

.hero__media,
.hero__media::after {
  position: absolute;
  inset: 0;
}

.hero__media video,
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.hero__media::after {
  content: "";
  background:
    linear-gradient(rgba(20, 15, 13, 0.5) 0%, rgba(20, 15, 13, 0) 30%),
    linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(15, 13, 10, 0.3) 45%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(rgba(0, 0, 0, 0) 60%, rgba(20, 15, 13, 0.55) 100%);
}

.hero__content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
}

.hero__title {
  font-family: var(--font-script);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
}

.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 18px; }

.hero__footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  padding-top: 24px;
  border-top: 1px solid rgba(247, 244, 239, 0.3);
}

.hero__footer > :last-child { justify-self: end; }

/* ---------- 2. Manifeste ---------- */
.statement {
  padding: 58px 220px 66px;
  text-align: center;
}

.statement p {
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
}

/* ---------- 3 & 8. Grilles produits ---------- */
.products {
  display: flex;
  flex-direction: column;
  gap: 70px;
  padding: var(--section-y) var(--gutter) 100px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Variante décalée (« Quietly celebrated ») */
.product-grid--staggered > li:nth-child(even) { margin-top: 54px; }

.product-card { display: flex; flex-direction: column; gap: 32px; text-align: center; }

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--color-sand);
  overflow: hidden;
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--dur) var(--ease), transform 620ms var(--ease);
}

.product-card__media img + img { opacity: 0; }
.product-card:hover .product-card__media img:first-child { opacity: 0; }
.product-card:hover .product-card__media img + img { opacity: 1; transform: scale(1.02); }

.product-card__body { display: flex; flex-direction: column; gap: 8px; }
.product-card__title { font-family: var(--font-serif); font-size: 21px; font-weight: 400; line-height: 1.35; }
.product-card__price { letter-spacing: 0.03em; }

/* ---------- 4. Campagne ---------- */
.campaign {
  display: grid;
  grid-template-columns: 820fr 620fr;
  min-height: 720px;
  background: var(--color-linen);
}

.campaign__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding: 80px 100px;
}

.campaign__text h2 { font-size: clamp(38px, 4.4vw, 64px); }
.campaign__text p { max-width: 330px; font-size: 14px; line-height: 1.62; color: var(--color-muted); }
.campaign__text .link-underline { margin-top: 20px; }

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

/* ---------- 5. Maisons ---------- */
.houses {
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding: var(--section-y) var(--gutter) 96px;
}

.houses__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(8, auto);
  column-gap: 60px;
}

.houses__list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-line);
  transition: color var(--dur) var(--ease);
}

.houses__list a:hover { color: var(--color-wine); }
.houses__name { font-family: var(--font-serif); font-size: 21px; font-weight: 400; }

/* ---------- 6. Lookbook ---------- */
.lookbook {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  color: var(--color-on-dark);
  background: var(--color-ink);
  overflow: hidden;
}

.lookbook__media,
.lookbook__media::after { position: absolute; inset: 0; }
.lookbook__media video,
.lookbook__media img { width: 100%; height: 100%; object-fit: cover; }
.lookbook__media::after { content: ""; background: rgba(0, 0, 0, 0.22); }

.lookbook .section-head { position: relative; gap: 18px; }
.lookbook .section-head .eyebrow { color: inherit; }
.lookbook .link-underline { margin-top: 10px; }

/* ---------- 7. Atelier ---------- */
.atelier {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 90px var(--gutter);
  background: var(--color-paper);
}

.atelier__media { aspect-ratio: 4 / 5; margin-left: 30px; background: var(--color-sand); }
.atelier__media img { width: 100%; height: 100%; object-fit: cover; }

.atelier__text { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.atelier__text .eyebrow { color: var(--color-muted); }
.atelier__text h2 { font-size: clamp(38px, 4.4vw, 64px); }
.atelier__text > p { max-width: 330px; font-size: 14px; line-height: 1.62; color: var(--color-muted); }

.atelier__text .link-underline { align-self: flex-start; }

.principles { margin: 24px 0 28px; border-top: 1px solid var(--color-line); }
.principles li {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: baseline;
  padding: 19px 0;
  border-bottom: 1px solid var(--color-line);
}
.principles span:last-child { font-family: var(--font-serif); font-size: 21px; font-weight: 400; }

/* ---------- 9. Journal ---------- */
.journal {
  display: flex;
  flex-direction: column;
  gap: 70px;
  padding: 0 var(--gutter) 96px;
}

.journal__divider { border: 0; border-top: 1px solid var(--color-line); margin: 0 0 var(--section-y); }

.journal__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.journal-card { display: flex; flex-direction: column; gap: 28px; text-align: center; }
.journal-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-sand); }
.journal-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 620ms var(--ease); }
.journal-card:hover .journal-card__media img { transform: scale(1.03); }
.journal-card__body { display: flex; flex-direction: column; gap: 12px; }
.journal-card__title { font-family: var(--font-serif); font-size: 21px; font-weight: 400; line-height: 1.35; }

/* ---------- 10. Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 38px var(--gutter);
  background: var(--color-paper);
  border-top: 1px solid var(--color-line);
  text-align: center;
}

.services li { display: flex; flex-direction: column; gap: 10px; padding: 22px 16px; }
.services li + li { border-left: 1px solid var(--color-line); }
.services p:last-child { font-size: 12px; color: var(--color-muted); }

/* ---------- 11. Pied de page ---------- */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 53px;
  padding: 74px var(--gutter) 52px;
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.site-footer a { transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--color-on-dark-muted); }

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 53px;
  border-bottom: 1px solid var(--color-footer-line);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.footer-brand p { color: var(--color-on-dark-muted); }

.newsletter { display: flex; flex-direction: column; gap: 10px; }
.newsletter .eyebrow { color: var(--color-on-dark-muted); font-size: 9px; }
.newsletter__field { display: flex; align-items: center; border-bottom: 1px solid var(--color-footer-line); }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 16px;
}
.newsletter input::placeholder { color: #98948f; }

.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-links h3 { margin-bottom: 26px; font-size: 9px; color: var(--color-on-dark-muted); }
.footer-links ul { display: flex; flex-direction: column; gap: 9px; }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--color-footer-line);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-on-dark-muted);
}

.footer-bottom ul { display: flex; gap: 32px; }
.footer-bottom > :last-child { justify-self: end; }

/* ---------- Bannière cookies ---------- */
.cookie-banner {
  position: fixed;
  left: 28px;
  bottom: 28px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(400px, calc(100vw - 32px));
  padding: 28px;
  background: var(--color-bg);
  border: 1px solid var(--color-sand);
}

.cookie-banner[hidden] { display: none; }
.cookie-banner::before { content: ""; width: 34px; height: 1px; background: var(--color-sand); }
.cookie-banner h2 { font-family: var(--font-serif); font-size: 25px; font-weight: 400; }
.cookie-banner a { align-self: flex-start; font-size: 12px; color: var(--color-muted); border-bottom: 1px solid var(--color-sand); }
.cookie-banner__actions { display: flex; gap: 10px; }

/* ==========================================================================
   Responsive — mêmes points de rupture que la maquette (810 / 1200)
   ========================================================================== */
@media (max-width: 1199.98px) {
  .nav-main { gap: 18px; }
  .statement { padding: 56px 80px 64px; }
  .campaign__text { padding: 64px 56px; }
  .atelier { gap: 48px; }
  .atelier__media { margin-left: 0; }
  .houses__list { column-gap: 32px; }
}

@media (max-width: 809.98px) {
  .announce { grid-template-columns: auto 1fr; }
  .announce__message { display: none; }

  .nav-bar { height: 64px; }
  .nav-toggle { display: block; }
  .nav-main {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--color-bg);
    color: var(--color-ink);
    font-size: 16px;
    box-shadow: 0 1px 0 var(--color-line);
  }
  .nav-main:not(.is-open) { display: none; }
  .nav-main a { padding: 12px 0; border-bottom: 1px solid var(--color-line); }
  .nav-actions .nav-search { display: none; }
  .brand img,
  .site-header.is-solid .brand img { height: 46px; }

  .hero { padding-top: 120px; }
  .hero__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero__footer { grid-template-columns: 1fr; justify-items: center; gap: 8px; }
  .hero__footer > :first-child,
  .hero__footer > :last-child { display: none; }

  .statement { padding: 48px var(--gutter) 56px; }

  .products { gap: 48px; padding-bottom: 72px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 12px; }
  .product-grid--staggered > li:nth-child(even) { margin-top: 0; }
  .product-card { gap: 18px; }
  .product-card__title { font-size: 18px; }

  .campaign { grid-template-columns: 1fr; min-height: 0; }
  .campaign__text { padding: 56px var(--gutter); }
  .campaign__media { aspect-ratio: 4 / 5; }

  .houses { gap: 40px; }
  .houses__list { grid-template-columns: 1fr; grid-auto-flow: row; grid-template-rows: none; }
  /* Sur mobile on ne montre que les 8 premières maisons, comme la maquette */
  .houses__list li:nth-child(n + 9) { display: none; }

  .lookbook { min-height: 520px; }

  .atelier { grid-template-columns: 1fr; padding: 56px var(--gutter); }

  .journal__grid { grid-template-columns: 1fr; gap: 48px; }

  .services { grid-template-columns: 1fr; padding: 24px var(--gutter); }
  .services li + li { border-left: 0; border-top: 1px solid var(--color-line); }

  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-bottom > :last-child { justify-self: center; }

  .cookie-banner { left: 16px; bottom: 16px; padding: 22px; }
  .cookie-banner__actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
