/* ═══════════════════════════════════════════════════════════
   MOULE « ÉLÉGANT ET DOUX » — CarterWebsite
   NE PAS MODIFIER en dehors des tokens :root ci-dessous.
   Thème : <html data-theme="dark"> (clair par défaut).
   Accent : --accent / --accent-ink.
   ═══════════════════════════════════════════════════════════ */

:root {
  --accent: #cfe3c8;              /* ← ACCENT (bouton, surlignage, bande devise) */
  --accent-ink: #1f1c18;          /* ← texte posé SUR l'accent */

  --bg: #f7f4ef;
  --surface: #fffdf9;
  --ink-rgb: 31, 28, 24;
  --ink: rgb(var(--ink-rgb));
  --muted: rgba(var(--ink-rgb), 0.58);
  --line: rgba(var(--ink-rgb), 0.14);
  --shade: 20, 18, 15;

  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --slow: 1.4s;
  --gutter: clamp(16px, 5vw, 72px);
}
html[data-theme="dark"] {
  --bg: #13120f;
  --surface: #1c1a16;
  --ink-rgb: 243, 239, 231;
  --muted: rgba(var(--ink-rgb), 0.6);
  --line: rgba(var(--ink-rgb), 0.16);
}

/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, ol { margin: 0; padding: 0; }
.kicker {
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase;
}
.muted { color: var(--muted); }
.h2 {
  font-family: var(--serif); font-weight: 300; line-height: 1.05;
  font-size: clamp(40px, 6vw, 84px); letter-spacing: -.01em;
}
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 34em; }
em { font-style: italic; }

.btn {
  display: inline-block; padding: 16px 34px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--sans); font-size: 13px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.35); }

/* ─── VOILE D'OUVERTURE ─── */
.veil {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--bg);
  transition: transform 1.3s var(--ease);
}
.veil-name {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(34px, 5vw, 64px); letter-spacing: .12em;
  opacity: 0; transition: opacity 1s var(--ease), letter-spacing 1.6s var(--ease);
}
.veil.show .veil-name { opacity: 1; letter-spacing: .02em; }
.veil.lift { transform: translateY(-100%); }
.veil.lift .veil-name { opacity: 0; transition-duration: .5s; }
html:not(.js) .veil { display: none; }

/* ─── BARRE ─── */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  color: #fff;
  transition: transform .8s var(--ease), background-color .6s, color .6s, padding .6s var(--ease), border-color .6s;
  border-bottom: 1px solid transparent;
}
.bar.solid {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--ink); padding-top: 14px; padding-bottom: 14px; border-color: var(--line);
}
.bar.hide { transform: translateY(-100%); }
.bar-name {
  font-family: var(--serif); font-size: 24px; font-weight: 400; font-style: italic;
  text-decoration: none; white-space: nowrap;
}
.bar-nav { display: flex; gap: 34px; }
.bar-nav a, .bar-cta {
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  position: relative;
}
.bar-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.bar-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.bar-cta {
  padding: 10px 20px; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap;
  transition: background-color .5s, color .5s, border-color .5s;
}
.bar-cta:hover, .bar.solid .bar-cta { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ─── 1 · ACCROCHE ─── */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; display: flex; align-items: flex-end;
  color: #fff; background: #111;
}
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.14); transition: transform 3.2s var(--ease);
}
body.ready .hero-media img { transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(var(--shade), .72) 0%, rgba(var(--shade), .25) 45%, rgba(var(--shade), .15) 100%);
}
.hero-copy {
  position: relative; z-index: 1; width: 100%;
  padding: 0 var(--gutter) clamp(56px, 11vh, 120px);
}
.hero-kicker { margin-bottom: 22px; opacity: .85; }
.hero-title {
  font-family: var(--serif); font-weight: 300; line-height: 1;
  font-size: clamp(46px, 8.4vw, 132px); letter-spacing: -.015em; max-width: 13em;
}
.hero-title .line { display: block; }
.hero-title em { font-weight: 300; }
.hero-btn { margin-top: 38px; }
.hero-scroll {
  position: absolute; right: var(--gutter); bottom: clamp(56px, 11vh, 120px);
  width: 1px; height: 72px; background: rgba(255,255,255,.3); overflow: hidden;
}
.hero-scroll::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff;
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { to { top: 100%; } }

/* mots masqués qui montent */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; }
.js .w > span {
  transform: translateY(105%);
  transition: transform var(--slow) var(--ease);
  transition-delay: calc(var(--i) * 60ms + var(--base, 0ms));
}
.js .hero-title { --base: 150ms; }
.js body.ready .hero-title .w > span, .js .split.in .w > span { transform: none; }
.js .hero-kicker, .js .hero-btn {
  opacity: 0; transform: translateY(16px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.js .hero-btn { transition-delay: .7s; }
.js body.ready .hero-kicker, .js body.ready .hero-btn { opacity: .85; transform: none; }
.js body.ready .hero-btn { opacity: 1; }

/* ─── APPARITIONS GÉNÉRIQUES ─── */
.js .rv {
  opacity: 0; transform: translateY(28px);
  transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s);
}
.js .rv.in { opacity: 1; transform: none; }
/* le rideau s'applique à l'enveloppe intérieure, JAMAIS à l'élément observé
   (un élément entièrement rogné est vu comme invisible et ne se déclenche pas) */
.js .reveal-img .pic-in, .js .reveal-img .card-img, .js .reveal-img .tile-img {
  clip-path: inset(100% 0 0 0); transition: clip-path 1.6s var(--ease) var(--d, 0s);
}
.js .reveal-img.in .pic-in, .js .reveal-img.in .card-img, .js .reveal-img.in .tile-img { clip-path: inset(0 0 0 0); }
.js .reveal-img img { transform: scale(1.12); transition: transform 2.2s var(--ease) var(--d, 0s); }
.js .reveal-img.in img { transform: none; }

/* surlignage à l'accent qui se trace */
.mark {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 88%; background-size: 100% 38%;
  padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.js .mark { background-size: 0% 38%; transition: background-size 1.4s var(--ease) .5s; }
.js .mark.in { background-size: 100% 38%; }
html[data-theme="dark"] .mark { color: var(--accent-ink); background-size: 100% 100%; background-position: 0 50%; }
html.js[data-theme="dark"] .mark { background-size: 0% 100%; }
html.js[data-theme="dark"] .mark.in { background-size: 100% 100%; }

/* ─── 2 · POSITIONNEMENT ─── */
.statement { padding: clamp(110px, 20vh, 220px) var(--gutter); text-align: center; }
.statement-text {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(32px, 5vw, 72px); line-height: 1.12; max-width: 16em; margin: 0 auto;
}

/* ─── 3 · DÉMARCHE ─── */
.manifesto {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 110px); align-items: center;
  padding: clamp(40px, 8vh, 100px) var(--gutter) clamp(110px, 18vh, 200px);
}
.manifesto-copy .kicker { margin-bottom: 28px; color: var(--muted); }
.manifesto-text {
  font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.9vw, 42px); line-height: 1.3;
}
.manifesto-pics { position: relative; height: clamp(420px, 60vh, 640px); }
.pic { position: absolute; overflow: hidden; border-radius: 4px; will-change: transform; }
.pic-in, .pic img { width: 100%; height: 100%; }
.pic img { object-fit: cover; }
.pic-a { width: 62%; height: 72%; left: 0; top: 0; }
.pic-b { width: 50%; height: 58%; right: 0; bottom: 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }

/* ─── 4 · PREUVE ─── */
.proof { padding: clamp(90px, 14vh, 160px) var(--gutter); background: var(--surface); }
.proof-head { display: grid; gap: 18px; max-width: 900px; margin-bottom: clamp(56px, 9vh, 100px); }
.masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 40px); align-items: start; }
.m-col { display: grid; gap: clamp(18px, 2.6vw, 40px); will-change: transform; }
.m-col:nth-child(2) { margin-top: 12vh; }
.m-col:nth-child(3) { margin-top: 5vh; }
.card-img { overflow: hidden; border-radius: 4px; }
.card-img img { width: 100%; height: auto; transition: transform 1.6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card figcaption, .tile figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-top: 14px;
}
.cap-title { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.card .kicker, .tile .kicker { color: var(--muted); font-size: 11px; text-align: right; }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(18px, 2.4vw, 36px); }
.tile:nth-child(1) { grid-column: 1 / span 7; }
.tile:nth-child(2) { grid-column: 8 / span 5; }
.tile:nth-child(3) { grid-column: 1 / span 5; }
.tile:nth-child(4) { grid-column: 6 / span 7; }
.tile-img { overflow: hidden; border-radius: 4px; background: var(--bg); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.t-big .tile-img { aspect-ratio: 3 / 2; }
.t-tall .tile-img { aspect-ratio: 600 / 820; }
.tile:nth-child(1) .tile-img, .tile:nth-child(4) .tile-img { aspect-ratio: 3 / 2; }
.tile:nth-child(2), .tile:nth-child(3) { align-self: start; }

/* ─── 5 · DEVISE ─── */
.motto {
  background: var(--accent); color: var(--accent-ink);
  padding: clamp(90px, 16vh, 180px) var(--gutter);
  display: grid; gap: clamp(28px, 6vh, 70px);
}
.mword { --k: 1; display: grid; grid-template-columns: 70px 1fr; align-items: baseline; column-gap: 20px; }
.mnum { opacity: calc(.4 + var(--k) * .6); }
.mw {
  font-family: var(--serif); font-style: italic; font-weight: 300; line-height: .95;
  font-size: clamp(56px, 11vw, 176px); letter-spacing: -.02em;
  opacity: var(--k); transform: translateX(calc((1 - var(--k)) * -24px));
}
.mh {
  grid-column: 2; font-size: clamp(15px, 1.3vw, 19px); margin-top: 10px;
  opacity: calc(var(--k) * var(--k));
}

/* ─── 6-7 · PROCESSUS ─── */
.steps { padding: clamp(110px, 18vh, 200px) 0 clamp(90px, 14vh, 160px); }
.steps-intro {
  font-family: var(--serif); font-weight: 300; text-align: center;
  font-size: clamp(44px, 7vw, 110px); line-height: 1; padding: 0 var(--gutter);
  margin-bottom: clamp(48px, 8vh, 90px);
}
.frame { position: relative; height: 88vh; min-height: 420px; overflow: hidden; clip-path: inset(12% 16% round 34px); }
.frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.step-list {
  list-style: none; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 64px); padding: clamp(70px, 12vh, 130px) var(--gutter) 0;
}
.step-num { font-family: var(--serif); font-style: italic; font-size: clamp(54px, 5vw, 76px); line-height: 1; font-weight: 300; }
.step-rule { display: block; height: 1px; background: var(--line); margin: 22px 0 18px; position: relative; overflow: hidden; }
.step-rule::after {
  content: ''; position: absolute; inset: 0; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) calc(var(--d, 0s) + .3s);
}
.step.in .step-rule::after, .reduced .step-rule::after, html:not(.js) .step-rule::after { transform: scaleX(1); }
.step-name { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.4vw, 36px); margin: 8px 0 12px; line-height: 1.1; }
.step-desc { color: var(--muted); max-width: 26em; }
.steps-cta { text-align: center; margin-top: clamp(60px, 10vh, 110px); }

/* ─── 8 · PREUVE SOCIALE ─── */
.quote { padding: clamp(100px, 16vh, 180px) var(--gutter); background: var(--surface); }
.quote-fig { max-width: 1040px; margin: 0 auto; position: relative; }
.q-mark {
  display: block; font-family: var(--serif); font-size: clamp(120px, 16vw, 220px);
  line-height: .6; height: .45em; color: var(--accent);
}
html:not([data-theme="dark"]) .q-mark { -webkit-text-stroke: 1px rgba(var(--ink-rgb), .25); }
.q-text {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(30px, 3.8vw, 56px); line-height: 1.18;
}
.q-sign { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 40px; }
.q-rule { width: 64px; height: 1px; background: var(--ink); }
.q-author { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; }
.q-figure {
  margin-top: 46px; font-family: var(--serif); font-weight: 300; line-height: 1;
  font-size: clamp(64px, 8vw, 120px); display: flex; align-items: baseline; gap: .06em;
}
.q-unit { font-size: .38em; margin-left: .12em; color: var(--muted); }
.js .q-figure { transition-delay: .4s; }

/* ─── 9 · OBJECTIONS ─── */
.objections { padding: clamp(110px, 18vh, 200px) 0 clamp(70px, 12vh, 130px); overflow: hidden; }
.obj-text {
  padding: 0 var(--gutter); text-align: center; margin: 0 auto; max-width: 18em;
  font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 4.8vw, 70px); line-height: 1.15;
}
.obj { transition: opacity 1.2s var(--ease) var(--d, 0s), filter 1.2s var(--ease) var(--d, 0s); }
.js .obj { opacity: .12; filter: blur(4px); }
.js .obj.in { opacity: 1; filter: none; }
.obj-fin { display: block; font-style: italic; margin-top: .25em; }
.marquee { margin-top: clamp(70px, 12vh, 130px); overflow: hidden; }
.mq-track { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.mq-track img { height: clamp(150px, 22vw, 260px); width: auto; border-radius: 4px; object-fit: cover; aspect-ratio: 4 / 5; }
.mq-track img:nth-child(3n + 2) { aspect-ratio: 3 / 2; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 9px)); } }

/* ─── 10 · CONVERSION ─── */
.footer { padding: clamp(100px, 16vh, 180px) var(--gutter) 34px; text-align: center; border-top: 1px solid var(--line); }
.footer > .kicker { color: var(--muted); }
.f-mail {
  display: inline-block; margin: 26px 0 22px; text-decoration: none;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(30px, 5.2vw, 80px); line-height: 1.1; overflow-wrap: anywhere;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 100% 100%; background-size: 0% 1px;
  transition: background-size .9s var(--ease);
}
.f-mail:hover { background-size: 100% 1px; background-position: 0 100%; }
.f-name {
  font-family: var(--serif); font-weight: 300; line-height: .9; letter-spacing: -.03em;
  font-size: clamp(64px, 15vw, 250px); margin: clamp(70px, 12vh, 130px) 0 clamp(30px, 5vh, 60px);
  white-space: nowrap; overflow: hidden; text-overflow: clip;
}
.f-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line); text-align: left;
}
.f-bottom .kicker { font-size: 11px; }
.f-bottom a { text-decoration: none; }
.f-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sep { display: inline-block; width: 22px; }

/* ─── MOBILE ─── */
@media (max-width: 900px) {
  .manifesto { grid-template-columns: 1fr; }
  .manifesto-pics { height: 420px; }
  .step-list { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile:nth-child(n) { grid-column: auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bar { padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .bar-nav { display: none; }
  .bar-name { font-size: 21px; overflow: hidden; text-overflow: ellipsis; }
  .bar-cta { padding: 9px 16px; font-size: 11px; letter-spacing: .16em; }
  .hero-scroll { display: none; }
  .masonry { grid-template-columns: 1fr 1fr; }
  .m-col { display: contents; }
  .m-col:nth-child(n) { margin-top: 0; }
  .masonry .card:nth-child(even) { transform: translateY(0); }
  .card figcaption { flex-direction: column; gap: 2px; }
  .card .kicker { text-align: left; }
  .cap-title { font-size: 20px; }
  .mword { grid-template-columns: 1fr; }
  .mnum { margin-bottom: 6px; }
  .mh { grid-column: 1; }
  .frame { height: 70vh; }
  .manifesto-pics { height: 340px; }
  .f-bottom { flex-direction: column; gap: 10px; }
}

/* ─── MOUVEMENTS RÉDUITS : tout est visible, rien ne bouge ─── */
.reduced .veil { display: none; }
.reduced .w > span, .reduced .rv, .reduced .obj { transform: none !important; opacity: 1 !important; filter: none !important; }
.reduced .reveal-img .pic-in, .reduced .reveal-img .card-img, .reduced .reveal-img .tile-img { clip-path: none !important; }
.reduced .reveal-img img, .reduced .hero-media img { transform: none !important; }
.reduced .mark { background-size: 100% 38% !important; transition: none; }
html.reduced[data-theme="dark"] .mark { background-size: 100% 100% !important; }
.reduced .frame { clip-path: none; }
.reduced .frame img { transform: none; }
.reduced .mq-track { animation: none; }
.reduced .marquee { overflow-x: auto; }
.reduced .hero-kicker, .reduced .hero-btn { opacity: 1 !important; transform: none !important; }
.reduced .hero-scroll::after { animation: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
