:root {
  --sucrerie-white: #fffdfb;
  --blush: #f4d9dd;
  --rose: #e7a9b4;
  --champagne: #c9a96a;
  --deep-gold: #a8873e;
  --cocoa: #3a302b;
  --marble: #e8e3dc;
  --framboise: #c24b63;
  --paper: #fff8f5;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Jost", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    radial-gradient(circle at 15% 0%, rgba(244, 217, 221, .62), transparent 24rem),
    linear-gradient(105deg, rgba(232, 227, 220, .42) 0 1px, transparent 1px 100%),
    var(--sucrerie-white);
  background-size: auto, 34px 34px, auto;
  color: var(--cocoa);
  font-family: var(--body);
  line-height: 1.55;
}

img { display: block; width: 100%; height: auto; }
a { color: inherit; }
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--cocoa);
  color: white;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(201, 169, 106, .28);
  background: rgba(255, 253, 251, .88);
  backdrop-filter: blur(18px);
}
.brand {
  text-decoration: none;
  font-family: var(--display);
  line-height: 1;
}
.brand span {
  display: block;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--deep-gold);
}
.brand strong {
  font-size: clamp(1.08rem, 2.2vw, 1.65rem);
  font-weight: 700;
}
.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-links a,
.language-toggle button,
.button {
  min-height: 44px;
  border-radius: 999px;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  text-decoration: none;
  font-size: .92rem;
}
.language-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid rgba(201, 169, 106, .46);
  border-radius: 999px;
  background: white;
}
.language-toggle button {
  min-width: 46px;
  border: 0;
  background: transparent;
  color: var(--cocoa);
  font-weight: 700;
}
.language-toggle .is-active {
  background: var(--cocoa);
  color: white;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  min-height: 46svh;
  padding: clamp(48px, 9vh, 96px) clamp(16px, 4vw, 52px) clamp(40px, 7vh, 72px);
  align-items: center;
  overflow: clip;
  background: #fffdfb;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero::before {
  background:
    radial-gradient(circle at 72% 42%, rgba(255, 255, 255, .12), transparent 22rem),
    linear-gradient(115deg, rgba(201, 169, 106, .28), transparent 32%),
    linear-gradient(180deg, transparent 72%, var(--sucrerie-white) 100%);
  mix-blend-mode: multiply;
}
.hero::after {
  inset: auto 0 0;
  height: 28vh;
  background: linear-gradient(180deg, transparent, var(--sucrerie-white));
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-bottom: 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--deep-gold);
  font-family: var(--display);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: 0;
  line-height: .98;
}
h1 { font-size: clamp(3rem, 9vw, 8.5rem); max-width: 820px; }
h2 { font-size: clamp(2.25rem, 5.4vw, 5rem); max-width: 840px; }
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); line-height: 1.08; }
.lede,
.section-copy p,
.section-head p {
  max-width: 660px;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}
.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(58, 48, 43, .16);
  text-decoration: none;
  font-weight: 800;
}
.button.primary {
  border-color: var(--framboise);
  background: var(--framboise);
  color: white;
  box-shadow: 0 18px 34px rgba(194, 75, 99, .18);
}
.button.quiet {
  background: rgba(255, 255, 255, .72);
  color: var(--cocoa);
}

.hero-stage {
  position: sticky;
  top: 92px;
  display: grid;
  min-height: min(78svh, 760px);
  place-items: center;
  align-self: start;
  isolation: isolate;
  z-index: 1;
}
#naissance-canvas,
.webgl-fallback {
  width: min(72vw, 760px);
  max-width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
}
#naissance-canvas {
  position: relative;
  z-index: 2;
  background: radial-gradient(circle, rgba(255,255,255,.24), rgba(244,217,221,.16) 58%, transparent 72%);
  filter: drop-shadow(0 32px 70px rgba(168, 135, 62, .32)) contrast(1.08) saturate(1.05);
}
.stage-photo {
  position: absolute;
  z-index: 0;
  width: min(76vw, 800px);
  max-width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border: 1px solid rgba(201, 169, 106, .32);
  box-shadow: 0 28px 80px rgba(58, 48, 43, .20);
  transform: rotate(-2deg) translateY(1%);
}
.stage-photo img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.08);
}
.stage-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 253, 251, .10), transparent 28rem),
    linear-gradient(90deg, rgba(58, 48, 43, .28), transparent 38%, rgba(255, 253, 251, .16));
}
.webgl-fallback {
  position: relative;
  z-index: 2;
  display: none;
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px;
  background: white;
  border: 1px solid rgba(201, 169, 106, .22);
}
.webgl-fallback img {
  height: 100%;
  object-fit: cover;
  border-radius: 50% 50% 12px 12px;
}
.webgl-fallback img:first-child { grid-row: span 2; }
.no-webgl #naissance-canvas { display: none; }
.no-webgl .webgl-fallback { display: grid; }
.stage-caption {
  position: absolute;
  right: 4%;
  bottom: 8%;
  z-index: 2;
  width: min(220px, 46vw);
  padding: 14px 16px;
  border: 1px solid rgba(201, 169, 106, .35);
  background: rgba(255, 253, 251, .82);
}
.stage-caption span {
  display: block;
  color: var(--deep-gold);
  font-family: var(--display);
  font-size: 1.14rem;
}
.stage-caption strong {
  display: block;
  font-size: .82rem;
}

.cinematic-reel {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 16px);
  align-items: end;
  margin-top: clamp(22px, 4vw, 52px);
}
.cinematic-reel figure {
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(201, 169, 106, .22);
  background: rgba(255, 253, 251, .88);
  box-shadow: 0 18px 46px rgba(58, 48, 43, .08);
}
.cinematic-reel img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}
.cinematic-reel figcaption {
  display: block;
  min-height: 48px;
  padding: 10px 11px;
  color: var(--deep-gold);
  font-family: var(--display);
  font-size: clamp(.78rem, 1vw, .96rem);
  font-weight: 700;
  line-height: 1.12;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

section {
  position: relative;
  padding: clamp(72px, 10vw, 136px) clamp(16px, 4vw, 52px);
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(280px, 1.1fr);
  gap: clamp(24px, 6vw, 86px);
  align-items: center;
}
.section-head { margin-bottom: clamp(28px, 5vw, 58px); }
.price-note {
  padding: 18px 20px;
  border-left: 3px solid var(--champagne);
  background: linear-gradient(90deg, rgba(244, 217, 221, .44), transparent);
}
.display-case {
  display: grid;
  grid-template-columns: .86fr 1fr;
  gap: 14px;
  align-items: end;
}
.display-case img,
.signature-photo img,
.contact-photo img,
.portfolio-card img {
  border: 1px solid rgba(201, 169, 106, .22);
  background: white;
  box-shadow: 0 24px 60px rgba(58, 48, 43, .08);
}
.display-case img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.display-case img:last-child { transform: translateY(9%); }

.creations {
  background:
    linear-gradient(180deg, rgba(244, 217, 221, .38), transparent 28%),
    var(--sucrerie-white);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}
.portfolio-card {
  grid-column: span 3;
  min-width: 0;
  margin: 0;
}
.portfolio-card:nth-child(6n + 1),
.portfolio-card:nth-child(8n + 4) { grid-column: span 5; }
.portfolio-card:nth-child(7n + 2) { grid-column: span 4; }
.portfolio-card img {
  aspect-ratio: var(--ratio, 4 / 5);
  object-fit: cover;
}
.portfolio-card figcaption {
  min-height: 58px;
  padding: 10px 4px 0;
  color: rgba(58, 48, 43, .82);
  font-size: .94rem;
}
.signature-photo img,
.contact-photo img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.process {
  background:
    linear-gradient(90deg, rgba(255, 253, 251, .94), rgba(255, 253, 251, .72)),
    url("../assets/heroes/hero-01-studio-aube.jpg") center / cover fixed,
    radial-gradient(circle at 75% 14%, rgba(201, 169, 106, .18), transparent 22rem),
    linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(244, 217, 221, .32));
}
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.process-steps article {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(201, 169, 106, .28);
  background: rgba(255, 253, 251, .76);
}
.process-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--deep-gold);
  font-weight: 900;
}
.policy-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.policy-band p {
  margin: 0;
  min-height: 86px;
  padding: 18px;
  border-top: 2px solid var(--champagne);
  background: white;
}
.contact-studio {
  align-items: start;
  background:
    radial-gradient(circle at 12% 18%, rgba(244, 217, 221, .48), transparent 24rem),
    linear-gradient(180deg, rgba(255, 253, 251, .96), rgba(255, 248, 245, .82));
}
.contact-intro {
  max-width: 780px;
}
.cake-form {
  margin-top: clamp(24px, 4vw, 38px);
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(201, 169, 106, .34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 248, 245, .86)),
    var(--paper);
  box-shadow: 0 28px 70px rgba(58, 48, 43, .10);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.cake-form label,
.flavour-field {
  min-width: 0;
}
.cake-form label > span,
.flavour-field legend {
  display: block;
  margin-bottom: 7px;
  color: var(--deep-gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cake-form input,
.cake-form select,
.cake-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(58, 48, 43, .18);
  border-radius: 0;
  background: rgba(255, 255, 255, .88);
  color: var(--cocoa);
  font: inherit;
  line-height: 1.35;
}
.cake-form input,
.cake-form select {
  padding: 0 13px;
}
.cake-form textarea {
  min-height: 144px;
  padding: 13px;
  resize: vertical;
}
.cake-form input:focus,
.cake-form select:focus,
.cake-form textarea:focus {
  outline: 2px solid rgba(194, 75, 99, .36);
  outline-offset: 2px;
  border-color: rgba(194, 75, 99, .56);
}
.form-wide,
.flavour-field {
  grid-column: 1 / -1;
}
.flavour-field {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}
.flavour-field legend {
  grid-column: 1 / -1;
}
.flavour-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid rgba(201, 169, 106, .30);
  background: rgba(255, 255, 255, .74);
  font-weight: 800;
}
.flavour-field input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--framboise);
}
.cake-form .button {
  margin-top: 18px;
}
.form-note {
  margin: 12px 0 0;
  color: rgba(58, 48, 43, .72);
  font-size: .95rem;
}
.availability-panel {
  position: sticky;
  top: 96px;
  min-width: 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid rgba(201, 169, 106, .34);
  background:
    linear-gradient(160deg, rgba(58, 48, 43, .94), rgba(58, 48, 43, .82)),
    var(--cocoa);
  color: white;
  box-shadow: 0 30px 80px rgba(58, 48, 43, .18);
}
.availability-panel .eyebrow {
  color: #e9c98f;
}
.availability-panel p {
  color: rgba(255, 253, 251, .78);
}
.calendar-shell {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(233, 201, 143, .30);
  background: rgba(255, 253, 251, .08);
}
.calendar-controls {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.calendar-controls strong {
  min-width: 0;
  color: #fff8ed;
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  text-align: center;
  text-transform: capitalize;
}
.calendar-controls button,
.calendar-day {
  border: 1px solid rgba(233, 201, 143, .26);
  background: rgba(255, 253, 251, .08);
  color: white;
  font: inherit;
}
.calendar-controls button {
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.calendar-weekdays {
  margin-bottom: 6px;
  color: rgba(233, 201, 143, .82);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  font-size: .92rem;
}
.calendar-day:not(:disabled):hover {
  border-color: rgba(233, 201, 143, .74);
  background: rgba(255, 253, 251, .16);
}
.calendar-day.is-muted {
  opacity: .18;
}
.calendar-day.is-full {
  color: rgba(255, 253, 251, .36);
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.10) 0 2px, transparent 2px 7px);
}
.calendar-day.is-selected {
  border-color: #fff8ed;
  background: var(--framboise);
  color: white;
  box-shadow: 0 0 0 2px rgba(255, 253, 251, .12);
}
.calendar-day:disabled {
  cursor: not-allowed;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255, 253, 251, .76);
  font-size: .88rem;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.calendar-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.open-dot { background: rgba(255, 253, 251, .62); }
.full-dot { background: rgba(233, 201, 143, .42); }
.selected-dot { background: var(--framboise); }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 22px clamp(16px, 4vw, 52px);
  border-top: 1px solid rgba(201, 169, 106, .3);
  background: var(--cocoa);
  color: white;
}
.site-footer p { margin: 0; }
.build-badge {
  color: var(--blush);
  font-size: .9rem;
}

[data-scroll-soft],
.portfolio-card,
.process-steps article {
  transform: translateY(22px);
  opacity: 0;
  transition: transform 900ms ease, opacity 900ms ease;
}
.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }
  .nav-links {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .hero,
  .section-grid {
    grid-template-columns: 1fr;
  }
  .hero-stage {
    position: relative;
    top: auto;
    min-height: auto;
  }
  #naissance-canvas,
  .webgl-fallback {
    width: min(94vw, 640px);
  }
  .hero { background: #fffdfb; }
  .cinematic-reel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .portfolio-card,
  .portfolio-card:nth-child(6n + 1),
  .portfolio-card:nth-child(8n + 4),
  .portfolio-card:nth-child(7n + 2) {
    grid-column: span 6;
  }
  .process-steps,
  .policy-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .availability-panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    gap: 10px;
    padding: 10px 12px;
  }
  .brand strong { font-size: 1.05rem; }
  .language-toggle button { min-width: 44px; }
  .hero { padding-top: 28px; }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.34rem; }
  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }
  .button { width: 100%; }
  .cinematic-reel { grid-template-columns: 1fr; }
  .cinematic-reel figcaption { min-height: 44px; }
  .display-case,
  .process-steps,
  .policy-band,
  .form-grid,
  .flavour-field {
    grid-template-columns: 1fr;
  }
  .cake-form { padding: 16px; }
  .calendar-shell { padding: 10px; }
  .calendar-weekdays,
  .calendar-grid { gap: 4px; }
  .calendar-day { font-size: .8rem; }
  .display-case img:last-child { transform: none; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portfolio-card,
  .portfolio-card:nth-child(6n + 1),
  .portfolio-card:nth-child(8n + 4),
  .portfolio-card:nth-child(7n + 2) {
    grid-column: span 2;
  }
  .stage-caption {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* ===== LA NAISSANCE — film au défilement ===== */
.hero-visuel{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}
.naissance-film{position:relative;height:560vh;background:#171310;padding:0!important}
.film-sticky{position:sticky;top:0;height:100vh;overflow:hidden}
.film-frame{position:absolute;inset:0;margin:0;opacity:0;transform:scale(1.06);
  transition:opacity .18s linear;will-change:opacity,transform}
.film-frame img{width:100%;height:100%;object-fit:cover;display:block}
.film-veil{position:absolute;inset:0;z-index:4;pointer-events:none;
  background:linear-gradient(180deg,rgba(23,19,16,.28),transparent 30%,transparent 62%,rgba(23,19,16,.55))}
.film-caption{position:absolute;left:clamp(18px,6vw,64px);bottom:clamp(64px,11vh,120px);z-index:5;color:#faf5ec;
  max-width:min(520px,80vw);text-shadow:0 2px 18px rgba(0,0,0,.45)}
.film-kicker{font-size:11px;letter-spacing:.34em;text-transform:uppercase;color:#e9c98f;margin:0 0 10px}
.film-step{font-variant-numeric:tabular-nums;font-size:13px;letter-spacing:.22em;color:#d8c9b4;margin:0 0 6px}
.film-text{font-family:"Cormorant Garamond","Playfair Display",Georgia,serif;font-size:clamp(24px,4.6vw,40px);
  line-height:1.15;margin:0;transition:opacity .22s ease}
.film-progress{position:absolute;left:0;right:0;bottom:0;height:3px;background:rgba(250,245,236,.16);z-index:6}
.film-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#e9c98f,#c9906a)}
.film-static{height:auto}
.film-static .film-sticky{position:relative;height:auto;display:grid;gap:12px;padding:24px 0}
@media (prefers-reduced-motion: reduce){.film-frame{transition:none}}

/* héro typographique compact — on entre tout de suite dans le film */
.hero-actions { justify-content: center; }
.hero .lede { margin-left: auto; margin-right: auto; }
