/* Réalisations et page Nicolas.
   Reprise de la maquette du site de Nicolas Leblanc (journal, études),
   isolée sous .np pour cohabiter avec marketing.css, qui porte l'en-tête
   et le pied de page du studio. Les valeurs viennent de tokens.css.
   Généré une fois depuis la maquette, puis maintenu à la main. */

/* Remise à niveau : marketing.css annule marges et couleurs des titres et
   paragraphes, et retire le soulignement des liens. La maquette en dépend. */
.np h1, .np h2, .np h3, .np p { margin: revert; }
.np p { color: inherit; }
.np a { text-decoration: underline; }
.np video { display: block; max-width: 100%; }


.np {
  color-scheme: dark;
  --os: var(--accent-2);
  --os-ink: #1a1b1e;
  --os-muted: #55534f;
  --line: rgba(244, 242, 238, 0.14);
  --line-os: rgba(10, 11, 13, 0.14);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(72px, 9vw, 128px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
.np {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.np img { display: block; max-width: 100%; height: auto; }
.np a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }

.np .btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: var(--r-md);
  font: 600 15px/1.2 var(--font-sans);
  text-decoration: none; cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.np .btn--primary { background: var(--os); color: var(--bg-0); }
.np .btn--primary:hover { background: var(--accent-2-strong); }
.np .btn--primary:active { background: var(--accent-strong); }
.np .btn--ghost { border: 1px solid var(--border-strong); color: var(--text-1); }
.np .btn--ghost:hover { border-color: rgba(244, 242, 238, 0.42); }

.np .open { padding: clamp(36px, 4.5vw, 56px) 0 clamp(32px, 3.5vw, 44px); }
.np .open__grid { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: clamp(24px, 3.4vw, 48px); align-items: end; }
.np .open__photo { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--surface-0); aspect-ratio: 4 / 5; }
.np .open__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.02); }
.np .open__title {
  margin: 0;
  font: 500 clamp(2.4rem, 4.3vw, 3.9rem)/1.04 var(--font-display);
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.np .open__title span { color: var(--accent-strong); }
.np .open__lead { margin: 26px 0 0; max-width: 58ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--text-2); }
.np .open__meta { margin: 14px 0 0; font-size: 14px; color: var(--text-3); }
.np .open__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.np .journal { padding: 0 0 var(--section); }
.np .journal__head { display: grid; grid-template-columns: 1fr minmax(260px, 420px); gap: 24px 48px; align-items: end; padding-top: 36px; border-top: 1px solid var(--line); }
.np .h2 { margin: 0; font: 500 clamp(1.9rem, 3.4vw, 3.1rem)/1.1 var(--font-display); letter-spacing: -0.034em; text-wrap: balance; }
.np .h2--ink { color: var(--os-ink); }
.np .journal__intro { margin: 0; color: var(--text-2); }

.np .filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; margin: 32px 0 8px; }
.np .filter__btn {
  min-height: 40px; padding: 8px 14px;
  border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  background: none; color: var(--text-2);
  font: 500 15px/1.2 var(--font-sans); cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease;
}
.np .filter__btn:hover { color: var(--text-1); }
.np .filter__btn[aria-pressed="true"] { color: var(--text-1); border-bottom-color: var(--accent-strong); }
.np .filter__count { margin: 0 0 0 auto; font: 400 13px/1.4 var(--font-mono); color: var(--text-3); }

.np .log { list-style: none; margin: 0; padding: 0; }
.np .entry {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) minmax(280px, 400px);
  gap: 20px clamp(24px, 3vw, 48px);
  padding: 34px 0;
  border-top: 1px solid var(--line);
  transition: opacity 260ms var(--ease-out);
}
.np .entry.is-muted { opacity: 0.32; }
.np .entry__date { margin: 4px 0 0; font: 500 14px/1.3 var(--font-mono); color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.np .entry__project { margin: 0; font: 500 clamp(1.4rem, 2.2vw, 1.85rem)/1.15 var(--font-display); letter-spacing: -0.028em; }
.np .entry__context { margin: 6px 0 0; color: var(--text-2); }
.np .entry__pair { margin: 20px 0 0; display: grid; gap: 14px; max-width: 64ch; }
.np .entry__pair div { display: grid; grid-template-columns: 70px 1fr; gap: 14px; }
.np .entry__pair dt { font: 500 12px/1.9 var(--font-mono); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.np .entry__pair dd { margin: 0; line-height: 1.6; }
.np .entry__caps { margin: 18px 0 0; font-size: 14px; color: var(--text-3); }
.np .entry__caps .is-hit { color: var(--accent-strong); }
.np .entry__link { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 15px; text-decoration-color: var(--accent); }
.np .entry__link:hover { color: var(--accent-strong); }

.np .entry__screen { margin: 0; align-self: start; }
.np .entry__screen img {
  width: 100%; max-height: 300px; object-fit: cover; object-position: top left;
  border-radius: var(--r-md); background: var(--os);
  border: 6px solid var(--os);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
}
.np .entry__screen--tall img { max-height: 300px; object-position: top center; }
.np .entry__screen--pending { display: grid; place-items: center; min-height: 180px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--text-3); font-size: 14px; }
.np .entry__screen--pending p { margin: 0; }

.np .widget, .np .tally { background: var(--os); color: var(--os-ink); border-radius: var(--r-md); padding: 18px 20px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.7); }
.np .widget__title { margin: 0 0 12px; font: 600 15px/1.3 var(--font-sans); }
.np .widget__row { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 7px 0; border-top: 1px solid var(--line-os); font-size: 14px; }
.np .widget__row span:first-child { color: var(--os-muted); }
.np .widget__note { margin: 10px 0 0; padding: 10px 12px; background: rgba(10, 11, 13, 0.05); border-radius: 6px; font-size: 14px; line-height: 1.5; }
.np .widget__actions { display: flex; justify-content: flex-end; gap: 8px; margin: 14px 0 0; font-size: 13px; font-weight: 600; }
.np .widget__ghost { padding: 7px 12px; border: 1px solid var(--line-os); border-radius: 6px; }
.np .widget__ok { padding: 7px 12px; background: var(--bg-0); color: var(--os); border-radius: 6px; }
.np .tally__row { display: grid; grid-template-columns: 72px 1fr; align-items: baseline; gap: 12px; margin: 0; padding: 10px 0; border-top: 1px solid var(--line-os); }
.np .tally__row:first-child { border-top: 0; padding-top: 0; }
.np .tally__n { font: 500 34px/1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.np .offers { background: var(--os); color: var(--os-ink); padding: var(--section) 0; }
.np .offers__list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; border-top: 1px solid var(--line-os); }
.np .offer { padding: 30px 32px 6px 0; }
.np .offer + .offer { padding-left: 32px; border-left: 1px solid var(--line-os); }
.np .offer__for { margin: 0; font-size: 14px; color: var(--os-muted); }
.np .offer__title { margin: 10px 0 0; font: 500 clamp(1.3rem, 1.9vw, 1.6rem)/1.2 var(--font-display); letter-spacing: -0.026em; }
.np .offer__text { margin: 14px 0 0; line-height: 1.65; }
.np .offer__proof { margin: 18px 0 0; font-size: 14px; color: var(--os-muted); }

.np .method { padding: var(--section) 0; }
.np .method__grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.2fr; gap: 48px; }
.np .method__rule { margin: 20px 0 0; max-width: 26ch; font: 500 clamp(1.15rem, 1.6vw, 1.35rem)/1.4 var(--font-display); color: var(--accent-strong); letter-spacing: -0.015em; }
.np .np-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.np .np-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.np .np-steps__n { font: 500 13px/1.9 var(--font-mono); color: var(--text-3); }
.np .np-steps h3 { margin: 0; font: 500 19px/1.3 var(--font-display); letter-spacing: -0.015em; }
.np .np-steps p { margin: 6px 0 0; color: var(--text-2); }

.np .voices { padding: 0 0 var(--section); }
.np .voices__list { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-top: 40px; }
.np .voice { margin: 0; padding: 28px; background: var(--surface-0); border-radius: var(--r-xl); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.np .voice blockquote { margin: 0; }
.np .voice blockquote p { margin: 0; font-size: 17px; line-height: 1.6; }
.np .voice:first-child blockquote p { font: 500 clamp(1.15rem, 1.6vw, 1.4rem)/1.45 var(--font-display); letter-spacing: -0.012em; }

.np .brief { padding: var(--section) 0; border-top: 1px solid var(--line); }
.np .brief__grid { display: grid; grid-template-columns: minmax(240px, 0.8fr) 1.2fr; gap: 48px; }
.np .brief__text p { margin: 0 0 16px; max-width: 62ch; color: var(--text-2); font-size: 17px; }
.np .brief__text p:first-child { color: var(--text-1); }
.np .brief__tools { font-size: 15px !important; color: var(--text-3) !important; }

.np .close { padding: var(--section) 0; background: var(--surface-1); border-top: 1px solid var(--line); }
.np .close__title { margin: 0; max-width: 18ch; font: 500 clamp(2.2rem, 4.6vw, 4.2rem)/1.05 var(--font-display); letter-spacing: -0.036em; text-wrap: balance; }
.np .close__text { margin: 20px 0 0; max-width: 52ch; color: var(--text-2); font-size: 18px; }

.js .np .entry.will-reveal { transform: translateY(10px); opacity: 0.55; }
.js .np .entry.is-revealed { transform: none; opacity: 1; transition: transform 700ms var(--ease-out), opacity 700ms var(--ease-out); }
.js .np .entry.is-revealed.is-muted { opacity: 0.32; }

@media (max-width: 1080px) {
  .np .entry { grid-template-columns: 80px minmax(0, 1fr); }
  .np .entry__screen { grid-column: 2; max-width: 520px; }
  .np .voices__list { grid-template-columns: 1fr 1fr; }
  .np .voice:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .np .open__grid { grid-template-columns: 1fr; align-items: start; }
  .np .open__photo { max-width: 200px; }
  .np .journal__head, .np .method__grid, .np .brief__grid { grid-template-columns: 1fr; }
  .np .offers__list { grid-template-columns: 1fr; }
  .np .offer, .np .offer + .offer { padding: 26px 0; border-left: 0; }
  .np .offer + .offer { border-top: 1px solid var(--line-os); }
}
@media (max-width: 600px) {
  .np .entry { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .np .entry__screen { grid-column: 1; }
  .np .entry__pair div { grid-template-columns: 1fr; gap: 2px; }
  .np .filter__count { width: 100%; margin: 8px 0 0; }
  .np .voices__list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .np *::before, .np *::after { transition: none !important; animation: none !important; }
  .js .np .entry.will-reveal { transform: none; opacity: 1; }
}

.np .case-head { padding: clamp(36px, 5vw, 64px) 0 0; }
.np .case-head__back { margin: 0; font: 500 14px/1.4 var(--font-mono); color: var(--text-3); }
.np .case-head__back a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line); }
.np .case-head__back a:hover { color: var(--text-1); border-bottom-color: var(--accent); }
.np .case-head__back time { color: var(--accent-strong); }
.np .case-head__title { margin: 18px 0 0; max-width: 20ch; font: 500 clamp(2.3rem, 4.6vw, 4.2rem)/1.05 var(--font-display); letter-spacing: -0.036em; text-wrap: balance; }
.np .case-head__lead { margin: 24px 0 0; max-width: 62ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--text-2); }
.np .facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 40px 0 0; border-top: 1px solid var(--line); }
.np .facts div { padding: 16px 20px 0 0; }
.np .facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.np .facts dt { font: 500 12px/1.6 var(--font-mono); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }
.np .facts dd { margin: 6px 0 0; font-size: 15px; line-height: 1.5; }
.np .case-hero { margin-top: clamp(40px, 5vw, 64px); }
.np .case-hero img, .np .plate img, .np .screens img { width: 100%; border-radius: var(--r-xl); border: 8px solid var(--os); background: var(--os); box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.8); }

.np .chapter { padding: clamp(64px, 8vw, 112px) 0 0; }
.np .chapter__grid { display: grid; grid-template-columns: minmax(220px, 0.75fr) 1.25fr; gap: 24px 56px; align-items: start; }
.np .chapter__title { margin: 0; font: 500 clamp(1.7rem, 2.8vw, 2.5rem)/1.12 var(--font-display); letter-spacing: -0.032em; text-wrap: balance; }
.np .chapter__sub { margin: 0; font: 500 clamp(1.25rem, 1.8vw, 1.5rem)/1.25 var(--font-display); letter-spacing: -0.02em; }
.np .prose p { margin: 0 0 18px; max-width: 66ch; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.np .prose p:first-child { color: var(--text-1); }
.np .prose q { color: var(--text-1); quotes: "« " " »"; }

.np .quotes { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.np .quotes li { padding: 24px 24px 0 0; }
.np .quotes li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.np .quotes p { margin: 0; font: 500 clamp(1.1rem, 1.5vw, 1.3rem)/1.4 var(--font-display); letter-spacing: -0.012em; }
.np .quotes span { display: block; margin-top: 12px; font-size: 13px; color: var(--text-3); }

.np .phases { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.np .phases li { padding: 22px 24px 0 0; }
.np .phases li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.np .phases__when { margin: 0; font: 500 13px/1.4 var(--font-mono); color: var(--accent-strong); }
.np .phases h3 { margin: 10px 0 0; font: 500 20px/1.25 var(--font-display); letter-spacing: -0.015em; }
.np .phases p:not(.phases__when) { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.np .plate { margin-top: clamp(48px, 6vw, 80px); margin-bottom: clamp(40px, 5vw, 64px); }

.np .chapter--os { background: var(--os); color: var(--os-ink); padding-bottom: clamp(64px, 8vw, 112px); margin-top: clamp(64px, 8vw, 112px); }
.np .chapter--os .chapter__title { color: var(--os-ink); }
.np .built { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-os); }
.np .built li { padding: 14px 0; border-bottom: 1px solid var(--line-os); line-height: 1.6; }
.np .built strong { font-weight: 600; }
.np .screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.np .screens figure { margin: 0; }
.np .chapter--os .screens img { border-color: #fff; background: #fff; box-shadow: 0 24px 48px -30px rgba(10, 11, 13, 0.45); }

.np .ship { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.np .ship li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.np .ship time { font: 500 14px/1.6 var(--font-mono); color: var(--accent-strong); font-variant-numeric: tabular-nums; }
.np .ship p { margin: 0; line-height: 1.6; }
.np .changed { margin: 0; padding: 0; list-style: none; }
.np .changed li { position: relative; padding: 0 0 16px 28px; line-height: 1.6; font-size: 17px; }
.np .changed li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 14px; height: 1px; background: var(--accent-strong); }
.np .lessons p { margin: 0 0 20px; max-width: 62ch; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.np .lessons strong { display: block; margin-bottom: 4px; color: var(--text-1); font: 500 clamp(1.15rem, 1.6vw, 1.35rem)/1.35 var(--font-display); letter-spacing: -0.012em; }
.np .voices__list--two { grid-template-columns: 1.2fr 1fr; margin-top: 0; }
.np.case .close { margin-top: clamp(64px, 8vw, 112px); }

@media (max-width: 1080px) {
  .np .facts { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
  .np .facts div:nth-child(4) { padding-left: 0; border-left: 0; }
  .np .phases { grid-template-columns: 1fr 1fr; row-gap: 28px; }
  .np .phases li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  .np .chapter__grid { grid-template-columns: 1fr; }
  .np .quotes, .np .screens { grid-template-columns: 1fr; }
  .np .quotes li, .np .quotes li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .np .voices__list--two { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .np .facts { grid-template-columns: 1fr 1fr; }
  .np .facts div, .np .facts div + div { padding: 14px 12px 0 0; border-left: 0; }
  .np .phases { grid-template-columns: 1fr; }
  .np .phases li, .np .phases li + li { padding: 20px 0 0; border-left: 0; }
  .np .ship li { grid-template-columns: 1fr; gap: 4px; }
  .np .case-hero img, .np .plate img, .np .screens img { border-width: 4px; border-radius: var(--r-md); }
}

.np .screens--two { grid-template-columns: repeat(2, 1fr); gap: 28px; }
.np .screens--phones { grid-template-columns: 220px 220px 1fr; gap: 28px; align-items: end; margin-top: 28px; }
.np .screens--phones img { max-height: 520px; object-fit: cover; object-position: top; }
.np .screens__note { margin: 0; max-width: 34ch; font: 500 clamp(1.1rem, 1.5vw, 1.3rem)/1.45 var(--font-display); color: var(--os-ink); letter-spacing: -0.012em; }
@media (max-width: 860px) { .np .screens--two { grid-template-columns: 1fr; } .np .screens--phones { grid-template-columns: 1fr 1fr; } .np .screens__note { grid-column: 1 / -1; } }
.np .wrap:has(> .phases) + .chapter__grid { margin-top: 56px; }
.np .case-hero video { display: block; width: 100%; height: auto; border-radius: var(--r-xl); border: 8px solid var(--os); background: #000; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, 0.8); }
@media (max-width: 600px) { .np .case-hero video { border-width: 4px; border-radius: var(--r-md); } }


/* Ajouts de l'intégration dans looptra.ai */
.np .voice__by { margin: 0; font-size: 14px; color: var(--text-3); }
.np .voice__by strong { display: block; color: var(--text-1); font-weight: 600; }
.np .offers__list--solo { grid-template-columns: 1.4fr 1fr; }
.np .offers__list--single { grid-template-columns: 1fr; }
.np .offers__list--single .offer { max-width: 70ch; }
.np .offer__text em { color: var(--os-muted); }
.np .offer__actions { margin: 24px 0 0; }
.np .offers .btn--primary { background: var(--os-ink); color: var(--os); }
.np .offers .btn--primary:hover { opacity: .85; }
.np .offer__note { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line-os); max-width: 70ch; color: var(--os-muted); }
.np .offer__note a { color: var(--os-ink); font-weight: 600; text-decoration-color: var(--accent); }
.np .page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); }
.np .page-head__title { margin: 0; max-width: 18ch; font: 500 clamp(2.4rem, 4.6vw, 4.2rem)/1.05 var(--font-display); letter-spacing: -0.036em; text-wrap: balance; }
.np .page-head__title span { color: var(--accent-strong); }
.np .page-head__lead { margin: 22px 0 0; max-width: 62ch; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--text-2); }
.np .page-head__lead a { color: var(--text-1); text-decoration-color: var(--accent); }
@media (max-width: 860px) {
  .np .offers__list--solo { grid-template-columns: 1fr; }
}
