/* ========== @font-face auto-hébergés (latin range, Fraunces + Cormorant Garamond + Inter + JetBrains Mono) ========== */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-italic-25e309-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-italic-25e309-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/cormorant-garamond-italic-25e309-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-italic-428e5f-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-fc6efb-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-normal-567244-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-normal-567244-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-normal-567244-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-normal-480c06-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-normal-480c06-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- design tokens ---------- */
:root {
  /* palette: ivoire (default) — moodboard "Douceur & Promesse" */
  --bg:        #FDF8F3;   /* crème */
  --bg-soft:   #F5EDE2;
  --paper:     #FFFBF5;
  --ink:       #3A3530;   /* brun nuit */
  --ink-soft:  #6B5C52;   /* brun moyen */
  --ink-mute:  #7A6E62;   /* brun pâle (durci pour WCAG AA 4.5:1 sur paper) */
  --rule:      #E5D9CA;
  --accent:    #C07A5A;   /* terracotta */
  --accent-d:  #8B5A40;   /* terracotta foncé */
  --secondary: #8FAF8A;   /* sauge */
  --secondary-d: #4A6E45; /* sauge foncé */
  --peach:     #F5C4B3;
  --peach-d:   #E8A080;
  --gold:      #C9A97A;
  --gold-l:    #EDD9B8;

  --serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1320px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-pad-y: clamp(72px, 9vw, 140px);

  --ease-out:  cubic-bezier(.2,.7,.2,1);
  --ease-in-out: cubic-bezier(.65,.0,.35,1);
}

[data-palette="boheme"] {
  --bg:        #EFE3D2;
  --bg-soft:   #E4D5BF;
  --paper:     #F6ECDA;
  --ink:       #2A201A;
  --ink-soft:  #4A3D33;
  --ink-mute:  #8B7B6B;
  --rule:      #D2BFA1;
  --accent:    #A85A3F;
  --accent-d:  #7A4029;
  --secondary: #6E7558;
}
[data-palette="encre"] {
  --bg:        #ECE7DC;
  --bg-soft:   #DED6C5;
  --paper:     #F5F1E7;
  --ink:       #16140F;
  --ink-soft:  #2E2A22;
  --ink-mute:  #6E665B;
  --rule:      #C9BFA8;
  --accent:    #A87C4A;     /* doré chaud */
  --accent-d:  #7A5630;
  --secondary: #2E2A22;
}

[data-density="compact"]  { --section-pad-y: clamp(56px, 6.5vw, 96px); }
[data-density="comfy"]    { --section-pad-y: clamp(96px, 11vw, 180px); }

[data-typepair="garamond"] {
  --serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
::selection { background: var(--accent); color: var(--paper); }

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

/* ---------- film grain on bg ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.5'/></svg>");
  opacity: .12;
  mix-blend-mode: multiply;
  z-index: 1;
}

/* ---------- container + section ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}
.section {
  position: relative;
  padding: var(--section-pad-y) 0;
}
.section + .section { padding-top: 0; }

/* ---------- typography utilities ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.display {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  letter-spacing: -0.02em;
  line-height: 0.96;
  color: var(--ink);
  margin: 0;
}
.display em {
  font-style: italic;
  font-weight: 350;
}
.h2 {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: "opsz" 96, "SOFT" 60;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 0;
}
.h2 em { font-style: italic; }
.lede {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 36ch;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  appearance: none;
  border: 1px solid var(--bg);
  background: var(--bg);
  color: var(--fg);
  padding: 14px 22px 13px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .005em;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .35s var(--ease-out), background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out);
  position: relative;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  transition: transform .35s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary { --bg: var(--ink); --fg: var(--paper); }
.btn-primary:hover { --bg: var(--accent-d); }
.btn-ghost {
  --bg: var(--paper); --fg: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { --bg: var(--ink); --fg: var(--paper); }
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding-bottom: 2px;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- header ---------- */
.hd {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease-out), padding .3s var(--ease-out);
}
.hd[data-scrolled="true"] {
  border-bottom-color: var(--rule);
  padding: 10px 0;
}
.hd-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.hd-logo {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex; align-items: baseline; gap: 4px;
}
.hd-logo .infty {
  font-style: normal;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15em;
  letter-spacing: -0.06em;
  display: inline-block;
  transform: translateY(0.04em) scaleX(1.08);
  transform-origin: center 60%;
  color: var(--accent);
  margin-left: 0.02em;
}
.hd-logo .em-m {
  color: var(--accent);
}
.footer-mark .infty {
  font-style: normal;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12em;
  letter-spacing: -0.06em;
  display: inline-block;
  color: var(--accent);
  transform: translateY(0.06em) scaleX(1.1);
  transform-origin: center 60%;
  margin-left: 0.01em;
}
.footer-mark .em-m {
  color: var(--accent);
}
.freddoo-mark { white-space: nowrap; }
.freddoo-mark .em-m {
  color: var(--accent);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  letter-spacing: -0.02em;
}
.freddoo-mark .infty {
  font-style: normal;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.12em;
  letter-spacing: -0.06em;
  display: inline-block;
  color: var(--accent);
  transform: translateY(0.05em) scaleX(1.08);
  transform-origin: center 60%;
  margin-left: 0.01em;
}
.hd-logo .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-bottom: 4px;
}
.hd-nav { display: flex; align-items: center; gap: 4px; }
.hd-nav a {
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s, background .2s;
}
.hd-nav a:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.hd-nav .nav-cta {
  margin-left: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
}
.hd-nav .nav-cta:hover { background: var(--accent-d); }
.hd-burger { display: none; }
.hd-mobile { display: none; }

@media (max-width: 820px) {
  .hd-nav { display: none; }
  .hd-burger {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--rule);
    background: var(--paper);
    border-radius: 999px;
  }
  .hd-burger span {
    width: 16px; height: 1.5px; background: var(--ink);
    position: relative;
  }
  .hd-burger span::before, .hd-burger span::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: var(--ink);
  }
  .hd-burger span::before { top: -5px; }
  .hd-burger span::after  { top:  5px; }
  .hd-mobile {
    position: fixed; inset: 64px 0 0; z-index: 49;
    background: var(--bg);
    padding: 32px var(--gutter);
    display: flex; flex-direction: column; gap: 8px;
    transform: translateY(-110%);
    transition: transform .45s var(--ease-in-out);
  }
  .hd-mobile { display: flex; }
  .hd-mobile[data-open="true"] { transform: translateY(0); }
  .hd-mobile a {
    font-family: var(--serif);
    font-size: 32px;
    padding: 14px 0;
    border-bottom: 1px solid var(--rule);
  }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 6vw, 96px); padding-bottom: clamp(48px, 6vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-eyebrow { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(48px, 7.5vw, 116px);
  margin-bottom: 28px;
}
.hero h1 .line { display: block; }
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 38ch;
  margin: 0 0 12px;
}
.hero-features {
  display: flex; flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 36px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.hero-features li { list-style: none; }
.hero-features li + li::before {
  content: "·";
  margin-right: 18px;
  color: var(--accent);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.hero-meta .pin {
  width: 6px; height: 6px; border-radius: 50%; background: var(--secondary);
}

.hero-img-wrap { position: relative; perspective: 1200px; }
.hero-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 1px 0 rgba(0,0,0,.05), 0 40px 80px -30px rgba(26,24,20,.4);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform .6s var(--ease-out);
}
.hero-img-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
}
.hero-img-side {
  position: absolute;
  bottom: -40px; left: -36px;
  width: 38%;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  margin: 0;
  box-shadow: 0 30px 60px -30px rgba(26,24,20,.45);
  border: 4px solid var(--paper);
  transform: rotate(-6deg);
  z-index: 2;
}
.hero-img-side img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.88); }
@media (max-width: 820px) {
  .hero-img-side { width: 32%; bottom: -20px; left: -12px; }
}

/* petals */
.hero-petals {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.petal {
  position: absolute;
  top: -20px;
  width: 14px; height: 18px;
  background: radial-gradient(ellipse at 50% 30%, var(--peach) 0%, var(--accent) 80%);
  border-radius: 70% 30% 70% 30% / 50% 60% 40% 50%;
  opacity: .4;
  animation: petal-fall linear infinite;
  filter: blur(.3px);
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, -20px, 0) rotate(0deg); }
  50%  { transform: translate3d(40px, 50vh, 0) rotate(180deg); }
  100% { transform: translate3d(-20px, 110vh, 0) rotate(360deg); }
}
.hero > .container { position: relative; z-index: 1; }
.hero-img-inner {
  position: absolute; inset: -8%;
  background: linear-gradient(135deg, #C9B59A 0%, #8E7A5F 60%, #5C4D3A 100%);
  transition: transform .8s var(--ease-out);
}
.hero-img-mask {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 30% 30%, rgba(255,240,220,.5), transparent 60%),
    radial-gradient(140% 100% at 80% 70%, rgba(80,60,40,.5), transparent 70%);
  mix-blend-mode: overlay;
}
.hero-img-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence baseFrequency='.65' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: .35;
  mix-blend-mode: multiply;
}
.hero-img-label {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,247,235,.85);
  background: rgba(26,24,20,.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 2px;
}
.hero-img-tag {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--paper);
  background: rgba(26,24,20,.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 999px;
}
.hero-img-stamp {
  position: absolute;
  bottom: -28px; right: -10px;
  width: 130px; height: 130px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.2;
  padding: 14px;
  transform: rotate(-8deg);
  box-shadow: 0 8px 28px rgba(0,0,0,.08);
}
.hero-img-stamp b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-style: normal;
  font-size: 22px;
  color: var(--accent-d);
  letter-spacing: -.01em;
  margin-bottom: 2px;
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img { aspect-ratio: 3/4; max-width: 480px; margin: 0 auto; }
  .hero-img-stamp { width: 100px; height: 100px; font-size: 11px; bottom: -16px; right: 8px; }
  .hero-img-stamp b { font-size: 18px; }
}

/* hero alt layout: full-bleed cinematic */
.hero[data-layout="cinema"] .hero-grid {
  grid-template-columns: 1fr;
  position: relative;
  min-height: 80vh;
  align-items: end;
  padding: clamp(40px, 6vw, 96px) 0;
}
.hero[data-layout="cinema"] .hero-img {
  position: absolute; inset: 0;
  aspect-ratio: auto;
  border-radius: 0;
  z-index: 0;
  margin-left: calc(var(--gutter) * -1);
  margin-right: calc(var(--gutter) * -1);
}
.hero[data-layout="cinema"] .hero-text {
  position: relative; z-index: 1;
  max-width: 22ch;
  color: var(--paper);
}
.hero[data-layout="cinema"] h1,
.hero[data-layout="cinema"] .hero-tagline { color: var(--paper); }
.hero[data-layout="cinema"] .hero-features { color: rgba(250,246,238,.75); }
.hero[data-layout="cinema"] .hero-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 100%);
}
.hero[data-layout="cinema"] .hero-img-stamp,
.hero[data-layout="cinema"] .hero-img-label,
.hero[data-layout="cinema"] .hero-img-tag { display: none; }
.hero[data-layout="cinema"] .btn-ghost { color: var(--paper); border-color: var(--paper); }
.hero[data-layout="cinema"] .btn-ghost:hover { background: var(--paper); color: var(--ink); }

/* hero centered */
.hero[data-layout="centered"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  align-items: center;
}
.hero[data-layout="centered"] .hero-text { max-width: 22ch; margin: 0 auto; }
.hero[data-layout="centered"] .hero-tagline { margin-left: auto; margin-right: auto; }
.hero[data-layout="centered"] .hero-features { justify-content: center; }
.hero[data-layout="centered"] .hero-cta { justify-content: center; }
.hero[data-layout="centered"] .hero-img { margin-top: 56px; aspect-ratio: 16/9; max-width: 100%; }

/* ---------- diff cards ---------- */
.diff {
  background: color-mix(in oklab, var(--secondary) 14%, var(--bg) 86%);
  padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y);
  position: relative;
}
.diff .section { padding: 0; }
.diff-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.diff-card {
  background: var(--paper);
  padding: clamp(28px, 3vw, 44px);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  min-height: 360px;
  transition: background .35s var(--ease-out);
}
.diff-card:hover { background: var(--bg); }
.diff-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-mute);
}
.diff-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--peach) 35%, var(--paper));
  border: 1px solid var(--rule);
  color: var(--accent-d);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
  transition: background .35s var(--ease-out), color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.diff-card:hover .diff-icon { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.diff-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.diff-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  margin: 0;
  letter-spacing: -.012em;
  line-height: 1.1;
}
.diff-card h3 em { font-style: italic; }
.diff-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.diff-card-foot {
  margin-top: auto;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap;
}
.diff-card-foot b {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--accent-d);
  text-transform: none;
  letter-spacing: -.01em;
}

@media (max-width: 820px) {
  .diff-head { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
}

/* ---------- process / comment ça marche ---------- */
.process { padding: var(--section-pad-y) 0; }
.process-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: clamp(48px, 6vw, 80px);
  position: relative;
}
.process-step {
  padding: 32px 24px;
  border-top: 1px solid var(--ink);
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 32px; bottom: 32px;
  width: 1px; background: var(--rule);
}
.process-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.02em;
  position: relative;
}
.process-grid {
  position: relative;
}
.process-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  pointer-events: none;
  z-index: 0;
}
.process-line svg { width: 100%; height: 80px; overflow: visible; }
.process-line path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}
.process-line.in-view path { stroke-dashoffset: 0; }
.process-step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  margin: 0;
  letter-spacing: -.01em;
}
.process-step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 32ch;
}
.process-step time {
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
@media (max-width: 820px) {
  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-step:not(:last-child)::after { display: none; }
  .process-line { display: none; } /* SVG horizontal incohérent en grille verticale */
}

/* ---------- portfolio ---------- */
.portfolio { background: var(--bg-soft); color: var(--ink); padding: var(--section-pad-y) 0; position: relative; }
.portfolio .eyebrow { color: var(--ink-mute); }
.portfolio .h2 { color: var(--ink); }
.portfolio-head {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.portfolio-meta {
  display: grid; grid-template-columns: repeat(2, auto);
  gap: 18px 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.portfolio-meta dt { font-weight: 500; }
.portfolio-meta dd {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  text-transform: none;
  letter-spacing: -.005em;
  color: var(--ink);
}

.portfolio-stage {
  position: relative;
  padding: clamp(32px, 6vw, 80px) clamp(20px, 4vw, 60px);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 30px 60px -40px rgba(26,24,20,.18);
}
.portfolio-devices {
  position: relative;
  display: flex; align-items: flex-end; justify-content: center; gap: clamp(20px, 4vw, 60px);
  min-height: 460px;
  perspective: 1400px;
}
.laptop, .phone {
  transform-origin: center bottom;
  will-change: transform;
  cursor: pointer;
}
.laptop:focus-visible, .phone:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 8px;
  border-radius: 14px;
}
/* laptop mockup */
.laptop {
  width: min(640px, 92%);
  aspect-ratio: 16/10;
  background: #0e0d0a;
  border-radius: 14px 14px 4px 4px;
  padding: 14px 14px 20px;
  border: 1px solid #2e2a22;
  position: relative;
  flex-shrink: 0;
  transition: transform .8s var(--ease-out);
}
.laptop::after {
  content: ""; position: absolute;
  bottom: -8px; left: -8%; right: -8%;
  height: 8px;
  background: linear-gradient(180deg, #1a1814, #0a0908);
  border-radius: 0 0 12px 12px;
}
.laptop-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.laptop-bar {
  height: 22px;
  background: var(--bg-soft);
  display: flex; align-items: center;
  padding: 0 10px;
  gap: 6px;
  border-bottom: 1px solid var(--rule);
}
.laptop-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.laptop-bar i:nth-child(1) { background: #d27a6a; }
.laptop-bar i:nth-child(2) { background: #d8a85a; }
.laptop-bar i:nth-child(3) { background: #7ea676; }
.laptop-bar .url {
  margin-left: 16px;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-mute);
}

/* phone mockup */
.phone {
  width: min(220px, 32vw);
  aspect-ratio: 9/19;
  background: #0e0d0a;
  border-radius: 26px;
  padding: 8px;
  border: 1px solid #2e2a22;
  position: relative;
  flex-shrink: 0;
  margin-bottom: -32px;
  transform: translateY(20px);
  transition: transform .8s var(--ease-out);
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 16px;
  background: #0e0d0a;
  border-radius: 999px;
  z-index: 2;
}

/* mockup site content (chaetfred.myweddoo.ch) */
.mock {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  font-family: var(--serif);
  background:
    radial-gradient(120% 80% at 0% 0%, #f3e8d4 0%, transparent 60%),
    var(--paper);
  padding: 24px 28px;
}
/* screenshot réel du site chaetfred.myweddoo.ch */
.mock-screenshot {
  padding: 0;
  overflow: hidden;
}
.mock-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.portfolio-foot {
  margin-top: clamp(40px, 5vw, 60px);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.portfolio-foot p { color: var(--ink-soft) !important; }
.portfolio-foot a {
  color: var(--ink) !important;
  border-bottom-color: var(--ink-mute) !important;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper);
  border-bottom: 1px solid rgba(250,246,238,.4);
  padding-bottom: 4px;
  transition: border-color .25s, color .25s;
}
.portfolio-foot a:hover { color: var(--accent); border-color: var(--accent); }
.portfolio-foot a .arrow { display: inline-block; transition: transform .35s var(--ease-out); margin-left: 6px; }
.portfolio-foot a:hover .arrow { transform: translate(3px, -3px); }

/* ─── device-zoom : hover hint sous chaque appareil ──────────────────── */
.device-zoom-hint {
  position: absolute;
  bottom: -28px; left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  opacity: 0;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}
.laptop:hover .device-zoom-hint,
.phone:hover .device-zoom-hint,
.laptop:focus-visible .device-zoom-hint,
.phone:focus-visible .device-zoom-hint {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── device-zoom : overlay fullscreen FLIP avec iframe chaetfred ────── */
.device-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(26, 24, 20, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background .45s var(--ease-out), backdrop-filter .45s var(--ease-out);
}
.device-overlay.state-opening,
.device-overlay.state-open {
  background: rgba(26, 24, 20, 0.78);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
}
.device-overlay.state-closing {
  background: rgba(26, 24, 20, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
}
.device-overlay-close {
  position: absolute;
  top: 24px; right: 24px;
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 251, 245, 0.10);
  border: 1px solid rgba(255, 251, 245, 0.22);
  color: rgba(255, 251, 245, 0.92);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s var(--ease-out), transform .25s var(--ease-out), border-color .25s var(--ease-out);
  opacity: 0;
  transform: scale(.85);
}
.device-overlay.state-open .device-overlay-close {
  opacity: 1;
  transform: scale(1);
  transition-delay: .15s;
}
.device-overlay-close:hover {
  background: rgba(255, 251, 245, 0.18);
  border-color: rgba(255, 251, 245, 0.4);
  transform: scale(1.05);
}
/* bouton "Voir le site" en bas à droite de l'overlay */
.device-overlay-visit {
  position: absolute;
  bottom: 24px; right: 24px;
  z-index: 10;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--accent);
  cursor: pointer;
  opacity: 0;
  transform: scale(.85);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), background .25s var(--ease-out), border-color .25s var(--ease-out);
}
.device-overlay.state-open .device-overlay-visit {
  opacity: 1;
  transform: scale(1);
  transition-delay: .2s;
}
.device-overlay-visit:hover {
  background: var(--accent-d);
  border-color: var(--accent-d);
}
.device-overlay-visit .arrow { transition: transform .25s var(--ease-out); }
.device-overlay-visit:hover .arrow { transform: translate(2px, -2px); }
@media (max-width: 600px) {
  .device-overlay-visit { padding: 10px 16px; font-size: 10px; bottom: 16px; right: 16px; }
}

/* scroll hint dans le mock-scroll du phone : flèche stylisée bouncante */
.scroll-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  display: flex; flex-direction: column; align-items: center;
  gap: 6px;
  padding: 4px 8px;
  color: var(--ink);
  pointer-events: none;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 5;
  text-shadow: 0 1px 2px rgba(255, 251, 245, 0.6); /* halo crème pour lisibilité sur fond varié */
  animation: scroll-hint-appear .35s var(--ease-out) .25s both, scroll-hint-bounce 1.6s ease-in-out 1s infinite;
}
.scroll-hint-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 4px 12px -4px rgba(192, 122, 90, 0.5);
}
.scroll-hint-text { white-space: nowrap; }
@keyframes scroll-hint-appear {
  from { opacity: 0; transform: translateX(-50%) translateY(12px) scale(.85); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
@keyframes scroll-hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}
.device-stage {
  position: fixed;
  transform-origin: 0 0;
  transition: transform .55s cubic-bezier(.2, .9, .25, 1), opacity .35s var(--ease-out);
  will-change: transform, opacity;
  filter: drop-shadow(0 60px 80px rgba(0,0,0,.45)) drop-shadow(0 20px 30px rgba(0,0,0,.3));
}
.laptop-fs, .phone-fs {
  width: 100%; height: 100%;
  transform: none !important;
  transition: none !important;
  margin: 0;
}
.laptop-fs::after { display: none; }
.mock-scroll {
  position: absolute;
  inset: 22px 0 0 0; /* sous la barre Chrome du laptop */
  overflow: hidden; /* l'iframe a son propre scroll interne (cha-et-fred défile) */
  background: var(--paper);
}
.phone-fs .mock-scroll { inset: 0; border-radius: inherit; }
.phone-fs {
  border-radius: clamp(28px, 4vh, 48px);
  border-width: 8px;
}
.phone-fs .phone-screen {
  border-radius: clamp(20px, 3vh, 36px);
  overflow: hidden;
}
.phone-fs .phone-notch {
  width: 22%; height: 20px;
  top: 8px;
  border-radius: 999px;
}
.laptop-fs {
  border-radius: 14px;
  border-width: 10px;
}

@media (max-width: 820px) {
  .portfolio-head { grid-template-columns: 1fr; }
  .portfolio-devices { flex-direction: column; align-items: center; gap: 24px; min-height: auto; }
  .laptop { display: none; }
  .phone { width: min(280px, 70vw); margin-bottom: 0; transform: none; }
}

/* ---------- bio ---------- */
.bio {
  padding: var(--section-pad-y) 0;
}
.bio-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.bio-img {
  aspect-ratio: 4/5;
  margin: 0 auto;
  background:
    radial-gradient(80% 60% at 30% 20%, #d6b89a 0%, transparent 60%),
    linear-gradient(160deg, #b89878 0%, #6e5a44 60%, #3e3024 100%);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(26,24,20,.4);
}
.bio-img-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  filter: saturate(85%) sepia(8%) contrast(102%) brightness(98%);
}
.bio-img::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='.7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply; opacity: .35;
}
.bio-img-cap {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(250,246,238,.85);
}
.bio-text .h2 { margin-bottom: 24px; }
.bio-text p {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 18px;
  font-weight: 350;
}
.bio-text p em { font-style: italic; }
.bio-sign {
  margin-top: 40px;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.bio-sign-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--ink);
}
.bio-sign-detail {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-left: 1px solid var(--rule);
  padding-left: 18px;
}

@media (max-width: 820px) {
  .bio-grid { grid-template-columns: 1fr; }
  .bio-img { max-width: 360px; }
}

/* ---------- contact form ---------- */
.contact { background: var(--paper); padding: var(--section-pad-y) 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.contact-side { position: sticky; top: 100px; }
.contact-side .h2 { margin-bottom: 24px; }
.contact-side p {
  color: var(--ink-soft);
  max-width: 36ch;
  margin: 0 0 24px;
}
.contact-microcopy {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.contact-microcopy::before {
  content: "✓";
  color: var(--secondary);
  margin-right: 8px;
  font-family: var(--sans);
  font-weight: 600;
}

.form-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 4px;
  position: relative;
}
.form-progress {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
}
.form-progress-bar {
  flex: 1;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.form-progress-bar::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p, 0%);
  background: var(--accent);
  transition: width .6s var(--ease-out);
}
.form-step h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -.012em;
  margin: 0 0 8px;
  line-height: 1.1;
}
.form-step h3 em { font-style: italic; }
.form-step p.help {
  color: var(--ink-mute);
  font-size: 14px;
  margin: 0 0 24px;
}
.form-field {
  position: relative;
  margin-bottom: 16px;
}
.form-field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  font: 16px/1.5 var(--sans);
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  border-radius: 3px;
  transition: border-color .2s, box-shadow .2s;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.form-field .err {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent-d);
  margin-top: 6px;
}
.form-radios {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.form-radios label {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  transition: border-color .2s, background .2s;
}
.form-radios label:hover { border-color: var(--ink-soft); }
.form-radios label[data-checked="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.form-radios input { position: absolute; opacity: 0; pointer-events: none; }
.form-radios .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid currentColor;
  position: relative;
  flex-shrink: 0;
}
.form-radios label[data-checked="true"] .dot::after {
  content: ""; position: absolute; inset: 3px;
  background: currentColor;
  border-radius: 50%;
}
.form-actions {
  margin-top: 32px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.form-back {
  background: none;
  border: 0;
  padding: 12px 4px;
  color: var(--ink-mute);
  font-family: var(--mono);
  letter-spacing: .04em;
  text-transform: uppercase;
  font-size: 11px;
  min-height: 44px;
  transition: color .2s;
}
.form-back:hover { color: var(--ink); }
.form-success {
  text-align: center;
  padding: 24px 0;
}
.form-success-mark {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  border: 1px solid var(--secondary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--secondary);
  font-size: 28px;
  animation: pop .6s var(--ease-out);
}
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.form-success h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-style: italic;
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 12px;
}
.form-success p {
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-side { position: static; }
  .form-radios { grid-template-columns: 1fr; }
}

/* ---------- faq ---------- */
.faq { padding: var(--section-pad-y) 0; }
.faq-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 28px 0;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.2;
  transition: color .2s;
  min-height: 44px;
}
.faq-item button .plus { margin-top: 6px; }
.faq-item button:hover { color: var(--accent-d); }
.faq-item button .plus {
  position: relative;
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.faq-item button .plus::before,
.faq-item button .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 18px; height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease-out);
}
.faq-item button .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[data-open="true"] button .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-item .ans {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.faq-item[data-open="true"] .ans { grid-template-rows: 1fr; }
.faq-item .ans-inner {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.faq-item .ans-inner > div {
  padding-bottom: 32px;
  max-width: 60ch;
}

@media (max-width: 820px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer { background: var(--bg-soft); color: var(--ink); padding: clamp(64px, 8vw, 120px) 0 32px; border-top: 1px solid var(--rule); }
.footer .display { color: var(--ink); }
.footer-mark { color: var(--ink) !important; }
.footer-col h3 { color: var(--ink-mute) !important; }
.footer-col a { color: var(--ink-soft) !important; }
.footer-col a:hover { color: var(--accent) !important; }
.footer-blurb { color: var(--ink-soft) !important; }
.footer-cols { border-bottom-color: var(--rule) !important; }
.footer-bottom { color: var(--ink-mute) !important; }
.footer-mark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: clamp(80px, 14vw, 200px);
  line-height: .9;
  letter-spacing: -.03em;
  margin: 0 0 64px;
  color: var(--paper);
}
.footer-mark .dot { color: var(--accent); }
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 48px;
  border-bottom: 1px solid #2e2a22;
}
.footer-col h3 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(250,246,238,.5);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  color: rgba(250,246,238,.85);
  font-size: 15px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-blurb {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(250,246,238,.75);
  max-width: 32ch;
  line-height: 1.4;
  margin: 0 0 16px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(250,246,238,.5);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom .marks { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-bottom .marks span::before {
  content: "•";
  margin-right: 8px;
  color: var(--accent);
}
.footer-bottom .marks .team-link {
  color: rgba(250,246,238,.25);
  text-decoration: none;
  letter-spacing: .15em;
  transition: color .2s;
}
.footer-bottom .marks .team-link::before {
  content: "·";
  margin-right: 8px;
  color: rgba(250,246,238,.25);
}
.footer-bottom .marks .team-link:hover {
  color: var(--accent);
}

@media (max-width: 820px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
/* ---------- mobile (≤ 480px) ---------- */
@media (max-width: 480px) {
  /* Réduire l'espacement des sections */
  :root { --section-pad-y: clamp(48px, 9vw, 140px); }

  /* Hero — titre moins grand, boutons empilés */
  .hero h1 { font-size: 36px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-img { aspect-ratio: 4/3; }
  .hero-img-side { display: none; }
  .hero-img-stamp { width: 76px; height: 76px; font-size: 10px; bottom: -10px; right: 4px; }
  .hero-img-stamp b { font-size: 15px; }

  /* Bio — image moins haute */
  .bio-img { aspect-ratio: 3/2; max-width: 100%; }

  /* Form — padding réduit */
  .form-card { padding: 20px; }

  /* Footer — empiler copyright et badges */
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  /* Waitlist — bouton pleine largeur */
  .waitlist-form .btn { width: 100%; justify-content: center; }
}

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), opacity .3s;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor.hover {
  width: 40px; height: 40px;
  background: var(--paper);
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), opacity .3s;
  mix-blend-mode: difference;
  will-change: transform;
  opacity: .35;
}
@media (hover: none) {
  .cursor, .cursor-ring { display: none; }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }

/* parallax wrapper */
.parallax { will-change: transform; }

/* ───────────────────────────────────────────────────────── */
/* ───── MOBILE P0 fixes (audit ADT+ 2026-05-09) ─────────── */
/* ───────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  /* Hero stamp non clippé par overflow:hidden parent */
  .hero-img { overflow: visible; }
  .hero-img-photo img,
  .hero-img-grain { border-radius: 4px; }

  /* Stamp plus visible sur mobile (76→92px) */
  .hero-img-stamp { width: 92px; height: 92px; font-size: 11px; bottom: -14px; right: 8px; }
  .hero-img-stamp b { font-size: 18px; }

  /* Footer-mark : impact monumental même en mobile (80→140px) */
  .footer-mark { font-size: clamp(110px, 22vw, 160px); margin-bottom: 40px; }

  /* Hero h1 floor + h2 cohérence (h1 reste plus gros que h2 mobile) */
  .hero h1 { font-size: clamp(44px, 11vw, 88px); }
  .h2 { font-size: clamp(28px, 7.5vw, 44px); }

  /* Garde aspect-ratio 3/4 portrait (pas 4/3 paysage) */
  .hero-img { aspect-ratio: 3/4; }

  /* Polaroid hero-img-side : centrage symétrique */
  .hero-img-side {
    width: 32%;
    bottom: -16px;
    left: -8px;
    transform: rotate(-4deg);
  }

  /* Bio-img cap : scrim subtil pour contraste sur photo */
  .bio-img { position: relative; }
  .bio-img::before {
    content: "";
    position: absolute;
    inset: 60% 0 0 0;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,.45));
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
  }
  .bio-img-cap { z-index: 2; }

  /* Touch targets : footer links 44px */
  .footer-col a { padding: 6px 0; display: inline-block; min-height: 44px; line-height: 32px; }
}

/* iPhone SE étroit (320-380px) */
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero-img-side { display: none; } /* trop serré, on cache */
  .hero-img-stamp { width: 80px; height: 80px; }
  .hero-img-stamp b { font-size: 16px; }
}

/* Safe-area-inset pour iPhone Notch/Dynamic Island */
.footer { padding-bottom: max(32px, env(safe-area-inset-bottom)); }

/* Reduce motion safety (override JS animations) */
@media (prefers-reduced-motion: reduce) {
  .petal { animation: none !important; opacity: 0.18 !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-img-stamp { transition: none !important; }
}

/* ========== Vague B — a11y fieldset + mobile resets P0/P1 ========== */

/* Fieldset reset (default browser border/padding/margin, legend offset) */
.form-fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.form-fieldset > legend {
  display: block;
  font: inherit;
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 8px;
  padding: 0;
}

/* Texte caption sur photo : text-shadow filet pour lisibilité indépendamment du scrim */
.bio-img-cap { text-shadow: 0 1px 8px rgba(0,0,0,.55); }

@media (max-width: 600px) {
  /* diff-card min-height fixe → auto mobile (cards trop hautes vides sinon) */
  .diff-card { min-height: auto; }
  /* portfolio-devices : neutraliser tilt JS au cas où guard noHover absent */
  .portfolio-devices > * { transform: none !important; }
  /* Pétales : 14 → 6 actives mobile (CPU/batterie) */
  .petal:nth-child(n+7) { display: none; }
  /* Liste hero-features cachée mobile (redondante avec la tagline juste au-dessus) */
  .hero-features { display: none; }
}

/* ========== Vague C — a11y skip-link, perf, brand glyphes ========== */

/* Skip-to-content link (WCAG 2.4.1 Bypass Blocks) */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10000;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .08em;
  transition: top .15s var(--ease-out);
}
.skip-link:focus-visible {
  top: 16px;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Bouton désactivé (WCAG 1.4.3 contraste + état visible) */
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Hero img label : contraste renforcé (était 3.8:1 sous AA) */
.hero-img-label {
  background: rgba(0,0,0,.55) !important;
  color: #fff !important;
  padding: 6px 10px !important;
  border-radius: 2px;
}

/* Glyphe décoratif entre sections .section consécutives (signature artisanale) */
.section + .section::before {
  content: "❦";
  display: block;
  text-align: center;
  font-family: var(--serif);
  color: var(--accent);
  opacity: .4;
  font-size: 22px;
  margin: -16px 0 32px;
  line-height: 1;
}

/* Hero CTA : ordre inversé mobile (primary en haut, thumb-zone) */
@media (max-width: 600px) {
  .hero-cta { flex-direction: column-reverse; margin-top: 40px; }
  /* Footer-mark : nowrap + clamp réduit pour éviter wrap "MyWedd / ∞" */
  .footer-mark {
    font-size: clamp(56px, 16vw, 96px) !important;
    white-space: nowrap !important;
  }
  /* Glyphe section-divider plus discret mobile */
  .section + .section::before { font-size: 18px; margin: -8px 0 20px; }
}
