/* =====================================================================
   naomihuart.com — feuille de style
   Direction : « carnet de scénariste ». Encre de nuit, papier, violet.
   Glacial Indifference (titres et texte) · Courier Prime (scénario) · Caveat (notes)

   Sommaire : 1. Polices  2. Variables  3. Base  4. Traits à la main
              5. Boutons & liens  6. En-tête  7. Bannière & page de scénario
              8. Sections  9. Fiches bristol (offres)  10. Projets
              11. À propos  12. Pages offres  13. Contact  14. Pied de page
              15. Divers
   ===================================================================== */

/* 1. Polices (auto-hébergées, licence SIL OFL) ------------------------- */
@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/glacial-indifference.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Glacial Indifference";
  src: url("../fonts/glacial-indifference-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Courier Prime";
  src: url("../fonts/courier-prime-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* 2. Variables -------------------------------------------------------- */
:root {
  --ink: #0b0a12;
  --ink-2: #110f1b;
  --ink-3: #191626;
  --paper: #f2ede2;
  --paper-2: #e9e2d3;
  --paper-ink: #1c1828;
  --paper-soft: #5a5468;

  --text: #ebe7f3;
  --soft: #a7a2b9;
  --mute: #75708a;
  --rule: rgba(235, 231, 243, .14);
  --rule-strong: rgba(235, 231, 243, .26);

  --violet: #8a55f8;
  --indigo: #4330f8;
  --lilac: #bfa9ff;
  --focus: #cdbcff;
  --success: #1f7a4d;
  --error: #b3261e;

  --serif: "Glacial Indifference", "Century Gothic", "Avenir Next", "Segoe UI", sans-serif; /* police principale */
  --mono: "Courier Prime", "Courier New", Courier, monospace;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;

  --container: 1180px;
  --gutter: clamp(18px, 4.5vw, 44px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: dark;
}

/* 3. Base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + .25vw, 1.15rem);
  font-weight: 360;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Grain de pellicule sur toute la page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: .06;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.9rem, 7.4vw, 6.2rem); font-weight: 340; }
h2 { font-size: clamp(2.2rem, 4.8vw, 3.8rem); font-weight: 360; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 450; letter-spacing: -.01em; }

p { margin: 0 0 1em; text-wrap: pretty; }
img, svg, video { display: block; max-width: 100%; height: auto; }
strong { font-weight: 600; color: var(--text); }
em { font-style: italic; }

a { color: var(--lilac); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: #fff; }

:focus-visible { outline: 2px dashed var(--focus); outline-offset: 4px; }
::selection { background: var(--violet); color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.kicker {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lilac);
}

.margin-note {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1.15;
  color: var(--lilac);
  transform: rotate(-3deg);
  margin: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 300;
  padding: 10px 16px; background: var(--paper); color: var(--paper-ink);
  font-family: var(--mono); text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* En-tête de séquence (slugline) */
.slug {
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  margin: 0 0 clamp(28px, 4vw, 44px);
  font-family: var(--mono);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--soft);
}
.slug-num { color: var(--lilac); font-weight: 400; }
.slug-num-end { margin-left: auto; }
@media (max-width: 640px) { .slug { gap: .8rem; font-size: .82rem; } .slug-num-end { display: none; } }

/* 4. Traits à la main ---------------------------------------------- */
.mark { position: relative; display: inline-block; white-space: nowrap; font-style: italic; }
.hand { position: absolute; overflow: visible; pointer-events: none; color: var(--violet); }
.hand path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.3s .5s var(--ease) forwards;
}
.js .reveal:not(.is-visible) .hand path { animation: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.hand-circle { left: -4%; top: -12%; width: 110%; height: 126%; }
.hero h1 .mark:first-of-type { margin-left: .12em; }
.hand-underline { left: -2%; bottom: -.18em; width: 104%; height: .32em; }
.hand-arrow { position: static; display: inline-block; width: 64px; height: 32px; vertical-align: middle; color: var(--lilac); }
.hand-arrow path { stroke-width: 2; }

/* 5. Boutons & liens -------------------------------------------------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 22px;
  border: 1.5px solid var(--paper);
  border-radius: 2px;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--mono); font-weight: 700; font-size: .9rem;
  letter-spacing: .05em; text-transform: uppercase; text-decoration: none;
  box-shadow: 5px 5px 0 var(--violet);
  cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
.btn:hover { color: var(--paper-ink); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--violet); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--violet); }
.btn-ink { background: var(--paper-ink); border-color: var(--paper-ink); color: var(--paper); }
.btn-ink:hover { color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-hand {
  font-family: var(--serif); font-style: italic; font-size: 1.12rem;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--violet);
  text-decoration-thickness: 1.5px;
  text-underline-offset: .28em;
}
.link-hand::after { content: " →"; display: inline-block; transition: transform .2s var(--ease); font-style: normal; }
.link-hand:hover { color: #fff; text-decoration-style: wavy; }
.link-hand:hover::after { transform: translateX(4px); }

/* 6. En-tête ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 10, 18, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }

.brand { display: inline-flex; align-items: baseline; gap: 10px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--serif); font-style: italic; font-size: 1.45rem; font-weight: 420; letter-spacing: -.01em; }
.brand-role { font-family: var(--mono); font-size: .8rem; color: var(--mute); }

.site-nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: inline-block; padding: 8px 10px;
  font-family: var(--mono); font-size: .86rem;
  color: var(--soft); text-decoration: none;
}
.site-nav a:hover { color: var(--text); text-decoration: underline wavy var(--violet) 1px; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { color: var(--text); text-decoration: underline var(--violet) 2px; text-underline-offset: 6px; }
.nav-cta { margin-left: 12px; }
.nav-cta a {
  padding: 7px 14px; border: 1.5px solid var(--text); color: var(--text);
  box-shadow: 3px 3px 0 var(--violet); transition: transform .15s, box-shadow .15s;
}
.nav-cta a:hover { text-decoration: none; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--violet); }

.nav-toggle {
  display: none; padding: 8px 14px;
  border: 1.5px solid var(--rule-strong); border-radius: 2px; background: transparent;
  color: var(--text); font-family: var(--mono); font-size: .85rem; text-transform: uppercase; cursor: pointer;
}

@media (max-width: 1060px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: var(--ink); border-bottom: 1px solid var(--rule);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 28px; }
  .site-nav li { border-bottom: 1px dashed var(--rule); }
  .site-nav a { display: block; padding: 16px 2px; font-size: 1rem; }
  .nav-cta { margin: 20px 0 0; border: 0 !important; }
  .nav-cta a { text-align: center; }
}

/* 7. Bannière & page de scénario ------------------------------------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 9vw, 120px) 0 clamp(80px, 11vw, 150px);
  background: radial-gradient(55% 60% at 88% 18%, rgba(138, 85, 248, .16), transparent 70%);
}
.hero-video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4.2fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.fade-in { margin: 0 0 22px; font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: .9rem; color: var(--soft); }
.hero h1 { margin-bottom: .45em; }
.hero h1 .mark { color: var(--text); }
.hero-sub { max-width: 34ch; font-style: italic; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--lilac); font-weight: 380; }
.hero-text { max-width: 58ch; color: var(--soft); margin-bottom: 2.4rem; }

.script-page {
  position: relative;
  padding: 44px 40px 52px 58px;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--mono);
  font-size: .9rem;
  line-height: 1.5;
  transform: rotate(2.4deg);
  box-shadow: 0 2px 0 var(--paper-2), 0 34px 60px -24px rgba(0, 0, 0, .85);
}
/* attaches parisiennes */
.script-page::before {
  content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 12px;
  background:
    radial-gradient(circle at 6px 18%, #9a937f 0 4px, transparent 4.5px),
    radial-gradient(circle at 6px 82%, #9a937f 0 4px, transparent 4.5px);
}
.script-page p { margin: 0 0 1.1em; }
.sp-slug { font-weight: 700; position: relative; }
.sp-slug span { position: absolute; left: -2.6em; font-weight: 400; color: var(--paper-soft); }
.sp-char { margin: 0 0 0 36% !important; }
.sp-paren { margin: 0 0 0 28% !important; color: var(--paper-soft); }
.sp-dial { margin: 0 8% 1.1em 18% !important; }
.sp-trans { text-align: right; font-weight: 700; }
.sp-pagenum { position: absolute; top: 18px; right: 22px; color: var(--paper-soft); }
@media (max-width: 960px) {
  .script-page { max-width: 440px; transform: rotate(1.5deg); margin: 8px auto 0 4px; font-size: .84rem; }
}

/* 8. Sections ---------------------------------------------------------- */
.section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
/* fond « tableau de liège / carnet à points » */
.section-wall {
  background-color: var(--ink-2);
  background-image: radial-gradient(rgba(235, 231, 243, .07) 1px, transparent 1.2px);
  background-size: 24px 24px;
  border-block: 1px solid var(--rule);
}
.section-head { max-width: 780px; margin-bottom: clamp(48px, 7vw, 80px); }
.section-head > p:not(.kicker) { color: var(--soft); max-width: 62ch; }

/* 9. Fiches bristol (offres) ----------------------------------------- */
.offers { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: stretch; }
@media (max-width: 900px) { .offers { grid-template-columns: 1fr; } }

.index-card {
  --line: 32px;
  position: relative;
  display: flex; flex-direction: column;
  padding: 52px clamp(26px, 3.5vw, 44px) 40px clamp(56px, 6vw, 76px);
  background-color: var(--paper);
  background-image:
    linear-gradient(90deg, transparent calc(clamp(56px, 6vw, 76px) - 18px), rgba(138, 85, 248, .5) calc(clamp(56px, 6vw, 76px) - 18px), rgba(138, 85, 248, .5) calc(clamp(56px, 6vw, 76px) - 16px), transparent calc(clamp(56px, 6vw, 76px) - 16px)),
    repeating-linear-gradient(180deg, transparent 0 calc(var(--line) - 1px), rgba(67, 48, 248, .16) calc(var(--line) - 1px) var(--line));
  background-position: 0 0, 0 20px;
  color: var(--paper-ink);
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .9);
  transition: transform .35s var(--ease);
}
.card-a { transform: rotate(-1.2deg); }
.card-b { transform: rotate(.9deg); margin-top: 28px; }
.index-card:hover { transform: rotate(0) translateY(-4px); }
@media (max-width: 900px) { .card-b { margin-top: 0; } }

/* morceau de scotch */
.index-card::before, .poster::before, .polaroid::before, .form.paper::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 110px;
  height: 30px;
  transform: translateX(-50%) rotate(-3deg);
  background: rgba(233, 226, 211, .55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
  clip-path: polygon(3% 0, 97% 4%, 100% 30%, 96% 55%, 99% 100%, 2% 96%, 0 70%, 4% 40%);
  z-index: 2;
}
.card-b::before { transform: translateX(-50%) rotate(4deg); left: 42%; }

.card-tag { margin: 0 0 22px; font-family: var(--mono); font-size: .8rem; line-height: 1.4; text-transform: uppercase; color: var(--indigo); }
.index-card h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 420; margin-bottom: .6em; }
.index-card p { line-height: var(--line); }
.card-q { font-style: italic; font-size: 1.18rem; }
.card-scribble { font-family: var(--hand); font-weight: 500; font-size: 1.55rem; color: var(--violet); transform: rotate(-2deg); margin: 4px 0 28px !important; }
.index-card .btn { align-self: flex-start; margin-top: auto; }

/* 10. Projets ---------------------------------------------------------- */
.projects { display: grid; gap: clamp(88px, 12vw, 160px); }

.project { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.project:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.project:nth-child(even) .poster { order: 2; }
@media (max-width: 880px) {
  .project, .project:nth-child(even) { grid-template-columns: 1fr; }
  .project:nth-child(even) .poster { order: 0; }
  .project .poster { max-width: 400px; }
}

.poster { position: relative; margin: 0; transform: rotate(var(--tilt, 0deg)); }
.tilt--2 { --tilt: -2deg; } .tilt--1 { --tilt: -1deg; } .tilt-0 { --tilt: 0deg; } .tilt-1 { --tilt: 1.2deg; } .tilt-2 { --tilt: 2deg; }
.poster::before { left: 22%; width: 90px; transform: translateX(-50%) rotate(-8deg); }
.poster::after {
  content: ""; position: absolute; top: -10px; right: 6%; width: 80px; height: 26px; z-index: 2;
  background: rgba(233, 226, 211, .5); transform: rotate(7deg);
  clip-path: polygon(2% 6%, 98% 0, 96% 40%, 100% 100%, 3% 94%, 0 50%);
}
.poster figcaption {
  margin-top: 18px; padding-left: 6px;
  font-family: var(--hand); font-weight: 500; font-size: 1.45rem; line-height: 1.2; color: var(--lilac);
  transform: rotate(-1.5deg);
}
.poster figcaption::before { content: "↑ "; }

.project-media {
  position: relative; overflow: hidden; border-radius: 2px;
  background: var(--ink-3);
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .95);
}
.project-media.is-affiche { aspect-ratio: 2 / 3; }
.project-media.is-a4 { aspect-ratio: 1414 / 2000; }
.project-media.is-vertical, .project-media.is-playing-vertical { aspect-ratio: 9 / 16; }
.project-media.is-paysage, .project-media.is-playing-paysage { aspect-ratio: 16 / 9; }
.project-media > img { width: 100%; height: 100%; object-fit: cover; }
.project-media iframe, .project-media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

.play {
  position: absolute; left: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; border: 1.5px solid var(--paper);
  background: var(--paper); color: var(--paper-ink);
  font-family: var(--mono); font-weight: 700; font-size: .82rem; text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--violet); cursor: pointer;
}
.play:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--violet); }
.play-icon { position: relative; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-ink); flex: none; }
.play-icon::after { content: ""; position: absolute; left: 10px; top: 7px; border-left: 9px solid var(--paper); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }

.project-num { margin: 0 0 10px; font-family: var(--mono); font-size: .88rem; color: var(--mute); }
.project-title { font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 340; margin-bottom: .3em; }
.stamp {
  display: inline-block; margin: 0 0 26px; padding: 4px 12px 3px;
  border: 2px solid currentColor; border-radius: 3px;
  font-family: var(--mono); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lilac); opacity: .9; transform: rotate(-3.5deg);
}
.project-pitch { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.45; font-weight: 400; color: var(--text); }
.project-body > p:not(.project-num):not(.project-pitch):not(.stamp):not(.project-links) { color: var(--soft); }

/* fiche technique tapée à la machine, avec points de conduite */
.typed { margin: 30px 0; padding: 0; font-family: var(--mono); font-size: .92rem; line-height: 1.45; }
.typed div { display: flex; align-items: baseline; gap: 0; padding: 4px 0; }
.typed dt { display: flex; flex: 1 1 auto; min-width: 7em; text-transform: uppercase; color: var(--mute); }
.typed dt::after { content: ""; flex: 1; margin: 0 .6em; border-bottom: 1px dotted var(--rule-strong); transform: translateY(-.3em); }
.typed dd { margin: 0; max-width: 62%; text-align: right; color: var(--text); }
@media (max-width: 480px) {
  .typed div { flex-direction: column; padding: 8px 0; border-bottom: 1px dotted var(--rule-strong); }
  .typed dt::after { display: none; }
  .typed dd { max-width: none; text-align: left; }
}

.project-subtitle { margin: 34px 0 14px; font-family: var(--mono); font-size: .85rem; font-weight: 700; text-transform: uppercase; color: var(--soft); }
.dash-list { columns: 2 240px; column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.dash-list li { break-inside: avoid; padding: 4px 0 4px 1.4em; text-indent: -1.4em; color: var(--soft); line-height: 1.45; }
.dash-list li::before { content: "— "; color: var(--violet); }

.project-stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 0 8px; padding: 0; list-style: none; font-family: var(--mono); font-size: .9rem; color: var(--soft); }
.project-stats strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 450; color: var(--text); }
.project-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; font-family: var(--mono); font-size: .92rem; }

/* grille « Mes projets » (accueil) */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: clamp(36px, 4vw, 52px) clamp(24px, 3vw, 40px); }
.work .poster::after { display: none; }
.work-body { margin-top: 22px; }
.work-body .kicker { margin-bottom: 8px; }
.work-body h3 { font-size: clamp(1.35rem, 1.8vw, 1.6rem); font-weight: 400; line-height: 1.15; margin: 0 0 .4em; }
.work-body .stamp { margin: 0 0 12px; }
.work-body p:not(.kicker):not(.stamp) { color: var(--soft); margin: 0 0 10px; }

/* vignettes (pages offres) */
.teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(48px, 6vw, 72px); }
.teaser { display: grid; grid-template-columns: minmax(130px, 2fr) 3fr; gap: clamp(24px, 3vw, 36px); align-items: center; }
.teaser .poster::after { display: none; }
.teaser .play { left: 8px; bottom: 8px; padding: 6px; }
.teaser .play-label { display: none; }
.teaser h3 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 400; margin-bottom: .35em; }
.teaser p:not(.kicker) { color: var(--soft); }
.teaser .kicker { margin-bottom: 10px; }
@media (max-width: 520px) { .teaser { grid-template-columns: 1fr; } .teaser .poster { max-width: 220px; } }

/* 11. À propos --------------------------------------------------------- */
.about { display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 104px); align-items: start; }
@media (max-width: 880px) { .about { grid-template-columns: 1fr; } }

.polaroid {
  position: sticky; top: calc(var(--header-h) + 40px);
  margin: 0; padding: 14px 14px 70px;
  background: #f4f1ea;
  transform: rotate(-2.5deg);
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .95);
}
.polaroid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--ink-3); }
.polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 18px; text-align: center;
  font-family: var(--hand); font-weight: 500; font-size: 1.6rem; color: var(--paper-ink);
}
@media (max-width: 880px) { .polaroid { position: relative; top: 0; max-width: 340px; } }

.about-lead { font-size: clamp(1.3rem, 2.3vw, 1.7rem); line-height: 1.45; font-weight: 380; color: var(--text); }
.about-body > p:not(.about-lead) { color: var(--soft); }

.approach { margin: 44px 0; padding: 0; }
.approach p { margin: 0; font-style: italic; font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.4; font-weight: 360; color: var(--text); }
.approach-label { display: block; margin-bottom: 10px; font-family: var(--mono); font-style: normal; font-size: .85rem; text-transform: uppercase; color: var(--lilac); }
.approach .mark { white-space: normal; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 48px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.facts li { padding: 20px 20px 4px 0; font-family: var(--mono); font-size: .88rem; line-height: 1.45; color: var(--soft); }
.facts li + li { padding-left: 20px; border-left: 1px dashed var(--rule-strong); }
.facts strong { display: block; margin-bottom: 6px; font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 400; line-height: 1.1; color: var(--text); }
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px dashed var(--rule-strong); }
}

/* 12. Pages offres ----------------------------------------------------- */
.page-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(72px, 10vw, 128px); border-bottom: 1px solid var(--rule); background: radial-gradient(50% 70% at 92% 8%, rgba(138, 85, 248, .14), transparent 70%); }
.page-hero h1 { max-width: 13ch; font-size: clamp(2.8rem, 7vw, 5.6rem); }
.page-hero-sub { font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.3; color: var(--lilac); font-weight: 360; margin-bottom: 1.4em; }
.page-hero-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 3.5fr); gap: clamp(24px, 5vw, 72px); align-items: start; margin-bottom: 2.4rem; }
@media (max-width: 860px) { .page-hero-cols { grid-template-columns: 1fr; } }
.page-hero-intro p { color: var(--soft); }
.page-hero-intro p:first-child { color: var(--text); font-size: 1.2em; line-height: 1.5; }
.page-hero .margin-note { padding-top: 12px; }

/* séquencier des prestations */
.services-list { margin: 0; padding: 0; list-style: none; counter-reset: seq; border-top: 1px solid var(--rule-strong); }
.services-list li {
  counter-increment: seq;
  display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) minmax(0, 1.25fr); gap: 12px clamp(24px, 4vw, 56px);
  padding: clamp(26px, 3.5vw, 40px) 0;
  border-bottom: 1px dashed var(--rule-strong);
}
.services-list li::before { content: "Séq. " counter(seq, decimal-leading-zero); font-family: var(--mono); font-size: .88rem; color: var(--lilac); padding-top: .45em; }
.services-list h3 { margin: 0; }
.services-list p { margin: 0; color: var(--soft); }
@media (max-width: 760px) { .services-list li { grid-template-columns: 1fr; } .services-list li::before { padding: 0; } }

.split-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .split-text { grid-template-columns: 1fr; } }
.split-text p:not(.kicker):not(.lead) { color: var(--soft); }
.lead { font-size: clamp(1.25rem, 2.1vw, 1.55rem); line-height: 1.45; color: var(--text); font-weight: 400; }

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 56px); margin: 0; padding: 0; list-style: none; }
.benefits li { position: relative; padding-top: 22px; border-top: 1px dashed var(--rule-strong); }
.benefit-num { position: absolute; top: -22px; right: 4px; font-family: var(--hand); font-weight: 500; font-size: 2.6rem; line-height: 1; color: var(--violet); transform: rotate(-6deg); background: var(--ink); padding: 0 8px; }
.benefits p { color: var(--soft); margin: 0; }

.pullquote {
  max-width: 23ch; margin: clamp(80px, 11vw, 140px) auto 0; text-align: center;
  font-style: italic; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.25; font-weight: 340;
}
.pullquote::before, .pullquote::after { font-family: var(--hand); color: var(--violet); font-style: normal; }
.pullquote::before { content: "« "; }
.pullquote::after { content: " »"; }

.featured { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (max-width: 980px) { .featured { grid-template-columns: 1fr; } }
.featured-body > p:first-child { color: var(--text); font-size: 1.15em; }
.checklist { margin: 0 0 30px; padding: 0; list-style: none; }
.checklist li { position: relative; padding: 10px 0 10px 36px; border-bottom: 1px dashed var(--rule); color: var(--soft); }
.checklist li::before { content: "✓"; position: absolute; left: 4px; top: 2px; font-family: var(--hand); font-size: 1.7rem; color: var(--violet); transform: rotate(-6deg); }
.note { padding-left: 18px; border-left: 2px solid var(--violet); color: var(--soft); font-style: italic; }
.note::before { content: "N.B. — "; font-family: var(--mono); font-style: normal; font-weight: 700; font-size: .85em; color: var(--lilac); }

.cta { padding-top: clamp(96px, 12vw, 160px); }
.cta-inner { max-width: 900px; padding-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--rule-strong); }
.cta-inner h2 { max-width: 20ch; }
.cta-inner p { max-width: 54ch; color: var(--soft); margin-bottom: 2.2rem; }
.cta-action { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.cta-note { display: inline-flex; align-items: center; gap: 6px; font-family: var(--hand); font-weight: 500; font-size: 1.6rem; color: var(--lilac); transform: rotate(-2deg); }
.cta-note .hand-arrow { transform: scaleX(-1) rotate(8deg); }

.crosslink { padding: 0 0 clamp(72px, 9vw, 110px); }
.crosslink p { margin: 0; padding-top: 28px; border-top: 1px dashed var(--rule-strong); color: var(--soft); font-style: italic; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }

/* 13. Contact ---------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
@media (max-width: 920px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-intro > p { color: var(--soft); }
.contact-info { margin: 36px 0 0; padding: 0; list-style: none; }
.contact-info li { padding: 14px 0; border-top: 1px dashed var(--rule-strong); }
.contact-info .label { display: block; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; color: var(--mute); }
.contact-info a { font-size: 1.15rem; }
.contact-intro .margin-note { margin-top: 36px; }

.form.paper {
  position: relative;
  padding: clamp(32px, 4.5vw, 52px) clamp(24px, 4vw, 48px) clamp(32px, 4vw, 44px);
  background: var(--paper); color: var(--paper-ink);
  transform: rotate(.7deg);
  box-shadow: 0 34px 60px -26px rgba(0, 0, 0, .95);
}
.form.paper::before { left: 18%; transform: rotate(-6deg); }
@media (max-width: 600px) { .form.paper { transform: none; } }
.form-head { margin: 0 0 30px; padding-bottom: 12px; border-bottom: 2px solid var(--paper-ink); font-family: var(--mono); font-weight: 700; font-size: .9rem; text-transform: uppercase; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 24px; }
.field label { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: .78rem; font-weight: 700; text-transform: uppercase; color: var(--paper-soft); }
.field .opt { font-weight: 400; text-transform: none; }
.field input, .field textarea, .field select {
  width: 100%; padding: 8px 2px;
  border: 0; border-bottom: 1.5px solid rgba(28, 24, 40, .4); border-radius: 0;
  background: transparent; color: var(--paper-ink);
  font-family: var(--mono); font-size: 1.02rem;
  transition: border-color .15s, background-color .15s;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--paper-ink) 50%), linear-gradient(135deg, var(--paper-ink) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--paper); color: var(--paper-ink); }
.field textarea {
  min-height: 192px; resize: vertical; padding: 0 2px; line-height: 32px;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(67, 48, 248, .2) 31px 32px);
  background-attachment: local;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--violet); background-color: rgba(138, 85, 248, .07); }
.field ::placeholder { color: rgba(28, 24, 40, .38); font-style: italic; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-family: var(--serif) !important; font-size: .95rem !important; font-weight: 400 !important; text-transform: none !important; color: var(--paper-soft) !important; }
.checkbox input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--violet); }
.checkbox a { color: var(--indigo); }
.form :focus-visible { outline-color: var(--indigo); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0 0 22px; padding: 12px 14px; font-size: .98rem; border-left: 3px solid currentColor; }
.form-status:empty { display: none; }
.form-status.is-success { color: var(--success); background: rgba(31, 122, 77, .1); }
.form-status.is-error { color: var(--error); background: rgba(179, 38, 30, .08); }

/* 14. Pied de page ----------------------------------------------------- */
.site-footer { padding: clamp(96px, 12vw, 160px) 0 32px; color: var(--soft); }
.footer-fade { margin: 0 0 8px; text-align: right; font-family: var(--mono); font-weight: 700; text-transform: uppercase; color: var(--soft); }
.footer-fin {
  margin: 0; font-style: italic; font-weight: 300; line-height: .9; letter-spacing: -.03em;
  font-size: clamp(5.5rem, 19vw, 15rem); color: var(--text);
}
.footer-sequel { margin: 12px 0 72px; font-style: italic; font-size: 1.15rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 36px 0 48px; border-top: 1px solid var(--rule); }
@media (max-width: 600px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer-title { margin: 0 0 14px; font-family: var(--mono); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mute); }
.footer-links { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--soft); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline wavy var(--violet) 1px; text-underline-offset: 5px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px dashed var(--rule); font-family: var(--mono); font-size: .8rem; color: var(--mute); }
.footer-legal { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-legal a { color: var(--mute); }

/* 15. Divers ----------------------------------------------------------- */
.prose { max-width: 720px; padding: clamp(56px, 9vw, 112px) 0; }
.prose h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2em; font-weight: 450; }
.prose p, .prose li { color: var(--soft); }
.prose ul { padding-left: 1.2em; }
.prose .updated { font-family: var(--mono); font-size: .88rem; color: var(--mute); }

.page-404 { min-height: 62vh; display: grid; place-content: center; text-align: center; padding: 96px var(--gutter); }
.page-404 .code { margin: 0; font-style: italic; font-weight: 300; font-size: clamp(6rem, 22vw, 12rem); line-height: 1; color: var(--lilac); }
.page-404 p:not(.code) { color: var(--soft); }
.page-404 .actions { justify-content: center; }

/* Apparition au défilement (uniquement si le JS est actif) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .index-card.reveal.is-visible.card-a { transform: rotate(-1.2deg); }
.js .index-card.reveal.is-visible.card-b { transform: rotate(.9deg); }
.js .index-card.reveal.is-visible:hover { transform: rotate(0) translateY(-4px); }
.js .form.paper.reveal.is-visible { transform: rotate(.7deg); }
.js .polaroid.reveal.is-visible { transform: rotate(-2.5deg); }
@media (max-width: 600px) { .js .form.paper.reveal.is-visible { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .hand path { stroke-dashoffset: 0; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .actions, .cta, body::after, .play { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Étiquettes (« Pour qui ? ») et accroche du contact */
.tag-list { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li { padding: 8px 16px; border: 1px dashed var(--rule-strong); border-radius: 999px; font-family: var(--mono); font-size: .9rem; color: var(--text); }
.contact-lead { font-size: clamp(1.2rem, 2.2vw, 1.5rem); color: var(--text); }
.contact-lead a { color: var(--lilac); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* En-tête sur téléphone : le nom sur une ligne */
.brand-name { white-space: nowrap; }
@media (max-width: 479px) { .brand-role { display: none; } }

/* 16. Citations -------------------------------------------------------- */
.quote { margin: 0; max-width: 40ch; }
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font-style: italic; font-size: clamp(1.45rem, 2.8vw, 2.15rem); line-height: 1.3; font-weight: 340; color: var(--text); }
.quote figcaption { display: inline-block; margin-top: 16px; font-family: var(--hand); font-weight: 500; font-size: 1.5rem; line-height: 1.2; color: var(--lilac); transform: rotate(-1.5deg); }
.quote figcaption::before { content: "— "; }
.quote figcaption cite { font-style: normal; }
.quote-band { padding: clamp(64px, 9vw, 120px) 0; }
.quote-band .quote { margin-inline: auto; text-align: center; }
.quote-band .quote-after { max-width: 52ch; margin: 36px auto 0; text-align: center; color: var(--soft); font-size: 1.12rem; }
.quote-sm blockquote p { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.quote-sm figcaption { font-size: 1.3rem; }

/* citation illustrée (image + texte) */
.quote-figure { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(64px, 9vw, 110px); }
.quote-figure .still { position: relative; margin: 0; transform: rotate(-1.5deg); }
.quote-figure .still img { display: block; width: 100%; height: auto; border: 10px solid var(--paper); border-bottom-width: 34px; box-shadow: 0 22px 50px rgba(0, 0, 0, .45); }
.quote-figure .still::before {
  content: ""; position: absolute; z-index: 1; top: -14px; left: 30%; width: 96px; height: 28px;
  background: rgba(242, 237, 226, .55); transform: rotate(-6deg);
}
@media (max-width: 860px) { .quote-figure { grid-template-columns: 1fr; } }

/* principes d'écriture */
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(48px, 6vw, 72px) clamp(32px, 5vw, 72px); margin: 0; padding: 0; list-style: none; counter-reset: pr; }
.principles > li { position: relative; padding-top: 26px; border-top: 1px dashed var(--rule-strong); counter-increment: pr; }
.principles > li::before { content: counter(pr); position: absolute; top: -26px; right: 4px; padding: 0 8px; background: var(--ink); font-family: var(--hand); font-weight: 500; font-size: 2.6rem; line-height: 1; color: var(--violet); transform: rotate(-6deg); }
.principles h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 420; }
.principles p { color: var(--soft); }
.principles .quote { margin-top: 22px; }
.section-wall .principles > li::before { background: var(--ink-2); }

/* bloc « Analyse de campagne » */
.case { max-width: 860px; }
.case h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 420; margin-top: 1.6em; }
.case p { color: var(--soft); }
.case .lead { color: var(--text); }

/* À propos : citation d'ouverture et signature narrative */
.about-quote { margin-bottom: clamp(48px, 7vw, 80px); }
.about-body h3 { margin-top: 2.2em; font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 420; }
.about-ambition { font-style: italic; color: var(--text) !important; font-size: 1.15em; }

/* Réalisations : lien vers la fiche complète */
.works-more { margin-top: clamp(48px, 6vw, 72px); }
.project-body .checklist { margin-bottom: 18px; }
.project .stamp { max-width: 100%; white-space: normal; }

/* Titre d’accueil (phrase longue) */
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 4.4rem); max-width: 16ch; }
@media (min-width: 1100px) { .works { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 48px 28px; } }
