/* ==========================================================================
   MONCEAU — L'éclosion
   Palette tirée du footage : noir-serre, rose poudré, ivoire kraft, vert feuille
   ========================================================================== */

:root {
  --noir: #070d09;
  --noir-2: #0c1610;
  --vert: #24402c;
  --vert-clair: #6f8a6f;
  --ivoire: #f1e6cd;
  --ivoire-2: #e9dcbe;
  --kraft: #b08d5e;
  --rose: #dfa2a6;
  --rose-vif: #cf8090;
  --or: #d9a441;

  --serif: "Cormorant Garamond", serif;
  --sans: "Jost", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  background: var(--noir);
  color: var(--ivoire);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.svg-defs { position: absolute; }

/* ==========================================================================
   VOILE D'OUVERTURE
   ========================================================================== */

.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 120%, #13241a 0%, var(--noir) 65%);
  transition: opacity 1s ease, visibility 1s;
}

.veil.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.veil-mark {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2.2rem;
}

.veil-rule { width: 52px; height: 1px; background: rgba(223, 162, 166, 0.4); }

.veil-since {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--rose);
}

.veil-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 8.5rem);
  letter-spacing: 0.16em;
  text-indent: 0.16em;
  color: var(--ivoire);
  line-height: 1;
}

.veil-sub {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  color: var(--rose);
  margin-top: 0.9rem;
  letter-spacing: 0.08em;
}

.veil-hint {
  position: absolute;
  bottom: 88px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(241, 230, 205, 0.55);
}

.veil-arrow {
  position: absolute;
  bottom: 40px;
  width: 1px;
  height: 34px;
  overflow: hidden;
}

.veil-arrow span {
  display: block;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--rose));
  animation: drip 1.8s ease-in-out infinite;
}

@keyframes drip {
  0%   { transform: translateY(-100%); }
  60%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ==========================================================================
   SCÈNE FIXE
   ========================================================================== */

.stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--noir);
  overflow: hidden;
}

.stage.off { visibility: hidden; }

.act { position: absolute; inset: 0; }

.act video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* z-order géré en JS pendant les transitions corolle */
#act1 { z-index: 3; }
#act2 { z-index: 2; }
#act3 { z-index: 1; }

.act.clipped {
  clip-path: url(#corolleClip);
  -webkit-clip-path: url(#corolleClip);
}

.vignette {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 52%, rgba(7, 13, 9, 0.55) 100%),
    linear-gradient(to bottom, rgba(7, 13, 9, 0.35), transparent 18%, transparent 82%, rgba(7, 13, 9, 0.45));
}

/* ==========================================================================
   HUD — captions
   ========================================================================== */

.hud { position: absolute; inset: 0; z-index: 12; pointer-events: none; }

.caption {
  position: absolute;
  left: clamp(1.6rem, 9vw, 9rem);
  bottom: 16vh;
  max-width: 34rem;
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}

.caption.cap-right {
  left: auto;
  right: clamp(1.6rem, 9vw, 9rem);
  text-align: right;
}

.caption.cap-center {
  left: 50%;
  right: auto;
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -46%);
  text-align: center;
}

.cap-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.4em;
  color: var(--rose);
  border: 1px solid rgba(223, 162, 166, 0.35);
  padding: 0.45em 0.9em 0.4em;
  margin-bottom: 1.3rem;
  backdrop-filter: blur(4px);
  background: rgba(7, 13, 9, 0.25);
}

.caption h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.7rem);
  line-height: 1.06;
  color: var(--ivoire);
  text-shadow: 0 2px 30px rgba(7, 13, 9, 0.65);
}

.caption h2 em {
  font-style: italic;
  color: var(--rose);
}

.caption p {
  margin-top: 1.1rem;
  font-weight: 300;
  font-size: clamp(0.88rem, 1.4vw, 1.02rem);
  line-height: 1.75;
  letter-spacing: 0.04em;
  color: rgba(241, 230, 205, 0.88);
  text-shadow: 0 1px 18px rgba(7, 13, 9, 0.8);
}

.cap-cta {
  display: inline-block;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--or);
}

/* ==========================================================================
   HUD — la tige
   ========================================================================== */

.stem-hud {
  position: absolute;
  right: clamp(0.9rem, 2.4vw, 2.4rem);
  top: 50%;
  transform: translateY(-50%);
  z-index: 14;
  height: min(52vh, 420px);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.stem-hud svg { height: 100%; width: 24px; overflow: visible; }

.stem-track { stroke: rgba(241, 230, 205, 0.16); stroke-width: 1; }

.stem-line { stroke: var(--vert-clair); stroke-width: 1.6; stroke-linecap: round; }

.stem-node circle {
  fill: var(--noir);
  stroke: rgba(241, 230, 205, 0.35);
  stroke-width: 1;
  transition: fill 0.5s, stroke 0.5s;
}

.stem-node path {
  fill: transparent;
  transition: fill 0.6s;
}

.stem-node.bloomed circle { fill: var(--rose); stroke: var(--rose); }
.stem-node.bloomed path { fill: var(--vert-clair); }

.stem-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 78%;
  padding: 4% 0;
}

.stem-labels span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(241, 230, 205, 0.38);
  writing-mode: vertical-rl;
  transition: color 0.5s;
}

.stem-labels span.on { color: var(--rose); }

/* ==========================================================================
   HUD — cadre
   ========================================================================== */

.frame-hud {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 14;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: clamp(1.1rem, 3vw, 2.2rem) clamp(1.4rem, 4vw, 3rem);
  pointer-events: none;
}

.frame-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.3em;
  color: var(--ivoire);
}

.frame-right {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-align: right;
  line-height: 1.9;
  color: rgba(241, 230, 205, 0.5);
}

/* ==========================================================================
   SPACER
   ========================================================================== */

.spacer { height: 1500vh; position: relative; z-index: 1; }

/* ==========================================================================
   ÉDITORIAL
   ========================================================================== */

.editorial {
  position: relative;
  z-index: 20;
  background: var(--ivoire);
  color: var(--noir-2);
}

.section-head { max-width: 1200px; margin: 0 auto; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.42em;
  color: var(--kraft);
}

.section-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin-top: 1.1rem;
  color: var(--vert);
}

.section-head h2 em { font-style: italic; color: var(--rose-vif); }

.section-lede {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(12, 22, 16, 0.72);
}

/* --- Collection --- */

.collection { padding: clamp(5rem, 11vw, 9.5rem) clamp(1.4rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem); }

.bouquets {
  max-width: 1200px;
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}

.bouquet figure {
  overflow: hidden;
  border-radius: 2px;
  aspect-ratio: 3 / 4;
  background: var(--ivoire-2);
}

.bouquet img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.bouquet:hover img { transform: scale(1.08); }

.bq-meta { padding: 1.3rem 0.2rem 0; }

.bq-num {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.3em;
  color: var(--kraft);
}

.bq-meta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  margin-top: 0.35rem;
  color: var(--noir-2);
}

.bq-meta p {
  margin-top: 0.55rem;
  font-weight: 300;
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(12, 22, 16, 0.68);
}

.bq-occ {
  display: inline-block;
  margin-top: 0.8rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-vif);
}

/* --- La carte --- */

.carte {
  background: var(--ivoire-2);
  border-top: 1px solid rgba(36, 64, 44, 0.14);
  padding: clamp(5rem, 11vw, 9.5rem) clamp(1.4rem, 5vw, 4rem);
}

.carte-cols {
  max-width: 1200px;
  margin: clamp(2.6rem, 5vw, 4.4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2.2rem, 5vw, 4.5rem);
}

.carte-col h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: 0.05em;
  color: var(--vert);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(36, 64, 44, 0.25);
}

.carte-col ul { list-style: none; margin-top: 1.1rem; }

.carte-col li {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.42rem 0;
}

.ct-name {
  font-weight: 300;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(12, 22, 16, 0.82);
}

.ct-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(176, 141, 94, 0.55);
  transform: translateY(-0.22em);
}

.ct-price {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--vert);
  white-space: nowrap;
}

.carte-h3-2 { margin-top: 2.2rem; }

.carte-note {
  margin-top: 1.6rem;
  font-weight: 300;
  font-style: italic;
  font-size: 0.84rem;
  line-height: 1.75;
  color: rgba(12, 22, 16, 0.55);
}

.bq-price {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--kraft);
  margin-left: 0.55rem;
  vertical-align: 0.35em;
  white-space: nowrap;
}

/* --- Manifeste --- */

.manifesto {
  background: var(--vert);
  color: var(--ivoire);
  text-align: center;
  padding: clamp(5rem, 12vw, 10rem) clamp(1.4rem, 5vw, 4rem);
}

.manifesto blockquote {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.6rem, 4.2vw, 3.1rem);
  line-height: 1.35;
}

.manifesto em { font-style: italic; color: var(--rose); }

.manifesto cite {
  display: block;
  margin-top: 2.2rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: rgba(241, 230, 205, 0.55);
}

/* --- Services --- */

.services { padding: clamp(5rem, 11vw, 9.5rem) clamp(1.4rem, 5vw, 4rem); }

.svc-grid {
  max-width: 1200px;
  margin: clamp(2.6rem, 5vw, 4.4rem) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(36, 64, 44, 0.16);
  border: 1px solid rgba(36, 64, 44, 0.16);
}

.svc {
  background: var(--ivoire);
  padding: clamp(1.6rem, 3vw, 2.6rem);
  transition: background 0.5s;
}

.svc:hover { background: var(--ivoire-2); }

.svc-num {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--kraft);
}

.svc h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.45rem;
  margin-top: 0.9rem;
  color: var(--vert);
}

.svc p {
  margin-top: 0.7rem;
  font-weight: 300;
  font-size: 0.87rem;
  line-height: 1.75;
  color: rgba(12, 22, 16, 0.68);
}

/* --- Le réseau (carte de France) --- */

.reseau {
  background:
    radial-gradient(ellipse at 78% 40%, rgba(36, 64, 44, 0.55) 0%, transparent 60%),
    var(--noir-2);
  color: var(--ivoire);
  padding: clamp(5rem, 11vw, 9.5rem) clamp(1.4rem, 5vw, 4rem);
}

.reseau-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.reseau-text h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  margin-top: 1.1rem;
  color: var(--ivoire);
}

.reseau-text h2 em { font-style: italic; color: var(--rose); }

.reseau-text p {
  margin-top: 1.3rem;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(241, 230, 205, 0.72);
}

.reseau-legende {
  list-style: none;
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.reseau-legende li {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(241, 230, 205, 0.6);
}

.lg-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose);
  opacity: 0.55;
}

.lg-dot.lg-idf { opacity: 0.85; }

.lg-dot.lg-paris {
  width: 10px; height: 10px;
  background: var(--or);
  opacity: 1;
  box-shadow: 0 0 10px rgba(217, 164, 65, 0.7);
}

.reseau-source {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.56rem !important;
  letter-spacing: 0.12em;
  color: rgba(241, 230, 205, 0.32) !important;
}

.reseau-map { position: relative; }

.fr-map {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.fr-land {
  fill: rgba(36, 64, 44, 0.42);
  stroke: rgba(241, 230, 205, 0.45);
  stroke-width: 1.1;
  stroke-linejoin: round;
}

.fr-map circle { cursor: pointer; }

.fr-map .dot {
  fill: var(--rose);
  opacity: 0.75;
  transition: opacity 0.3s;
}

.fr-map .dot-idf {
  fill: var(--rose);
  opacity: 0.5;
}

.fr-map .dot:hover, .fr-map .dot-idf:hover { opacity: 1; }

.fr-map .dot-paris {
  fill: var(--or);
  animation: pulse-paris 2.6s ease-in-out infinite;
}

@keyframes pulse-paris {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

/* --- Chiffres --- */

.figures {
  display: flex;
  justify-content: center;
  gap: clamp(2.4rem, 8vw, 7rem);
  flex-wrap: wrap;
  padding: clamp(3.4rem, 7vw, 5.5rem) clamp(1.4rem, 5vw, 4rem);
  background: var(--ivoire-2);
  border-top: 1px solid rgba(36, 64, 44, 0.14);
}

.fig { text-align: center; }

.fig-n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--vert);
}

.fig-l {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--kraft);
}

/* --- Footer --- */

.footer {
  background: var(--noir-2);
  color: var(--ivoire);
  padding: clamp(4rem, 8vw, 6.5rem) clamp(1.4rem, 5vw, 4rem) 2.4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  max-width: 100%;
}

.foot-logo {
  font-family: var(--serif);
  font-size: 2rem;
  letter-spacing: 0.28em;
}

.foot-brand p {
  margin-top: 1.2rem;
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(241, 230, 205, 0.62);
}

.foot-col h4 {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--rose);
}

.foot-col p {
  margin-top: 1.1rem;
  font-weight: 300;
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(241, 230, 205, 0.62);
  word-break: break-word;
}

.foot-legal {
  grid-column: 1 / -1;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(241, 230, 205, 0.12);
}

.foot-legal p {
  font-family: var(--mono);
  font-size: 0.58rem;
  line-height: 2;
  letter-spacing: 0.08em;
  color: rgba(241, 230, 205, 0.35);
}

/* --- Reveal on scroll --- */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 900px) {
  .bouquets { grid-template-columns: repeat(2, 1fr); }
  .carte-cols { grid-template-columns: 1fr; gap: 2.6rem; }
  .reseau-inner { grid-template-columns: 1fr; }
  .reseau-map { max-width: 480px; margin: 0 auto; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr 1fr; }
  .stem-hud { height: 40vh; right: 0.5rem; }
  .stem-labels { display: none; }
}

@media (max-width: 560px) {
  .bouquets { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }

  /* Piste plus courte : ~9 écrans de pouce suffisent au voyage */
  .spacer { height: 900vh; }

  /* Captions : pleine largeur utile, ancrées au-dessus du pouce */
  .caption {
    left: 1.4rem;
    right: 1.4rem;
    bottom: calc(10vh + env(safe-area-inset-bottom, 0px));
    max-width: none;
  }
  .caption.cap-right { text-align: left; }
  .caption.cap-center { left: 50%; right: auto; width: 86vw; }
  .caption h2 { font-size: clamp(1.7rem, 8vw, 2.4rem); }
  .caption p br { display: none; }

  /* Tige : présente mais discrète, collée au bord */
  .stem-hud {
    height: 30vh;
    right: calc(0.35rem + env(safe-area-inset-right, 0px));
    opacity: 0.75;
  }
  .stem-hud svg { width: 16px; }

  .frame-hud {
    padding-top: calc(1.1rem + env(safe-area-inset-top, 0px));
    padding-left: calc(1.4rem + env(safe-area-inset-left, 0px));
    padding-right: calc(1.4rem + env(safe-area-inset-right, 0px));
  }

  .veil-hint { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); padding: 0 1.5rem; text-align: center; line-height: 2; }
  .veil-arrow { bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }

  .manifesto blockquote br { display: none; }
}

/* Hauteurs dynamiques : suit la barre d'adresse mobile sans à-coups */
@supports (height: 1dvh) {
  @media (max-width: 560px) {
    .caption { bottom: calc(10dvh + env(safe-area-inset-bottom, 0px)); }
    .stem-hud { height: 30dvh; }
  }
}

@media (prefers-reduced-motion: reduce) {
  .veil-arrow span { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
}
