:root {
  --paper: #efe9dc;
  --ink: #07164f;
  --violet: #7c3aed;
  --soft: rgba(7, 22, 79, .62);
  --rule: rgba(7, 22, 79, .9);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: 'DM Mono', monospace; font-size: 14px; line-height: 1.6; overflow-x: hidden; }
/* Grain de papier */
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 56px); }
.anton { font-family: 'Anton', sans-serif; text-transform: uppercase; line-height: .86; letter-spacing: -.005em; }
.serif { font-family: 'Instrument Serif', serif; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 16px; border-bottom: 3px solid var(--rule); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.top img { height: 34px; width: auto; display: block; }
.top a.go { border: 2px solid var(--ink); padding: 8px 14px; font-weight: 500; transition: background .15s, color .15s; }
.top a.go:hover { background: var(--ink); color: var(--paper); }

/* Affiche : le titre passe derrière la vidéo collée de travers */
.poster { position: relative; padding: clamp(28px, 5vw, 60px) 0 clamp(40px, 6vw, 80px); }
.poster h1 { font-size: clamp(60px, 13.5vw, 204px); line-height: 1.02; white-space: nowrap; position: relative; z-index: 1; }
.poster h1 .v { color: var(--violet); }
/* Titre animé : le texte reste dans la page (lecteurs d'écran, secours), le canevas se pose dessus */
.poster h1 .t { display: inline-block; position: relative; }
.poster h1 .t canvas { position: absolute; left: 0; top: -2%; width: 100%; pointer-events: none; transform-origin: 0 60%; }
.poster h1 .t.on, .poster h1 .t.on .v { color: transparent; }
.poster h1 .i { display: block; font-family: 'Instrument Serif', serif; font-style: italic; text-transform: none; font-size: .62em; line-height: .9; letter-spacing: -.02em; margin-top: .04em; }
.stuck { position: absolute; z-index: 2; right: clamp(0px, 5vw, 90px); top: clamp(20px, 4vw, 50px); width: clamp(210px, 25vw, 360px); transform: rotate(4deg); background: #000; padding: 10px 10px 42px; box-shadow: 14px 18px 0 var(--violet); transition: transform .4s cubic-bezier(.2, .8, .2, 1); animation: drop .9s cubic-bezier(.2, .9, .3, 1.2) both .2s; }
.stuck:hover { transform: rotate(0deg) scale(1.03); }
.stuck video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }
.stuck::before { content: ''; position: absolute; top: -16px; left: 50%; width: 110px; height: 32px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 244, 190, .82); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.stuck button { position: absolute; left: 10px; right: 10px; bottom: 0; height: 42px; background: none; border: 0; color: #fff; font: 500 12px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .12em; cursor: pointer; text-align: left; }
.stuck button:hover { color: #c4b5fd; }
@keyframes drop { from { opacity: 0; transform: rotate(14deg) translateY(-60px); } }

.under { display: grid; grid-template-columns: 1fr; gap: 26px; padding-right: clamp(260px, 34vw, 500px); border-top: 3px solid var(--rule); padding-top: 22px; margin-top: clamp(24px, 4vw, 48px); }
.under p.big { font-family: 'Instrument Serif', serif; font-size: clamp(24px, 2.9vw, 42px); line-height: 1.12; max-width: 19em; }
.under p.big i { color: var(--violet); }
.facts { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 4px 18px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.facts dt { color: var(--soft); }

/* Planche contact */
.sheet { background: var(--ink); color: var(--paper); padding: clamp(48px, 7vw, 96px) 0; margin-top: clamp(40px, 6vw, 80px); }
.sheet .title { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.sheet h2 { font-size: clamp(56px, 10vw, 150px); }
.sheet .title p { max-width: 24em; opacity: .7; }
.frames { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.2vw, 18px); }
.fr { position: relative; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.fr:nth-child(odd) { transform: translateY(18px); }
.fr:hover { transform: translateY(-8px) rotate(-1.5deg); }
.fr video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; border: 2px solid var(--paper); background: #000; }
.fr figcaption { display: flex; gap: 10px; align-items: baseline; padding-top: 10px; }
.fr .n { font-family: 'Anton', sans-serif; font-size: clamp(22px, 2.6vw, 38px); color: #a78bfa; line-height: 1; }
.fr .t { font-family: 'Instrument Serif', serif; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.1; }

/* Ticket */
.ticket { margin: clamp(56px, 8vw, 110px) auto 0; display: grid; grid-template-columns: 1.3fr 1fr; border: 3px solid var(--ink); background: #f8f4ea; position: relative; }
.ticket .l { padding: clamp(24px, 4vw, 54px); border-right: 3px dashed var(--ink); }
.ticket .r { padding: clamp(24px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center; background: var(--violet); color: #fff; }
.ticket h2 { font-size: clamp(54px, 8vw, 124px); line-height: 1.04; }
.ticket .l p { font-family: 'Instrument Serif', serif; font-size: clamp(20px, 2vw, 28px); line-height: 1.2; margin-top: 18px; max-width: 20em; }
.ticket label { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; margin-bottom: 10px; display: block; }
form { display: flex; flex-direction: column; gap: 10px; }
input { background: #fff; border: 2px solid var(--ink); color: var(--ink); font: 400 16px 'DM Mono', monospace; padding: 14px; outline: 0; }
input:focus { box-shadow: 5px 5px 0 var(--ink); }
button[type=submit] { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 22px; letter-spacing: .03em; background: var(--ink); color: #fff; border: 0; padding: 14px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
button[type=submit]:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 #fff; }
.note { font-size: 12px; margin-top: 12px; min-height: 1.6em; }
.legal { font-size: 11px; line-height: 1.5; margin-top: 14px; opacity: .8; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 22px; padding: 36px 0 44px; margin-top: 70px; border-top: 3px solid var(--rule); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }

/* Signature du site, en vignette scotchée, comme sur Sorek Cues */
.atelier { position: relative; display: inline-flex; align-items: center; gap: 14px; text-transform: none; letter-spacing: 0; }
.atelier::before { content: ''; position: absolute; top: -7px; left: 8px; width: 40px; height: 14px; background: rgba(242, 227, 168, .85); transform: rotate(-5deg); box-shadow: 0 1px 1px rgba(0, 0, 0, .13); z-index: 1; }
.atelier img { width: 56px; height: 56px; border-radius: 12px; transform: rotate(-2deg); box-shadow: 0 1px 0 rgba(0, 0, 0, .13), 0 8px 12px -8px rgba(0, 0, 0, .5); transition: transform .1s; }
.atelier:hover img { transform: rotate(0deg) translateY(-1px); }
.atelier small { display: block; font-size: 12px; color: var(--soft); }
.atelier b { display: block; font: 400 24px/1.1 'Instrument Serif', serif; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
footer a.atelier:hover { color: inherit; }
footer a:hover { color: var(--violet); }

/* Bloc « Tu montes, tu règles » : captures de l'app et variantes d'un même visuel */
.h2xl { font-size: clamp(56px, 10vw, 150px); line-height: 1.04; }
.studio { padding-top: clamp(48px, 7vw, 100px); padding-bottom: clamp(20px, 3vw, 40px); }
.studio .lede { font-family: 'Instrument Serif', serif; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.15; max-width: 24em; margin-top: 22px; }
.step { display: grid; grid-template-columns: 1fr 1.9fr; gap: clamp(22px, 4vw, 64px); align-items: center; border-top: 3px solid var(--rule); padding: clamp(28px, 4vw, 54px) 0; margin-top: clamp(28px, 4vw, 54px); }
.step.flip { grid-template-columns: 1.9fr 1fr; }
.step.flip .txt { order: 2; }
.kick { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; color: var(--violet); font-weight: 500; }
.step h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(30px, 3.6vw, 54px); line-height: 1.02; margin: 10px 0 14px; }
.step p { max-width: 32em; }
.screen { background: #0b0a10; border: 3px solid var(--ink); box-shadow: 12px 14px 0 var(--violet); }
.screen video { width: 100%; display: block; aspect-ratio: 1480 / 940; }
.cap { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--soft); margin-top: 22px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 1.4vw, 20px); }
.trio figure:nth-child(2) { transform: translateY(18px); }
.trio video, .coll video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; background: #000; }
.trio video { border: 3px solid var(--ink); }
.trio figcaption { font-size: 12px; padding-top: 8px; line-height: 1.35; }

.more { display: inline-block; margin-top: clamp(40px, 5vw, 64px); border: 2px solid var(--paper); padding: 14px 22px; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.more:hover { background: var(--paper); color: var(--ink); }
.more.ink { border-color: var(--ink); }
.more.ink:hover { background: var(--ink); color: var(--paper); }

/* Page collection : un groupe par visuel, une boucle par réglage */
.intro { padding: clamp(28px, 5vw, 60px) 0 clamp(36px, 5vw, 64px); }
.intro h1 { font-size: clamp(60px, 12vw, 190px); line-height: 1.02; }
.intro h1 .v { color: var(--violet); }
.intro p { font-family: 'Instrument Serif', serif; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.15; max-width: 26em; border-top: 3px solid var(--rule); padding-top: 22px; margin-top: clamp(20px, 3vw, 40px); }
.sheet.flat { margin-top: 0; }
.coll { border-top: 1px solid rgba(239, 233, 220, .28); padding: clamp(30px, 4vw, 56px) 0; display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: clamp(20px, 3vw, 48px); align-items: start; }
.coll:first-child { border-top: 0; padding-top: 0; }
.coll .n { font-family: 'Anton', sans-serif; font-size: clamp(34px, 4vw, 60px); color: #a78bfa; line-height: 1; }
.coll h2 { font-family: 'Anton', sans-serif; font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.3; margin: 4px 0 8px; }
.coll .head p { opacity: .75; max-width: 24em; }
.coll .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.2vw, 18px); }
.coll video { border: 2px solid var(--paper); }
.outro { font-family: 'Instrument Serif', serif; font-size: clamp(22px, 2.4vw, 36px); line-height: 1.15; max-width: 24em; border-top: 1px solid rgba(239, 233, 220, .28); padding-top: clamp(30px, 4vw, 56px); }
.outro + .more { margin-top: 28px; }
.coll figcaption { font-family: 'Instrument Serif', serif; font-size: clamp(15px, 1.4vw, 20px); line-height: 1.15; padding-top: 9px; }

/* Réseaux : les trois logos, en encre, sans fioriture */
.social { display: flex; gap: 20px; align-items: center; }
.social a { display: block; line-height: 0; transition: color .15s, transform .15s; }
.social a:hover { transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; fill: currentColor; display: block; }

@media (max-width: 820px) {
  .step, .step.flip { grid-template-columns: 1fr; }
  .step.flip .txt { order: 0; }
  .trio figure:nth-child(2) { transform: none; }
  .coll { grid-template-columns: 1fr; }
  .coll .grid { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .poster h1 { font-size: 21vw; }
  .stuck { position: relative; right: auto; top: auto; margin: 26px auto 0; width: min(74%, 300px); display: block; }
  .under { padding-right: 0; }
  .facts { grid-template-columns: auto 1fr; }
  .frames { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .fr:nth-child(odd) { transform: none; }
  .ticket { grid-template-columns: 1fr; }
  .ticket .l { border-right: 0; border-bottom: 3px dashed var(--ink); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
