/* Créa'Love — maquette (2026-12-06).
   Couleurs prises du logo : hibiscus rose, couronne dorée, feuilles brunes, papier crème. */
:root {
  --paper: #fbf6ef;
  --paper-2: #f4ebdf;
  --ink: #2b1d16;
  --ink-2: #5b463b;
  --rose: #c9456d;
  --rose-2: #f0a3b6;
  --rose-ink: #a8304f;
  --gold: #b8873a;
  --gold-2: #e8c77d;
  --leaf: #5b3a1e;
  --line: rgba(43, 29, 22, 0.14);
  --radius: 18px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 18px 40px -24px rgba(91, 58, 30, 0.45);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;
  --script: 'Great Vibes', cursive;
  --top: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* grain de papier, très léger */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .35 0 0 0 0 .25 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-variation-settings: 'SOFT' 100; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 300; }
.skip:focus { left: 8px; }

.kicker {
  font: 600 0.78rem/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-ink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ''; width: 26px; height: 1px; background: currentColor; }

/* ------------------------------------------------------------------ boutons */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--rose { --bg: var(--rose); --fg: #fff; --bd: var(--rose); box-shadow: 0 10px 24px -12px rgba(201, 69, 109, .8); }
.btn--rose:hover { --bg: var(--rose-ink); --bd: var(--rose-ink); }
.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--line:hover { --bg: var(--ink); --fg: var(--paper); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ------------------------------------------------------------------ en-tête */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--top);
  display: flex; align-items: center; gap: 24px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.top.is-scrolled { border-color: var(--line); }
.top__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.top__brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.top__brand span { font: 400 2rem/1 var(--script); color: var(--gold); transform: translateY(2px); }
.top__nav { display: flex; gap: 26px; }
.top__nav a { text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; }
.top__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--rose); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.top__nav a:hover::after { transform: scaleX(1); }

/* ------------------------------------------------------------------ accueil */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  padding: calc(var(--top) + 24px) clamp(20px, 5vw, 72px) 48px;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 72% 52%, #f7e4dc 0%, transparent 70%),
    radial-gradient(40% 40% at 8% 90%, #f3e6d3 0%, transparent 70%);
}
.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__canvas { width: 100%; height: 100%; touch-action: pan-y; }
.hero__fallback { display: none; position: absolute; right: 6vw; top: 50%; transform: translateY(-46%) rotate(2deg); width: min(36vw, 440px); border-radius: 6px; box-shadow: var(--shadow); }
.no-webgl .hero__fallback { display: block; }
.no-webgl .hero__canvas { display: none; }
.hero__text { position: relative; z-index: 2; max-width: 560px; }
.hero__title {
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  font-weight: 600;
  margin: 18px 0 22px;
  line-height: 1;
}
.hero__title em {
  display: block;
  font: 400 1.18em/1.05 var(--script);
  padding: 0.04em 0.1em 0.1em 0;
}
.hero__title em,
.hero__title em div div {
  color: var(--gold);
  background: linear-gradient(180deg, #8c5a1d 0%, #d9a856 35%, #a8742a 55%, #e9c77f 80%, #8c5a1d 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__title em div div { padding: 0 0.12em 0.12em 0; }
.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__caption {
  position: absolute; left: 50%; bottom: 13vh; z-index: 2;
  transform: translateX(-50%);
  width: min(92vw, 620px);
  padding: 18px 26px;
  border-radius: 20px;
  background: rgba(43, 29, 22, 0.55);
  backdrop-filter: blur(8px);
  text-align: center;
  font: 500 clamp(1.4rem, 3vw, 2.2rem)/1.2 var(--serif);
  font-variation-settings: 'SOFT' 100;
  color: #fff;
  opacity: 0;
  pointer-events: none;
}
.hero__hint {
  position: absolute; left: clamp(20px, 5vw, 72px); bottom: 26px; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.hero__hint span { width: 1px; height: 34px; background: linear-gradient(var(--ink-2), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(80px, 12vw, 150px) clamp(20px, 5vw, 72px); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head h2 { margin-top: 14px; }
.section__lead { margin-top: 16px; color: var(--ink-2); font-size: 1.1rem; max-width: 58ch; }

/* objets */
.objets { background: var(--paper); z-index: 2; }
.objets__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.objet {
  grid-column: span 4;
  display: flex; flex-direction: column;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.objet--large { grid-column: span 8; grid-row: span 2; }
.objet--half { grid-column: span 6; }
.objet--half .objet__media { aspect-ratio: 16 / 9; }
.objet--large .objet__media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.objet__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.objet__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.objet__media--3d { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--paper-2) 70%); }
.objet__icon { width: 46%; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linejoin: round; }
.objet__icon text { font: 400 22px var(--script); fill: var(--rose); stroke: none; }
.objet__tag { position: absolute; top: 14px; left: 14px; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; }
.objet__body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.objet__body p { color: var(--ink-2); }
.objet__note { font-size: .95rem; font-style: italic; }
.objet__link { font-weight: 600; color: var(--rose-ink); text-underline-offset: 4px; }

/* atelier */
.atelier { background: linear-gradient(180deg, var(--paper) 0%, #f7ece4 100%); }
.atelier__wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.atelier__stage {
  position: sticky; top: calc(var(--top) + 20px);
  height: min(74vh, 680px);
  border-radius: 28px;
  background:
    radial-gradient(70% 60% at 50% 38%, #fff 0%, #fbefe8 55%, #f1ddd2 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.atelier__canvas { width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.atelier__canvas.is-grabbing { cursor: grabbing; }
.atelier__drag { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: .8rem; color: var(--ink-2); background: rgba(255,255,255,.75); padding: 6px 12px; border-radius: 999px; pointer-events: none; }
.atelier__nogl { position: absolute; inset: auto 20px 20px; padding: 14px; background: #fff; border-radius: 12px; }

.atelier__form { display: grid; gap: 22px; }
.field { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.field[hidden] { display: none; }
.field legend, .field > label { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 10px; }
.field input[type=text] {
  width: 100%; min-height: 54px; padding: 0 18px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font: 500 1.25rem var(--sans); color: var(--ink);
}
.field input[type=text]:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 4px rgba(201,69,109,.15); }
.field__help { font-size: .85rem; color: var(--ink-2); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-weight: 500; font-size: .95rem;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip input:hover + span { border-color: var(--ink-2); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip input:focus-visible + span { outline: 3px solid var(--rose); outline-offset: 2px; }
.chips--fonts .chip span { min-height: 50px; font-size: 1.35rem; }
.f-cal { font-family: var(--script) !important; font-size: 1.7rem !important; }
.f-ron { font-family: 'Pacifico', cursive !important; font-size: 1.1rem !important; }
.f-bat { font-family: 'Bebas Neue', sans-serif !important; letter-spacing: .04em; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset; }
.dot--or { background: linear-gradient(135deg, #8c5a1d, #f4d58d 45%, #b47b2a 70%, #f8e3a8); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { position: relative; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch i {
  display: block; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset, 0 0 0 3px #fff, 0 0 0 4px var(--line);
  transition: box-shadow .2s, transform .2s;
}
.swatch input:checked + i { box-shadow: 0 0 0 1px rgba(0,0,0,.15) inset, 0 0 0 3px #fff, 0 0 0 5px var(--ink); transform: scale(1.06); }
.swatch input:focus-visible + i { outline: 3px solid var(--rose); outline-offset: 5px; }
.swatch b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.demande {
  margin-top: 6px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid; gap: 14px;
}
.demande__label { font: 600 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--rose-ink); }
.demande__text { font: 500 1.08rem/1.55 var(--serif); font-variation-settings: 'SOFT' 100; }
.demande__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.demande__note { font-size: .88rem; color: var(--ink-2); }
.demande__note.is-ok { color: #2f6b3b; font-weight: 600; }

/* créations */
.creations { background: var(--ink); color: var(--paper); }
.creations .kicker { color: var(--gold-2); }
.creations .section__lead { color: rgba(251, 246, 239, .72); }
.mur { columns: 4 240px; column-gap: 16px; }
.piece {
  display: block; width: 100%; margin: 0 0 16px; padding: 0; border: 0;
  break-inside: avoid; position: relative; overflow: hidden;
  border-radius: 14px; background: #3a2a22; cursor: zoom-in; color: inherit; text-align: left;
}
.piece img, .piece video { width: 100%; height: auto; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.piece--video { cursor: default; }
.piece:hover img { transform: scale(1.04); }
.piece span, .piece figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 14px 10px;
  background: linear-gradient(transparent, rgba(20, 10, 6, .62));
  font: 400 1.6rem/1 var(--script); color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}

/* commander */
.commander { background: var(--paper); }
.etapes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 32px); counter-reset: e; }
.etapes li { padding: 28px; border-top: 2px solid var(--ink); display: grid; gap: 10px; align-content: start; }
.etapes__n { font: 400 3.2rem/1 var(--script); color: var(--rose); }
.etapes p { color: var(--ink-2); }
.contact {
  margin-top: clamp(48px, 7vw, 90px);
  display: grid; grid-template-columns: 220px 1fr; gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.contact img { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; }
.contact > div { display: grid; gap: 14px; justify-items: start; }
.contact__todo { padding: 10px 14px; border: 1.5px dashed var(--gold); border-radius: 12px; color: var(--ink-2); background: #fffaf0; }

.pied { padding: 40px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .95rem; }
.pied__small { color: var(--ink-2); }

/* loupe */
.loupe { padding: 0; border: 0; background: transparent; max-width: min(92vw, 900px); max-height: 92vh; }
.loupe::backdrop { background: rgba(20, 12, 8, .86); }
.loupe img { max-height: 88vh; width: auto; border-radius: 10px; margin: auto; }
.loupe__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--paper); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* ------------------------------------------------------------------ téléphone */
@media (max-width: 900px) {
  .top__nav { display: none; }
  .hero { grid-template-columns: 1fr; align-items: start; padding-top: calc(var(--top) + 18px); }
  .hero__text { max-width: none; }
  .hero__title { margin: 12px 0 14px; }
  .hero__actions { margin-top: 20px; gap: 8px; }
  .hero__actions .btn { min-height: 44px; padding: 0 15px; font-size: .92rem; }
  .hero__lead { font-size: 1rem; }
  .hero__caption { bottom: 8vh; }
  .hero__hint { display: none; }
  .hero__fallback { position: relative; right: auto; top: auto; transform: rotate(2deg); width: 70%; margin: 30px auto 0; }
  .objet, .objet--large { grid-column: 1 / -1; grid-row: auto; }
  .objet--large .objet__media { min-height: 0; aspect-ratio: 4 / 5; }
  .atelier__wrap { grid-template-columns: 1fr; }
  .atelier__stage { position: sticky; top: var(--top); height: 46svh; z-index: 3; border-radius: 0 0 24px 24px; margin: 0 calc(-1 * clamp(20px, 5vw, 72px)); }
  .etapes { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .contact > div { justify-items: center; }
  .contact img { width: 160px; height: 160px; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .objet { grid-column: span 6; }
  .objet--large { grid-column: 1 / -1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__hint span { animation: none; }
  .btn, .piece img { transition: none; }
}
