/* ============================================================
   Emilie Lombardo — Design system éditorial luxe discret
   Inspiré AD / quiet luxury · matières chaudes · rythme magazine
   ============================================================ */

:root {
  --ivory: #F9F6F1;
  --linen: #EDE8E0;
  --charcoal: #2C2C2C;
  --terra: #C4826B;
  --champ: #D4B896;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --section-y: clamp(5rem, 12vw, 9rem);
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-font-smoothing: antialiased; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--charcoal);
}

/* ---------- Typographie ---------- */
.font-serif { font-family: "Cormorant Garamond", Georgia, serif; }

.display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: "DM Sans", system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.68rem;
  font-weight: 500;
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.75;
  font-weight: 300;
  color: rgba(44, 44, 44, 0.72);
}

/* ---------- Layout ---------- */
.section-pad {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.container-editorial {
  width: min(100% - 3rem, 82rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 3rem, 46rem);
  margin-inline: auto;
}

/* ---------- Boutons (conversion) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.55s var(--ease-out);
}

.btn-primary {
  background: var(--terra);
  color: #fff;
}
.btn-primary:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(44, 44, 44, 0.18);
}

.btn-ghost {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--charcoal);
  border-color: #fff;
}

.btn-ghost-dark {
  border-color: rgba(44, 44, 44, 0.25);
  color: var(--charcoal);
}
.btn-ghost-dark:hover {
  border-color: var(--terra);
  color: var(--terra);
  background: transparent;
}

.btn-link {
  padding: 0;
  background: none;
  border: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--charcoal);
  cursor: pointer;
}
.btn-link:hover { color: var(--terra); }

/* ---------- Révélation au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.95s var(--ease-out),
    transform 0.95s var(--ease-out),
    filter 0.95s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: none; }

.reveal-left {
  transform: translateX(-28px);
}
.reveal-left.is-visible { transform: translateX(0); }

.reveal-right {
  transform: translateX(28px);
}
.reveal-right.is-visible { transform: translateX(0); }

.reveal-scale {
  transform: scale(0.96);
}
.reveal-scale.is-visible { transform: scale(1); }

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }
.reveal-delay-4 { transition-delay: 0.48s; }

@media (max-width: 767px) {
  .reveal,
  .reveal-left,
  .reveal-right {
    transform: translateY(18px);
  }
  .reveal-left.is-visible,
  .reveal-right.is-visible,
  .reveal.is-visible {
    transform: translateY(0);
  }
  .reveal-scale {
    transform: scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Liens ---------- */
.link-underline {
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Signature de marque (style plume, comme le site actuel) ---------- */
.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  text-align: center;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  max-width: min(100%, 16rem);
}
.brand-lockup.items-start {
  align-items: flex-start;
  text-align: left;
}

.brand-signature {
  font-family: "Zapfino", "Snell Roundhand", "Segoe Script", "Pinyon Script", cursive;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: capitalize;
  white-space: nowrap;
  transition: font-size 0.45s var(--ease-out);
}
.brand-signature--compact {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.brand-tagline {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(0.56rem, 1.35vw, 0.68rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.35;
  white-space: nowrap;
}

/* ---------- Navigation ---------- */
.nav-link {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header {
  transition: background 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}
.site-header__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 1rem;
}
.site-header__brand {
  justify-self: start;
}
.site-header__links {
  justify-self: center;
  min-width: 0;
}
.site-header__actions {
  justify-self: end;
}
@media (max-width: 1023px) {
  .site-header__bar {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .site-header__brand {
    max-width: calc(100% - 3rem);
  }
}
.site-header.is-scrolled {
  background: rgba(249, 246, 241, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(44, 44, 44, 0.06);
}

.mobile-menu {
  transition: opacity 0.45s ease, transform 0.55s var(--ease-out);
}

/* ---------- Hero cinématique ---------- */
.hero-cine {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-cine__media,
.hero-cine__carousel {
  position: absolute;
  inset: 0;
}

.hero-cine__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
  z-index: 0;
}
.hero-cine__slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-cine__media img,
.hero-cine__slide img,
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
.hero-cine__slide.is-active img {
  animation: hero-zoom 7s var(--ease-out) forwards;
}
@keyframes hero-zoom {
  to { transform: scale(1); }
}

.hero-cine__nav {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: none;
}
@media (min-width: 768px) {
  .hero-cine__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
  }
}
.hero-cine__arrow {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(249, 246, 241, 0.35);
  border-radius: 50%;
  color: rgba(249, 246, 241, 0.85);
  background: rgba(44, 44, 44, 0.25);
  backdrop-filter: blur(6px);
  transition: background 0.35s ease, border-color 0.35s ease, color 0.35s ease, transform 0.35s ease;
}
.hero-cine__arrow:hover {
  background: rgba(249, 246, 241, 0.12);
  border-color: rgba(249, 246, 241, 0.65);
  color: #fff;
}

.hero-cine__controls {
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: clamp(5.5rem, 12vh, 7rem);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.hero-cine__dot {
  width: 2rem;
  height: 2px;
  padding: 0.75rem 0;
  background: transparent;
  border: 0;
  position: relative;
  cursor: pointer;
}
.hero-cine__dot::before {
  content: "";
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(249, 246, 241, 0.35);
  transition: background 0.4s ease, transform 0.4s ease;
}
.hero-cine__dot.is-active::before {
  background: var(--champ);
  transform: scaleY(1.5);
}
.hero-cine__dot:hover::before {
  background: rgba(249, 246, 241, 0.7);
}

.hero-cine__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(44,44,44,0.88) 0%, rgba(44,44,44,0.4) 45%, rgba(44,44,44,0.12) 100%),
    linear-gradient(to right, rgba(44,44,44,0.72) 0%, rgba(44,44,44,0.25) 50%, transparent 72%);
}

.hero-cine__content {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, 82rem);
  margin: 0 auto;
  padding: clamp(6rem, 18vh, 10rem) 0 clamp(3rem, 8vh, 5rem);
  text-align: left;
}

/* ---------- Bandeau crédibilité ---------- */
.cred-bar {
  border-top: 1px solid rgba(44, 44, 44, 0.08);
  border-bottom: 1px solid rgba(44, 44, 44, 0.08);
  background: var(--linen);
}

.cred-bar__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.75rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(44, 44, 44, 0.06);
}
.cred-bar__item:last-child { border-right: none; }
.cred-bar__num {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1;
  color: var(--terra);
  font-variant-numeric: tabular-nums;
}
.cred-bar__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(44, 44, 44, 0.55);
}

/* ---------- Projets éditoriaux (accueil) ---------- */
.editorial-feature {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .editorial-feature {
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
  }
  .editorial-feature__hero {
    grid-row: span 2;
    min-height: 640px;
  }
}

.editorial-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  min-height: 320px;
  background: var(--linen);
}
.editorial-card > picture,
.editorial-card > img,
.editorial-card > div.img-fallback {
  position: absolute;
  inset: 0;
}
.editorial-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.editorial-card:hover img { transform: scale(1.05); }

.editorial-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44,44,44,0.78) 0%, rgba(44,44,44,0.08) 55%, transparent 100%);
  transition: opacity 0.5s ease;
}
.editorial-card:hover .editorial-card__veil {
  background: linear-gradient(to top, rgba(44,44,44,0.88) 0%, rgba(44,44,44,0.2) 60%, transparent 100%);
}

.editorial-card__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
}

.editorial-card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.45s var(--ease-out);
}
.editorial-card:hover .editorial-card__arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Grille projets ---------- */
.project-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-decoration: none;
  background: var(--linen);
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.project-card:hover img { transform: scale(1.06); }

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem;
  background: linear-gradient(to top, rgba(44,44,44,0.8) 0%, rgba(44,44,44,0.1) 50%, transparent 72%);
  opacity: 0;
  transition: opacity 0.55s ease;
}
.project-card:hover .project-overlay { opacity: 1; }

@media (hover: none) {
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(44,44,44,0.82) 0%, rgba(44,44,44,0.15) 45%, transparent 72%);
  }
  .editorial-card__arrow {
    opacity: 1;
    transform: translateY(0);
  }
  .project-card:active img,
  .editorial-card:active img {
    transform: scale(1.03);
  }
}

/* ---------- Process (parcours client) ---------- */
.process-step {
  position: relative;
  padding-left: 3.5rem;
}
.process-step::before {
  content: attr(data-step);
  position: absolute;
  left: 0;
  top: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--champ);
}

/* ---------- Témoignages ---------- */
.quote-card {
  background: #fff;
  border: 1px solid rgba(44, 44, 44, 0.06);
  padding: clamp(2rem, 4vw, 2.75rem);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.quote-card:hover {
  box-shadow: 0 24px 60px rgba(44, 44, 44, 0.08);
  transform: translateY(-4px);
}
.quote-card__text {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
  flex-grow: 1;
  color: rgba(44, 44, 44, 0.88);
}

/* ---------- CTA sticky (conversion) ---------- */
.sticky-cta {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 60;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.5s var(--ease-out);
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- Marquee presse ---------- */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Fallback image ---------- */
.img-fallback {
  background: linear-gradient(135deg, var(--linen) 0%, var(--champ) 100%);
}

/* ---------- Scrollbar & sélection ---------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--champ); border-radius: 8px; }
::selection { background: var(--terra); color: #fff; }

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
.scroll-cue { animation: bounce-soft 2.6s ease-in-out infinite; }

/* ---------- Pages projet (SSR) ---------- */
.page-hero {
  position: relative;
  min-height: 85svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero > picture,
.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Contact (section dédiée) ---------- */
.contact-section {
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: -20% auto auto -10%;
  width: min(42vw, 28rem);
  height: min(42vw, 28rem);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 184, 150, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.contact-panel {
  background: #fff;
  border: 1px solid rgba(44, 44, 44, 0.06);
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: 0 24px 70px rgba(44, 44, 44, 0.08);
  transition: box-shadow 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.contact-panel:focus-within {
  box-shadow: 0 28px 80px rgba(196, 130, 107, 0.14);
  transform: translateY(-2px);
}

.contact-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(44, 44, 44, 0.14);
  color: var(--charcoal);
  padding: 0.85rem 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 300;
  transition: border-color 0.35s ease, transform 0.35s var(--ease-out);
}
.contact-input::placeholder { color: rgba(44, 44, 44, 0.35); }
.contact-input:focus {
  outline: none;
  border-color: var(--terra);
  transform: translateY(-1px);
}

.gallery-masonry .lb-trigger {
  transition: transform 0.65s var(--ease-out), box-shadow 0.65s var(--ease-out);
}
.gallery-masonry .lb-trigger.is-visible,
.gallery-masonry .reveal.is-visible .lb-trigger {
  transform: none;
}
.gallery-masonry .lb-trigger:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(44, 44, 44, 0.1);
}

.story-block {
  border-left: 2px solid var(--champ);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.gallery-masonry {
  columns: 1;
  column-gap: 1.25rem;
}
.gallery-masonry > * {
  break-inside: avoid;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) { .gallery-masonry { columns: 2; } }
@media (min-width: 1024px) { .gallery-masonry { columns: 3; } }

/* ---------- Comparateur avant / après ---------- */
.ba-compare {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--linen);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
@media (min-width: 768px) { .ba-compare { aspect-ratio: 16 / 10; } }

.ba-compare__after,
.ba-compare__before img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.ba-compare__before {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}
.ba-compare__before img {
  width: 100%;
  max-width: none;
}
.ba-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  z-index: 3;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}
.ba-compare__handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(44, 44, 44, 0.12);
  box-shadow: 0 8px 24px rgba(44, 44, 44, 0.18);
}
.ba-compare__handle::after {
  content: "‹ ›";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--charcoal);
  white-space: nowrap;
}
.ba-compare__label {
  position: absolute;
  top: 1rem;
  z-index: 4;
  padding: 0.35rem 0.75rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(44, 44, 44, 0.72);
  color: #fff;
  pointer-events: none;
}
.ba-compare__label--before { left: 1rem; }
.ba-compare__label--after { right: 1rem; }

.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .ba-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

.ba-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--linen);
}
.ba-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}
.ba-thumb:hover img { transform: scale(1.03); }
.ba-thumb__tag {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.6rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(249, 246, 241, 0.92);
  color: var(--charcoal);
}
/* ---------- Couvertures presse ---------- */
.press-cover__img {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--linen);
  border: 1px solid rgba(44, 44, 44, 0.06);
  transition: box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.press-cover:hover .press-cover__img {
  box-shadow: 0 20px 50px rgba(44, 44, 44, 0.12);
  transform: translateY(-4px);
}
.press-cover img {
  transition: transform 0.8s var(--ease-out);
}
.press-cover:hover img { transform: scale(1.04); }

/* ---------- Prose pages légales ---------- */
.prose-custom h2 { margin-top: 0; }
