/* Étude de cas — gabarit Indexx, d’après le modèle Northline validé.
   Styles scopés sous .nl-case. Polices auto-hébergées (pas de CDN). */

@font-face{
  font-family:"Inter";
  src:url("fonts/inter-var-latin.woff2") format("woff2");
  font-weight:300 700;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Manrope";
  src:url("fonts/manrope-var-latin.woff2") format("woff2");
  font-weight:400 800;
  font-style:normal;
  font-display:swap;
}
@font-face{
  font-family:"Instrument Serif";
  font-style:italic;
  font-weight:400;
  font-display:swap;
  src:url("fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face{
  font-family:"Instrument Serif";
  font-style:italic;
  font-weight:400;
  font-display:swap;
  src:url("fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

html,body{margin:0;background:#F6F4EF}

.nl-case {
  --nl-ivory: #F6F4EF;
  --nl-ink: #171A1D;
  --nl-copper: #B96E45;
  --nl-copper-deep: #8f4f30;
  --nl-accent-soft: #d3916c;
  --nl-forest: #202624;
  --nl-grey: #646A68;
  --nl-line: #DDDCD6;
  --nl-ease: cubic-bezier(.22, 1, .36, 1);
  background: var(--nl-ivory);
  color: var(--nl-ink);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.nl-case *, .nl-case *::before, .nl-case *::after { box-sizing: border-box; margin: 0; padding: 0; }
.nl-case img { display: block; max-width: 100%; height: auto; }
.nl-case a { color: inherit; }
.nl-case ::selection { background: var(--nl-copper); color: #fff; }
.nl-case :focus-visible { outline: 2px solid var(--nl-copper); outline-offset: 4px; }

.nl-case .nl-shell { max-width: 1160px; margin-inline: auto; padding-inline: clamp(22px, 5vw, 64px); }

/* — Typographie — */
.nl-case .nl-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #555d58; }
.nl-case .nl-eyebrow::before { content: ""; width: 30px; height: 1px; background: var(--nl-copper); flex: 0 0 auto; }
.nl-case .nl-display { font-family: "Manrope", Arial, sans-serif; font-weight: 500; letter-spacing: -.05em; line-height: 1.04; font-size: clamp(42px, 6vw, 84px); }
.nl-case .nl-h2 { font-family: "Manrope", Arial, sans-serif; font-weight: 500; letter-spacing: -.04em; line-height: 1.08; font-size: clamp(30px, 3.6vw, 52px); }
.nl-case .nl-h3 { font-family: "Manrope", Arial, sans-serif; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; font-size: clamp(20px, 2vw, 25px); }
.nl-case .nl-serif { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.nl-case .nl-copper { color: var(--nl-copper); }
.nl-case .nl-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.7; color: var(--nl-grey); }
.nl-case .nl-muted { color: var(--nl-grey); }
.nl-case .nl-small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #555d58; font-weight: 600; }
.nl-case code { font-family: inherit; font-size: inherit; font-weight: 500; }

/* — En-tête — */
.nl-case .nl-header { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.nl-case .nl-header h1 { margin-top: 28px; }
.nl-case .nl-header .nl-lead { max-width: 640px; margin-top: 26px; }
.nl-case .nl-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; margin-top: clamp(44px, 6vw, 72px); border-top: 1px solid var(--nl-line); padding-top: 26px; }
.nl-case .nl-meta dt { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #555d58; }
.nl-case .nl-meta dd { margin-top: 8px; font-size: 14.5px; font-weight: 500; line-height: 1.55; }

/* — Photographie — */
.nl-case .nl-figure { position: relative; overflow: hidden; border-radius: 14px; background: #dedbd2; }
.nl-case .nl-figure img { width: 100%; object-fit: cover; aspect-ratio: 16 / 9; }
.nl-case .nl-caption { margin-top: 14px; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #555d58; display: flex; justify-content: space-between; gap: 16px; }

/* — Sections claires — */
.nl-case .nl-section { padding-block: clamp(56px, 8vw, 104px); border-top: 1px solid var(--nl-line); }
.nl-case .nl-section-head { display: grid; gap: 18px; }
@media (min-width: 860px) {
  .nl-case .nl-section-head { grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
}
.nl-case .nl-section-head p { max-width: 560px; }
.nl-case .nl-section .nl-h2 { margin-top: 22px; }

/* — Palette — */
.nl-case .nl-palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-top: 36px; }
.nl-case .nl-swatch { border: 1px solid var(--nl-line); border-radius: 12px; padding: 14px; background: #fff; }
.nl-case .nl-swatch i { display: block; height: 56px; border-radius: 8px; margin-bottom: 12px; }
.nl-case .nl-swatch b { display: block; font-size: 13px; font-weight: 600; }
.nl-case .nl-swatch span { font-size: 11.5px; color: var(--nl-grey); font-family: ui-monospace, Consolas, monospace; }

/* — Listes éditoriales — */
.nl-case .nl-list { margin-top: 34px; border-top: 1px solid var(--nl-line); }
.nl-case .nl-list li { display: grid; grid-template-columns: 44px 1fr; gap: 10px 18px; padding-block: 24px; border-bottom: 1px solid var(--nl-line); list-style: none; }
.nl-case .nl-list li > b { color: var(--nl-copper-deep); font-size: 12px; font-weight: 600; letter-spacing: .1em; padding-top: 5px; }
.nl-case .nl-list h3 { grid-column: 2; }
.nl-case .nl-list p { grid-column: 2; margin-top: 8px; color: var(--nl-grey); max-width: 640px; }

/* — Cartes techniques — */
.nl-case .nl-cards { display: grid; gap: 16px; margin-top: 36px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .nl-case .nl-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .nl-case .nl-cards { grid-template-columns: repeat(4, 1fr); } }
.nl-case .nl-card { border: 1px solid var(--nl-line); border-radius: 14px; padding: 24px; background: #fff; }
.nl-case .nl-card b { display: block; font-family: "Manrope", Arial, sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.nl-case .nl-card p { margin-top: 10px; font-size: 14px; line-height: 1.65; color: var(--nl-grey); }
.nl-case .nl-card span { display: inline-block; margin-top: 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--nl-copper-deep); font-weight: 600; }

/* — Résultats — */
.nl-case .nl-results { margin-top: 34px; display: grid; gap: 0; border-top: 1px solid var(--nl-line); }
.nl-case .nl-results li { display: flex; gap: 16px; align-items: baseline; padding-block: 18px; border-bottom: 1px solid var(--nl-line); list-style: none; }
.nl-case .nl-results svg { flex: 0 0 auto; transform: translateY(3px); color: var(--nl-copper); }
.nl-case .nl-note { margin-top: 26px; padding: 18px 22px; border-left: 2px solid var(--nl-copper); background: #fff; border-radius: 0 12px 12px 0; font-size: 14.5px; color: var(--nl-grey); }
.nl-case .nl-note b { color: var(--nl-ink); }

/* — Section sombre — */
.nl-case .nl-dark { background: var(--nl-forest); color: var(--nl-ivory); padding-block: clamp(64px, 9vw, 112px); }
.nl-case .nl-dark .nl-eyebrow { color: rgba(246,244,239,.75); }
.nl-case .nl-dark .nl-h2 { margin-top: 22px; }
.nl-case .nl-dark .nl-lessons { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid rgba(246,244,239,.25); }
.nl-case .nl-dark .nl-lessons li { list-style: none; padding-block: 26px; border-bottom: 1px solid rgba(246,244,239,.25); display: grid; gap: 8px; grid-template-columns: 44px 1fr; }
.nl-case .nl-dark .nl-lessons li > b { color: var(--nl-accent-soft); font-size: 12px; font-weight: 600; letter-spacing: .1em; padding-top: 6px; }
.nl-case .nl-dark .nl-lessons p { color: rgba(246,244,239,.72); max-width: 640px; }
.nl-case .nl-dark .nl-serif.nl-on-dark { color: var(--nl-accent-soft); }
.nl-case .nl-cta { margin-top: 48px; display: inline-flex; min-height: 56px; align-items: center; gap: 26px; background: var(--nl-ivory); color: var(--nl-ink); text-decoration: none; padding: 16px 26px; font-size: 14px; font-weight: 600; border-radius: 4px; transition: background .25s var(--nl-ease); }
.nl-case .nl-cta:hover { background: #fff; }
.nl-case .nl-cta svg { transition: transform .25s var(--nl-ease); }
.nl-case .nl-cta:hover svg { transform: translate(3px, -3px); }

/* — Pied — */
.nl-case .nl-footer { padding-block: 30px 44px; border-top: 1px solid var(--nl-line); display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: #555d58; }

/* — Mouvement — */
@media (prefers-reduced-motion: no-preference) {
  .nl-case .nl-reveal { animation: nl-reveal .7s var(--nl-ease) both; }
  .nl-case .nl-reveal.d1 { animation-delay: .08s; }
  .nl-case .nl-reveal.d2 { animation-delay: .16s; }
}
@keyframes nl-reveal { from { opacity: 1; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .nl-case * { animation: none !important; transition: none !important; }
}

.nl-error{max-width:640px;margin:20vh auto;padding:0 24px;font-family:Inter,Arial,sans-serif;color:#171A1D}
.nl-error a{color:#8f4f30}
