/* ==========================================================
   Sophie Salmon — CV en ligne
   Palette : crème, saumon, terracotta, indigo profond
   ========================================================== */
:root {
  --cream: #F6EFE4;
  --paper: #FBF7F0;
  --sand: #E9D9C2;
  --salmon: #EE8B6F;
  --salmon-soft: #F7C3AF;
  --terra: #B8553A;
  --indigo: #2B3567;
  --ink: #1F2447;
  --muted: #5d5f78;
  --water: #9DB4C9;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad: clamp(1.25rem, 4vw, 4rem);
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, .95rem + .2vw, 1.1rem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--salmon); color: var(--paper); }
:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; border-radius: 6px; }

/* Paper grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.1 0 0 0 0 0.2 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, -2%); }
}

/* ---------- Opening curtain ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 90; background: var(--indigo);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s var(--ease) .15s;
}
.curtain__mark { display: flex; align-items: center; gap: .6rem; color: var(--cream); font-family: var(--serif); font-size: clamp(2.5rem, 8vw, 5rem); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.curtain__mark i { width: 0; height: 2px; background: var(--salmon); transition: width .7s var(--ease); }
body.is-ready .curtain__mark i { width: 2.2em; }
body.is-open .curtain { clip-path: inset(0 0 100% 0); }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem var(--pad);
  transition: background .4s, backdrop-filter .4s, transform .5s var(--ease);
}
.topbar.is-scrolled { background: rgba(246, 239, 228, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar.is-hidden { transform: translateY(-110%); }
.topbar__mark { font-family: var(--serif); font-style: italic; font-size: 1.5rem; text-decoration: none; font-variation-settings: "SOFT" 100, "WONK" 1; }
.topbar__mark span { color: var(--salmon); }
.topbar__nav { display: flex; gap: clamp(.8rem, 2vw, 2rem); }
.topbar__nav a { text-decoration: none; font-size: .9rem; letter-spacing: .02em; position: relative; }
.topbar__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--salmon); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.topbar__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 720px) { .topbar__nav { display: none; } }

/* ---------- Shared ---------- */
.eyebrow, .section-label {
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: .8rem; margin: 0;
}
.eyebrow__line { width: 3rem; height: 1px; background: currentColor; display: inline-block; }
.section-label span { font-family: var(--serif); font-style: italic; letter-spacing: 0; text-transform: none; font-size: 1rem; color: var(--terra); }
.section-head { padding: 0 var(--pad); max-width: 1200px; margin: 0 auto clamp(2rem, 5vw, 4rem); }
.section-title {
  font-family: var(--serif); font-weight: 350; font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem);
  line-height: 1.04; letter-spacing: -.02em; margin: .8rem 0 0; max-width: 18ch;
  font-variation-settings: "SOFT" 60, "opsz" 144;
}
.section-title em { font-style: italic; color: var(--terra); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hint { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; display: flex; align-items: center; gap: .5rem; }
.hint::before { content: "↻"; color: var(--salmon); font-size: 1.1rem; }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(1.5rem, 4vw, 5rem);
  padding: clamp(5rem, 10vh, 8rem) var(--pad) 6.5rem; max-width: 1400px; margin: 0 auto;
}
.hero__text { position: relative; z-index: 2; }
.hero__name {
  font-family: var(--serif); font-weight: 300; margin: 1rem 0 .4rem; line-height: .86; letter-spacing: -.035em;
  font-size: clamp(4rem, 2.2rem + 9vw, 10.5rem); font-variation-settings: "opsz" 144, "SOFT" 50;
}
.hero__name > span { display: block; }
.hero__last { font-style: italic; color: var(--salmon); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; padding-left: .45em; }
.char { display: inline-block; transform: translateY(105%) rotate(6deg); opacity: 0; transition: transform 1.1s var(--ease), opacity 1.1s var(--ease); }
.hero__name > span { overflow: hidden; padding-bottom: .08em; }
body.is-open .char { transform: none; opacity: 1; }
.hero__title { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1rem + .8vw, 1.6rem); margin: .4rem 0 1.2rem; color: var(--indigo); }
.badge { display: inline-flex; align-items: center; gap: .6rem; margin: 0 0 1.8rem; padding: .45rem .95rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--sand); font-size: .88rem; }
.badge__dot { width: .55rem; height: .55rem; border-radius: 50%; background: #4CAF7A; box-shadow: 0 0 0 0 rgba(76, 175, 122, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 .6rem rgba(76, 175, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 175, 122, 0); } }

/* Arches */
.hero__art { position: relative; height: min(78svh, 760px); min-height: 420px; }
.arch { position: absolute; overflow: hidden; border-radius: 999px 999px var(--radius) var(--radius); box-shadow: 0 30px 60px -30px rgba(31, 36, 71, .45); will-change: transform; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--back { inset: 0 0 8% 18%; }
.arch--back img { transform: scale(1.12); }
.arch--front { width: 52%; height: 64%; left: 0; bottom: 0; border: 8px solid var(--paper); }
.arch--front img { object-position: 50% 28%; }
.hero__orbit { position: absolute; width: clamp(110px, 12vw, 160px); right: -2%; bottom: 2%; animation: spin 22s linear infinite; z-index: 3; }
.hero__orbit text { font-family: var(--sans); font-size: 15.5px; letter-spacing: 3.2px; text-transform: uppercase; fill: var(--indigo); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Tickets (link tree) */
.tickets { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; max-width: 30rem; }
.ticket {
  --notch: 11px;
  position: relative; display: grid; grid-template-columns: 2.6rem 1fr auto; align-items: center; gap: .9rem;
  padding: .85rem 1.1rem .85rem .9rem; text-decoration: none; cursor: pointer; width: 100%; text-align: left; border: 0;
  background: var(--paper); border-radius: 14px;
  -webkit-mask: radial-gradient(circle var(--notch) at 3.9rem 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 3.9rem 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at 3.9rem 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at 3.9rem 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
  transition: transform .5s var(--ease), background .3s, color .3s;
  opacity: 0; transform: translateX(-24px);
}
body.is-open .ticket { opacity: 1; transform: none; transition: transform .8s var(--ease), opacity .8s var(--ease), background .3s, color .3s; transition-delay: calc(.9s + var(--i, 0) * .09s); }
body.is-open .ticket:hover { transform: translateX(6px) rotate(-.6deg); transition-delay: 0s; background: var(--indigo); color: var(--cream); }
.ticket::after { content: ""; position: absolute; left: 3.9rem; top: 12px; bottom: 12px; border-left: 2px dashed var(--sand); }
.ticket__icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--salmon-soft); color: var(--terra); }
.ticket__icon svg { width: 1.15rem; height: 1.15rem; }
.ticket__label { display: block; font-weight: 600; font-size: .98rem; padding-left: .6rem; }
.ticket__value { display: block; font-size: .82rem; opacity: .7; padding-left: .6rem; word-break: break-all; }
.ticket__arrow { font-family: var(--serif); font-size: 1.3rem; transition: transform .4s var(--ease); }
.ticket:hover .ticket__arrow { transform: translateX(4px) rotate(-45deg); }
.ticket.is-copied .ticket__value::after { content: " — copié ✓"; color: var(--salmon); }

/* Marquee */
.marquee { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; border-block: 1px solid var(--sand); padding: .9rem 0; background: var(--cream); width: 100vw; left: 50%; transform: translateX(-50%); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track span { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2.4vw, 1.9rem); padding-right: 2.2rem; white-space: nowrap; font-variation-settings: "SOFT" 100, "WONK" 1; }
.marquee__track span::after { content: "✦"; color: var(--salmon); font-style: normal; font-size: .7em; margin-left: 2.2rem; vertical-align: .15em; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 5rem; gap: 2rem; }
  .hero__art { order: -1; height: 46svh; min-height: 300px; max-height: 460px; }
  .arch--back { inset: 0 0 10% 22%; }
  .arch--front { width: 56%; height: 70%; border-width: 6px; }
  .hero__name { font-size: clamp(3.6rem, 19vw, 7rem); }
  .tickets { max-width: none; }
}

/* ---------- BIO ---------- */
.bio { height: 230vh; position: relative; }
.bio__sticky {
  position: sticky; top: 0; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 5rem var(--pad); max-width: 1200px; margin: 0 auto;
}
.bio__text {
  font-family: var(--serif); font-weight: 350; font-size: clamp(1.45rem, .9rem + 2.4vw, 3rem); line-height: 1.22;
  letter-spacing: -.01em; margin: 1.6rem 0 0; max-width: min(30ch, 72%); font-variation-settings: "SOFT" 50, "opsz" 72;
}
.bio__text .w { opacity: .14; transition: opacity .35s, color .35s; }
.bio__text .w.is-lit { opacity: 1; }
.bio__text .w.is-key.is-lit { color: var(--terra); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.polaroid { margin: 0; background: var(--paper); padding: .7rem .7rem 2.6rem; box-shadow: 0 25px 50px -20px rgba(31, 36, 71, .4); }
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.polaroid--bio { position: absolute; right: var(--pad); bottom: 12%; width: clamp(150px, 18vw, 250px); transform: rotate(var(--rot, 6deg)) translateY(var(--ty, 0)); transition: transform .2s linear; }
@media (max-width: 900px) {
  .bio { height: 200vh; }
  .bio__text { max-width: none; }
  .polaroid--bio { position: relative; right: auto; bottom: auto; margin: 2.4rem 0 0 auto; width: 46%; }
}

/* ---------- FORCES (deck of cards) ---------- */
.forces { padding: clamp(4rem, 10vw, 9rem) 0; }
.deck {
  display: flex; justify-content: center; gap: 0; padding: 2rem var(--pad) 3rem; perspective: 1600px;
  max-width: 1300px; margin: 0 auto;
}
.card {
  --spread: 0; position: relative; flex: 0 0 auto; width: clamp(220px, 22vw, 290px); aspect-ratio: 2 / 3;
  margin-inline: calc((1 - var(--spread)) * -95px + var(--spread) * 10px);
  transform: rotate(calc((var(--idx) - 1.5) * (1 - var(--spread)) * 7deg)) translateY(calc(var(--spread) * var(--lift, 0px)));
  transition: transform .9s var(--ease), margin .9s var(--ease);
  cursor: pointer; border: 0; padding: 0; background: none; transform-style: preserve-3d;
}
.deck.is-spread .card { --spread: 1; }
.card:nth-child(even) { --lift: 34px; }
.card__inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.card.is-flipped .card__inner { transform: rotateY(180deg); }
.card:hover .card__inner { transform: translateY(-10px) rotateX(4deg); }
.card.is-flipped:hover .card__inner { transform: rotateY(180deg) translateY(-10px); }
.card__face {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 30px 50px -25px rgba(31, 36, 71, .5); text-align: left;
}
.card__front { background: var(--paper); padding: .65rem; display: flex; flex-direction: column; }
.card__front img { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: calc(var(--radius) - 8px); }
.card__front h3 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.55rem; margin: .7rem .4rem .3rem; display: flex; justify-content: space-between; align-items: baseline; font-variation-settings: "SOFT" 100, "WONK" 1; }
.card__front h3 small { font-family: var(--sans); font-style: normal; font-size: .75rem; color: var(--muted); letter-spacing: .1em; }
.card__back { transform: rotateY(180deg); background: var(--indigo); color: var(--cream); padding: 1.8rem 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.card__back::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(246, 239, 228, .25); border-radius: calc(var(--radius) - 8px); pointer-events: none; }
.card__back h3 { font-family: var(--serif); font-weight: 350; font-size: 1.7rem; line-height: 1.1; margin: 0; color: var(--salmon-soft); font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }
.card__back p { margin: 0; font-size: .98rem; line-height: 1.55; }
.card__back span { font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; opacity: .6; }
@media (max-width: 900px) {
  .deck { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding: 1rem var(--pad) 2.5rem; scrollbar-width: none; }
  .deck::-webkit-scrollbar { display: none; }
  .card { width: 72vw; max-width: 300px; margin: 0; scroll-snap-align: center; transform: none !important; }
  .card:hover .card__inner { transform: none; }
  .card.is-flipped:hover .card__inner { transform: rotateY(180deg); }
}

/* ---------- PARCOURS (river) ---------- */
.parcours { padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem); background: linear-gradient(var(--cream), var(--paper) 15%, var(--paper) 85%, var(--cream)); }
.river { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 var(--pad); }
.river__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.river__bed { fill: none; stroke: var(--water); stroke-opacity: .28; stroke-width: 34; stroke-linecap: round; }
.river__flow { fill: none; stroke: var(--paper); stroke-opacity: .9; stroke-width: 2.5; stroke-dasharray: 3 22; stroke-linecap: round; animation: flow 1.6s linear infinite; }
.river__trail { fill: none; stroke: var(--salmon); stroke-width: 3; stroke-linecap: round; }
/* water flows up the page: the salmon swims down, against the current */
@keyframes flow { to { stroke-dashoffset: 25; } }
.salmon {
  position: absolute; left: 0; top: 0; z-index: 5; width: 74px; height: 31px; padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: 50% 50%; will-change: transform; filter: drop-shadow(0 6px 6px rgba(31, 36, 71, .25));
  -webkit-tap-highlight-color: transparent;
}
.salmon svg { width: 100%; height: 100%; overflow: visible; }
.salmon__tail { transform-origin: 18px 25px; animation: tail .45s ease-in-out infinite alternate; }
@keyframes tail { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
.salmon.is-bump { animation: bump .45s var(--ease); }
@keyframes bump { 50% { filter: drop-shadow(0 0 14px var(--salmon)); } }

.stations { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.station { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 9vw, 9rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem) 0; }
.station__card {
  background: var(--cream); border-radius: var(--radius); padding: clamp(1.2rem, 2.4vw, 2rem);
  box-shadow: 0 20px 45px -30px rgba(31, 36, 71, .45); border: 1px solid var(--sand);
}
.station:nth-child(odd) .station__card { grid-column: 1; }
.station:nth-child(odd) .station__img { grid-column: 2; }
.station:nth-child(even) .station__card { grid-column: 2; grid-row: 1; }
.station:nth-child(even) .station__img { grid-column: 1; grid-row: 1; }
.station__img { width: min(100%, 300px); justify-self: center; aspect-ratio: 1; border-radius: 50%; overflow: hidden; transform: rotate(-8deg) scale(.85); opacity: 0; transition: transform 1.2s var(--ease), opacity 1.2s var(--ease); box-shadow: 0 20px 40px -25px rgba(31, 36, 71, .5); border: 6px solid var(--paper); }
.station.is-in .station__img { transform: none; opacity: 1; }
.station__img img { width: 100%; height: 100%; object-fit: cover; }
.station__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .6rem; }
.chip { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; background: var(--salmon-soft); color: var(--terra); font-weight: 600; }
.chip--date { background: transparent; border: 1px solid var(--sand); color: var(--muted); }
.station h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem); line-height: 1.15; margin: 0 0 .2rem; font-variation-settings: "SOFT" 50; }
.station__lieu { margin: 0 0 .8rem; font-style: italic; font-family: var(--serif); color: var(--terra); }
.station ul { margin: 0; padding: 0; list-style: none; }
.station li { position: relative; padding-left: 1.3rem; margin: .3rem 0; font-size: .95rem; color: #3a3d5c; }
.station li::before { content: ""; position: absolute; left: 0; top: .7em; width: .55rem; height: 2px; background: var(--salmon); }
.river__end { position: relative; z-index: 2; text-align: center; padding: 3rem 0 1rem; }
.river__end-dot { display: block; width: 22px; height: 22px; border-radius: 50%; margin: 0 auto 1rem; background: var(--salmon); box-shadow: 0 0 0 8px rgba(238, 139, 111, .25), 0 0 0 18px rgba(238, 139, 111, .1); }
.river__end-label { font-family: var(--serif); font-style: italic; font-size: 1.6rem; margin: 0; }
.river__end-cta { display: inline-block; margin-top: .6rem; color: var(--terra); text-decoration: none; border-bottom: 1px solid currentColor; }
@media (max-width: 900px) {
  .river { padding-left: calc(var(--pad) + 46px); }
  .station { grid-template-columns: 1fr; gap: 1rem; padding: 1.4rem 0; }
  .station .station__card, .station .station__img { grid-column: 1 !important; grid-row: auto !important; }
  .station__img { width: 46%; justify-self: start; order: -1; }
  .river__end { text-align: left; }
  .river__end-dot { margin: 0 0 1rem -39px; }
  .salmon { width: 56px; height: 24px; }
  .river__bed { stroke-width: 22; }
}

/* ---------- LANGUES (stamps) ---------- */
.langues { padding: clamp(4rem, 9vw, 8rem) 0; }
.stamps { display: flex; flex-wrap: wrap; gap: clamp(1rem, 3vw, 2.4rem); justify-content: center; padding: 0 var(--pad); max-width: 1200px; margin: 0 auto; }
.stamp {
  --c: var(--salmon);
  position: relative; width: clamp(150px, 20vw, 210px); aspect-ratio: 4 / 5; padding: 9px; background: var(--paper);
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 6px, #0000 97%, #000) -9px -9px / 18px 18px round;
          mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle 6px, #0000 97%, #000) -9px -9px / 18px 18px round;
  filter: drop-shadow(0 12px 18px rgba(31, 36, 71, .18));
  transform: rotate(var(--r, 0deg)); transition: transform .6s var(--ease);
}
.stamp:hover { transform: rotate(0deg) scale(1.05); }
.stamp__in { height: 100%; margin: 6px; height: calc(100% - 12px); background: var(--c); color: var(--paper); display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; position: relative; overflow: hidden; }
.stamp__in::before { content: ""; position: absolute; width: 180%; aspect-ratio: 1; border-radius: 50%; right: -120%; bottom: -70%; background: rgba(255, 255, 255, .12); }
.stamp__lang { position: relative; z-index: 1; font-family: var(--serif); font-style: italic; font-size: clamp(.95rem, 1.9vw, 1.6rem); line-height: 1.05; font-variation-settings: "SOFT" 100, "WONK" 1; }
.stamp__lvl { font-size: clamp(2rem, 4vw, 3.2rem); font-family: var(--serif); font-weight: 600; line-height: 1; }
.stamp__lvl--txt { font-size: 1rem; font-weight: 500; font-family: var(--sans); }
.stamp__post {
  position: absolute; right: 12px; top: 36%; width: 66px; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(31, 36, 71, .55);
  display: grid; place-items: center; text-align: center; font-size: .48rem; padding: 6px; letter-spacing: .15em; text-transform: uppercase; color: rgba(31, 36, 71, .65);
  transform: rotate(-18deg); opacity: 0; scale: 1.6; transition: opacity .3s, scale .45s cubic-bezier(.3, 1.6, .5, 1);
}
.stamp.is-in .stamp__post { opacity: 1; scale: 1; transition-delay: calc(.3s + var(--i) * .15s); }
.stamp:nth-child(4n+2) { --c: var(--indigo); }
.stamp:nth-child(4n+3) { --c: var(--terra); }
.stamp:nth-child(4n+4) { --c: #7E9A8A; }

/* ---------- CONTACT ---------- */
.contact { position: relative; padding: clamp(4rem, 10vw, 9rem) var(--pad) clamp(5rem, 10vw, 8rem); overflow: hidden; background: var(--indigo); color: var(--cream); }
.contact__art { position: absolute; inset: 0; opacity: .35; }
.contact__art img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; }
.contact__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--indigo) 0%, rgba(43, 53, 103, .55) 50%, var(--indigo) 100%); }
.contact__inner { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; }
.contact .section-label { color: rgba(246, 239, 228, .7); }
.contact .section-label span { color: var(--salmon); }
.contact__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.3rem, 1.2rem + 5vw, 5.6rem); line-height: 1.02; letter-spacing: -.025em; margin: 1rem 0; max-width: 14ch; font-variation-settings: "SOFT" 80, "opsz" 144; }
.contact__text { max-width: 38ch; font-size: 1.1rem; opacity: .85; margin: 0 0 2.4rem; }
.tickets--contact .ticket { background: rgba(246, 239, 228, .08); color: var(--cream); backdrop-filter: blur(6px); }
.tickets--contact .ticket::after { border-color: rgba(246, 239, 228, .2); }
body.is-open .tickets--contact .ticket:hover { background: var(--salmon); color: var(--ink); }
.polaroid--drag { position: absolute; z-index: 3; width: clamp(150px, 17vw, 240px); right: 8%; top: 22%; transform: rotate(-7deg); cursor: grab; touch-action: none; user-select: none; color: var(--ink); }
.polaroid--drag:active { cursor: grabbing; }
.polaroid--drag::after { content: "← glissez-moi"; position: absolute; bottom: .7rem; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: .9rem; color: var(--muted); }
.polaroid--drag img { pointer-events: none; -webkit-user-drag: none; }
@media (max-width: 900px) {
  .polaroid--drag { position: relative; right: auto; top: auto; margin: 3rem auto 0; display: block; width: 58%; }
}

/* ---------- DECOR (floating elements, parallax) ---------- */
.bio, .forces, .parcours, .langues { position: relative; overflow-x: clip; }
.decor { position: absolute; z-index: 1; pointer-events: none; width: var(--s, 80px); will-change: transform; }
.decor img { width: 100%; height: auto; }
.station__img { will-change: translate; }
@media (max-width: 900px) { .decor { width: calc(var(--s, 80px) * .62); } .decor[data-desk-only] { display: none; } }

/* ---------- TIDE ---------- */
.tide { position: relative; height: clamp(120px, 22vh, 220px); margin-bottom: -2px; overflow: hidden; pointer-events: none; }
.tide__wave { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; transform-origin: bottom; }
.tide__wave path { fill: var(--indigo); }
.tide__wave--back { opacity: .45; animation: tideX 14s linear infinite; transform: scaleY(var(--tide-b, .1)); }
.tide__wave--front { animation: tideX 9s linear infinite reverse; transform: scaleY(var(--tide, .1)); }
@keyframes tideX { from { translate: 0 0; } to { translate: -50% 0; } }
.tide__boat { position: absolute; z-index: 2; width: clamp(56px, 7vw, 96px); left: 18%; bottom: calc(var(--tide, .1) * 45% + 4%); animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(4deg); } }

/* ---------- FOOTER ---------- */
.footer { display: flex; justify-content: space-between; padding: 1.6rem var(--pad); font-size: .85rem; color: var(--muted); background: var(--cream); }
.footer p { margin: 0; }
.footer__top { text-decoration: none; }

/* ---------- SECRET ---------- */
.secret { border: 0; border-radius: var(--radius); padding: 2.4rem 2rem 1.6rem; max-width: min(90vw, 460px); background: var(--paper); color: var(--ink); text-align: center; box-shadow: 0 40px 80px -30px rgba(31, 36, 71, .6); }
.secret::backdrop { background: rgba(31, 36, 71, .55); backdrop-filter: blur(4px); }
.secret[open] { animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.85) rotate(-3deg); opacity: 0; } }
.secret__text { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.35; margin: 0 0 1.4rem; font-variation-settings: "SOFT" 100, "WONK" 1; }
.secret__close { border: 0; background: var(--indigo); color: var(--cream); border-radius: 999px; padding: .6rem 1.4rem; cursor: pointer; }
.heart { position: fixed; z-index: 95; pointer-events: none; font-size: 1.4rem; color: var(--salmon); animation: heart 1.8s var(--ease) forwards; }
@keyframes heart { to { transform: translate(var(--dx), -40vh) rotate(var(--dr)); opacity: 0; } }

/* ---------- PRINT CV ---------- */
.print-cv { display: none; }
@media print {
  @page { size: A4; margin: 14mm 14mm; }
  body { background: #fff; font-size: 10pt; }
  body > *:not(.print-cv) { display: none !important; }
  .print-cv { display: block !important; color: #1F2447; font-family: var(--sans); }
  .pcv__head { display: flex; gap: 6mm; align-items: center; border-bottom: 1.5pt solid #EE8B6F; padding-bottom: 4mm; margin-bottom: 5mm; }
  .pcv__head img { width: 26mm; height: 26mm; border-radius: 50%; object-fit: cover; }
  .pcv__head h1 { font-family: var(--serif); font-weight: 400; font-size: 24pt; margin: 0; line-height: 1; }
  .pcv__head h1 em { color: #B8553A; }
  .pcv__head p { margin: 1.5mm 0 0; font-size: 9pt; }
  .pcv__bio { margin: 0 0 5mm; font-size: 9.5pt; line-height: 1.45; }
  .pcv h2 { font-family: var(--serif); font-weight: 500; font-size: 12pt; color: #B8553A; margin: 4mm 0 2mm; text-transform: uppercase; letter-spacing: .08em; }
  .pcv__item { display: grid; grid-template-columns: 28mm 1fr; gap: 4mm; margin-bottom: 3mm; break-inside: avoid; }
  .pcv__item b { display: block; font-size: 9.5pt; }
  .pcv__item i { font-size: 8.5pt; color: #5d5f78; }
  .pcv__item ul { margin: 1mm 0 0; padding-left: 4mm; font-size: 8.8pt; line-height: 1.35; }
  .pcv__date { font-size: 8.5pt; color: #B8553A; font-weight: 600; }
  .pcv__row { font-size: 9pt; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .bio { height: auto; }
  .bio__text .w { opacity: 1; }
  .curtain { display: none; }
}
