/* Homepage-specific styles */

/* ───────── HERO — split editorial ───────── */
.hero {
  min-height: 100vh;
  position: relative;
  padding-top: 0;
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  min-height: 100vh;
  background: var(--cream);
}
.hero-split-left {
  padding: calc(var(--header-h) + var(--s-9)) var(--side-pad-lg) var(--section-y-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-6);
  position: relative;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  font-weight: 600;
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(60px, 8vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: var(--s-2);
}
.hero-headline .italic { font-style: italic; }

.hero-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 460px;
}
.hero-lede em { font-family: var(--serif); font-style: italic; font-size: 19px; }

.hero-actions {
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--s-3);
}

.hero-meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: 0;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  max-width: 520px;
}
.hero-meta-dot {
  color: var(--gold);
  margin: 0 6px;
  font-style: normal;
}

.hero-split-right {
  position: relative;
}
.hero-split-image {
  position: relative;
  overflow: hidden;
  height: 100vh;
}
.hero-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease);
}
.hero-split-image:hover img { transform: scale(1.05); }

.hero-split-tag {
  position: absolute;
  bottom: 40px;
  left: 40px;
  background: var(--cream);
  padding: 14px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--gold);
}
.hero-tag-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}
.hero-tag-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ───────── HERO — full-bleed ───────── */
.hero-fullbleed {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}
.hero-fullbleed .hero-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.78) contrast(1.05);
}
.hero-fullbleed-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.65) 100%);
}
.hero-fullbleed-content {
  position: absolute;
  bottom: var(--s-9);
  left: var(--side-pad-lg);
  right: var(--side-pad-lg);
  max-width: 920px;
}
.hero-fullbleed-meta {
  position: absolute;
  bottom: var(--s-7);
  right: var(--side-pad-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}

/* ───────── HERO — typographic ───────── */
.hero-typo {
  background: var(--cream);
  padding: calc(var(--header-h) + var(--s-9)) var(--side-pad-lg) var(--section-y-sm);
  min-height: 100vh;
}
.hero-typo-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 80px;
  align-items: center;
}
.hero-typo-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(80px, 12vw, 180px);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.hero-typo-image-frame {
  aspect-ratio: 4/5;
  overflow: hidden;
  position: relative;
}
.hero-typo-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-typo-caption {
  margin-top: 24px;
  border-top: 1px solid var(--gold);
  padding-top: 16px;
}

/* ───────── CITATION MANIFESTE ───────── */
.manifesto {
  padding: var(--section-y) var(--side-pad-lg);
  text-align: center;
  background: var(--cream);
  position: relative;
}
.manifesto-quote {
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 1200px;
  margin: 0 auto;
  color: var(--ink);
  text-wrap: balance;
}
.manifesto-quote .italic { font-style: italic; color: var(--gold-deep); }
.manifesto-sig {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
}

/* Section headline (utility — encore utilisé par d'autres sections) */
.section-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-top: 32px;
  margin-bottom: 80px;
  text-wrap: balance;
}

/* ───────── SELECTION ───────── */
.selection {
  background: var(--cream);
  padding: var(--section-y) 0;
}
.selection-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: end;
}
.selection-head .section-headline {
  margin: 0;
  font-size: clamp(48px, 6vw, 88px);
}

.selection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px 40px;
  counter-reset: sel;
}

/* Reset any legacy positioning — clean editorial 3×2 grid */
.sel-1, .sel-2, .sel-3, .sel-4, .sel-5, .sel-6 {
  grid-column: auto;
  margin-top: 0;
}

/* Subtle staggered rhythm — middle column lifted, intentional editorial breath */
.selection-grid > .selection-cell:nth-child(3n + 2) {
  margin-top: 56px;
}

.sel-card {
  display: block;
  text-decoration: none;
  color: inherit;
  counter-increment: sel;
  position: relative;
}

/* Editorial number — Nº 01..06 above each card */
.sel-card::before {
  content: "Nº " counter(sel, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  margin-bottom: 14px;
  padding-left: 28px;
  position: relative;
}
.sel-card::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.sel-card-img {
  position: relative;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--cream);
}
.sel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 4/5;
  transition: transform 1.6s var(--ease), filter 800ms var(--ease);
  display: block;
}

/* All cards now share the same portrait aspect to match source images */
.sel-1 .sel-card-img img,
.sel-2 .sel-card-img img,
.sel-3 .sel-card-img img,
.sel-4 .sel-card-img img,
.sel-5 .sel-card-img img,
.sel-6 .sel-card-img img {
  aspect-ratio: 4/5;
}

.sel-card:hover .sel-card-img img {
  transform: scale(1.04);
  filter: brightness(1.02);
}

.sel-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0) 40%, rgba(26,26,26,0.32) 100%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 28px;
  opacity: 0;
  transition: opacity 600ms var(--ease);
}
.sel-card:hover .sel-card-overlay {
  opacity: 1;
}

.sel-card-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--cream);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 12px;
  font-weight: 600;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  z-index: 2;
}

.sel-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.sel-card-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.sel-card-theme {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}
.sel-card-price {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* ───────── DIFFÉRENCIATEURS ───────── */
.diff {
  background: var(--cream);
  padding: var(--section-y-sm) 0;
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.diff-item {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
}
.diff-text { display: flex; flex-direction: column; }
.diff-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.diff-sub {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 2px;
}

/* ───────── TÉMOIGNAGES ───────── */
.temoignages {
  background: var(--sage-soft);
  padding: var(--section-y) 0;
}
.temoignages-head {
  margin-bottom: 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.temoignages-head .section-headline { margin: 0; }
.temoignages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 48px;
}
.temoig {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.temoig--offset { transform: translateY(64px); }
.temoig-img {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.temoig-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.temoig-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.temoig-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ───────── SUR MESURE BLOCK — clean, high-contrast ───────── */
.sur-mesure-block {
  background: var(--cream-deep);          /* beige soft, lisible, distinct du cream principal */
  color: var(--ink);
  padding: 0;
  position: relative;
}
.sur-mesure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 600px;
}

/* Image side */
.sur-mesure-img {
  position: relative;
  overflow: hidden;
  background: #2a2a2a;
}
.sur-mesure-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 8s var(--ease);
}
.sur-mesure-img:hover img { transform: scale(1.03); }

.sur-mesure-img-tag {
  position: absolute;
  bottom: 28px;
  left: 28px;
  background: var(--cream);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 2px solid var(--gold);
  z-index: 2;
}
.sur-mesure-img-tag-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
}
.sur-mesure-img-tag-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  line-height: 1.1;
}

/* Text side — clean, simple, lisible */
.sur-mesure-text {
  padding: var(--section-y-sm) var(--side-pad-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-5);
}
.sur-mesure-eyebrow {
  font-family: var(--sans);
  font-size: var(--t-eyebrow);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  font-weight: 700;             /* plus bold pour vraiment ressortir sur cream-deep */
  color: var(--gold-deep);
}
.sur-mesure-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 5.5vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-top: var(--s-2);
}
.sur-mesure-headline .italic { font-style: italic; color: var(--gold-deep); }
.sur-mesure-lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 480px;
}

/* CTA row */
.sur-mesure-cta-row {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--s-3);
}
.sur-mesure-cta-meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}
.sur-mesure-block .btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.sur-mesure-block .btn-primary:hover {
  background: var(--gold-deep);
}

/* ───────── INSTAGRAM ───────── */
.ig-feed {
  background: var(--cream);
  padding: var(--section-y) 0;
}
.ig-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
  align-items: end;
}
.ig-head .section-headline {
  margin: 0;
  font-size: clamp(48px, 6vw, 88px);
}
.ig-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.ig-cell {
  display: block;
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
}
.ig-cell img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.4s var(--ease);
}
.ig-cell-overlay {
  position: absolute; inset: 0;
  background: rgba(26,26,26,0.0);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 400ms var(--ease), background 400ms var(--ease);
}
.ig-cell:hover img { transform: scale(1.06); }
.ig-cell:hover .ig-cell-overlay {
  opacity: 1;
  background: rgba(26,26,26,0.45);
}

/* Video / Reel badge — top-right corner */
.ig-cell-video {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ───────── Tablet — 2 columns for selection grid ───────── */
@media (max-width: 1100px) and (min-width: 861px) {
  .selection-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 64px 32px;
  }
  .selection-grid > .selection-cell:nth-child(3n + 2) {
    margin-top: 0;
  }
  .selection-grid > .selection-cell:nth-child(2n) {
    margin-top: 48px;
  }
}

/* ───────── Mobile responsiveness — base ─────────
   Paddings (latéraux & verticaux) sont déjà gérés via tokens
   (cf. tokens.css → @media max-width 860px).
   Ici on ne gère que les overrides de layout (grid → stack).
   ───────────────────────────────────────────── */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-end { display: none; }
  .header-utility { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-flex; }
  .brand-mark-word { font-size: 20px; }
  .brand-mark-badge { width: 36px; height: 36px; }
  .brand-mark-badge-letters { font-size: 14px; }

  .hero-split { grid-template-columns: 1fr; min-height: auto; }
  .hero-split-left { gap: var(--s-5); }
  .hero-split-right { display: block; }
  .hero-split-image { height: 60vh; min-height: 420px; }
  .hero-split-vbar { display: none; }

  /* Hero meta — wrap les bullets proprement */
  .hero-meta { font-size: 13px; }
  .hero-meta-dot { white-space: nowrap; }

  /* Tag image — plus discret en mobile */
  .hero-split-tag { bottom: 16px; left: 16px; padding: 10px 16px; }
  .hero-tag-name { font-size: 18px; }
  .hero-tag-meta { font-size: 10px; }

  .hero-actions { gap: 20px; width: 100%; }
  .hero-actions .btn-primary { width: 100%; justify-content: center; }

  .hero-typo-grid { grid-template-columns: 1fr; gap: 56px; }

  .selection-head, .ig-head { grid-template-columns: 1fr; gap: 24px; }
  .selection-grid { grid-template-columns: 1fr; gap: 64px; }
  .sel-1, .sel-2, .sel-3, .sel-4, .sel-5, .sel-6,
  .selection-grid > .selection-cell:nth-child(3n + 2) {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .diff-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .sur-mesure-grid { grid-template-columns: 1fr; }
  .sur-mesure-img { height: 50vh; min-height: 360px; }
  .sur-mesure-text { padding: var(--section-y-sm) var(--side-pad); }

  .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

/* Petite mobile — derniers ajustements */
@media (max-width: 480px) {
  .hero-headline { font-size: clamp(48px, 12vw, 64px); }
  .hero-lede { font-size: 16px; }
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-grid { grid-template-columns: 1fr; gap: 24px; }
  .diff-item { justify-content: flex-start; }
}

/* Anti-zoom iOS sur les inputs (font-size ≥ 16px = pas de zoom auto) */
input, select, textarea, button {
  font-size: 16px;
}

/* Tap targets minimum (Apple HIG / Material : 44x44 px) */
@media (hover: none) and (pointer: coarse) {
  .btn-primary,
  .btn-link,
  .btn-ghost,
  .nav-cta,
  .site-nav-link,
  .nav-toggle,
  .footer-link,
  .footer-social,
  .gal-pill,
  .bq-pill {
    min-height: 44px;
  }
  .btn-link { padding-top: 8px; padding-bottom: 10px; }
  /* Cartes : hover désactivé sur tactile, focus visible à la place */
  .lift:hover { transform: none; }
  *:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
}
