:root { --header-color: var(--dark); }
html, body { height: 100%; }
body { background: var(--light); }

/* ============================================================
   HERO
   ============================================================ */
.nl-hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 140px 48px 80px;
  gap: 40px;
}

.nl-title-img {
  width: clamp(200px, 38vw, 420px);
  height: auto;
  mix-blend-mode: multiply;
}

.nl-hook {
  font-family: var(--font);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--dark);
  max-width: 580px;
}
.nl-hook em { font-style: italic; color: var(--orange); }

.nl-desc {
  font-family: var(--font);
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(29,29,29,.65);
  max-width: 480px;
}

/* Formulaire */
.nl-form {
  display: flex; flex-direction: column;
  gap: 12px; width: 100%; max-width: 480px;
}
.nl-input {
  width: 100%; padding: 16px 20px;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  color: var(--dark); background: white;
  border: 1.5px solid rgba(29,29,29,.18);
  border-radius: var(--radius-sm); outline: none;
  transition: border-color .2s, border-radius .3s ease;
}
.nl-input::placeholder { color: rgba(29,29,29,.35); }
.nl-input:focus { border-color: var(--dark); border-radius: var(--radius-md); }
.nl-submit {
  width: 100%; padding: 16px 20px;
  font-family: var(--font); font-size: 13px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0;
  color: white; background: var(--orange);
  border: none; border-radius: var(--radius-sm);
  cursor: none; transition: background .2s, border-radius .3s ease;
}
.nl-submit:hover { background: var(--dark); border-radius: var(--radius-md); }

.nl-legal {
  font-size: 13px; color: rgba(29,29,29,.45);
  line-height: 1.5; max-width: 360px;
}

/* ============================================================
   MARQUEE TÉMOIGNAGES
   ============================================================ */
.nl-social-proof {
  padding: 0;
  overflow: hidden;
}

.marquee-wrapper { overflow: hidden; }
.marquee-track {
  display: flex; gap: 16px;
  width: max-content;
  animation: marquee 35s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.nl-social-proof { margin-bottom: 80px; }

.proof-card {
  flex-shrink: 0;
  background: white;
  border: 1.5px solid rgba(29,29,29,.1);
  border-radius: var(--radius-md);
  padding: 20px;
  height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.proof-card img {
  max-height: 100%; width: auto;
  max-width: 340px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  transition: filter .35s ease;
}
.proof-card:hover img { filter: grayscale(0%); }



/* ============================================================
   ARCHIVES — section
   ============================================================ */
.nl-archives {
  background: var(--dark);
  padding: 80px 64px 100px;
}

.nl-archives-header {
  margin-bottom: 56px;
}
.nl-archives-title {
  font-family: var(--font-logo);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 900; letter-spacing: -3px; line-height: .9;
  color: var(--light);
}
.nl-archives-title em { color: var(--orange); font-style: normal; }

/* ============================================================
   GRILLE ÉDITIONS
   ============================================================ */
.nl-editions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.nl-edition-card {
  background: rgba(245,242,239,.06);
  border: 1px solid rgba(245,242,239,.1);
  border-radius: 16px;
  padding: 32px 36px;
  cursor: none;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .3s ease, border-color .3s ease;
}
.nl-edition-card:hover {
  background: rgba(245,242,239,.1);
  border-color: rgba(245,242,239,.2);
}

.nl-edition-thumb {
  border-radius: 10px; overflow: hidden;
  aspect-ratio: 16/9; margin-bottom: 4px;
}
.nl-edition-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.nl-edition-card:hover .nl-edition-thumb img { transform: scale(1.04); }

.nl-edition-date {
  font-family: var(--font);
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0;
  color: rgba(245,242,239,.4);
}

.nl-edition-titre {
  font-family: var(--font);
  font-size: clamp(17px, 1.5vw, 22px);
  font-weight: 800; line-height: 1.25;
  color: var(--light);
  flex: 1;
}

.nl-edition-cta {
  display: inline-block;
  font-family: var(--font-logo);
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 600; letter-spacing: -0.3px;
  color: var(--orange);
  position: relative; isolation: isolate;
  padding: 2px 4px;
  align-self: flex-start;
  transition: color .2s;
}
.nl-edition-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--teal, #8CDFC8);
  transform: scaleX(0); transform-origin: left;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
  z-index: -1;
}
.nl-edition-card:hover .nl-edition-cta::before { transform: scaleX(1); }
.nl-edition-card:hover .nl-edition-cta { color: var(--dark); }

/* ============================================================
   BACKDROP
   ============================================================ */
#nl-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.6);
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
#nl-backdrop.open { opacity: 1; pointer-events: all; }

/* ============================================================
   DRAWER
   ============================================================ */
#nl-drawer {
  position: fixed; top: 0; right: 0; z-index: 510;
  width: clamp(360px, 52vw, 700px);
  height: 100vh;
  background: var(--light);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform .65s cubic-bezier(.16,1,.3,1);
  pointer-events: none;
}
#nl-drawer.open { transform: translateX(0); pointer-events: all; }

.nl-drawer-inner {
  flex: 1; overflow-y: auto;
  padding: 48px 52px 32px;
  display: flex; flex-direction: column; gap: 24px;
}

.nl-drawer-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 16px;
}
.nl-drawer-num {
  display: block;
  font-family: var(--font);
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0;
  color: var(--orange); margin-bottom: 4px;
}
.nl-drawer-date {
  font-family: var(--font);
  font-size: 11px; font-weight: 400;
  color: rgba(29,29,29,.4);
}
.nl-drawer-close {
  background: none; border: none; cursor: none;
  flex-shrink: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.nl-drawer-close-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid rgba(29,29,29,.2);
  color: rgba(29,29,29,.4);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .2s, border-color .2s, color .2s;
}
.nl-drawer-close:hover .nl-drawer-close-x {
  transform: rotate(90deg);
  background: var(--dark); border-color: var(--dark); color: var(--light);
}

.nl-drawer-titre {
  font-family: var(--font);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 900; letter-spacing: -1px; line-height: 1.15;
  color: var(--dark);
}

.nl-drawer-visuel {
  border-radius: 12px; overflow: hidden;
  margin-bottom: 4px;
}
.nl-drawer-visuel img {
  width: 100%; display: block;
  aspect-ratio: 16/9; object-fit: cover;
}

.nl-drawer-body {
  font-family: var(--font);
  font-size: 15px; font-weight: 400;
  line-height: 1.75; color: rgba(29,29,29,.8);
}
.nl-drawer-body strong {
  font-weight: 800;
  color: var(--dark);
}
/* Paragraphes */
.nl-drawer-body p { margin: 0 0 11px; }
.nl-drawer-body p:last-child { margin-bottom: 0; }

/* Titres de section (paragraphe 100% bold dans Notion) */
.nl-drawer-body .nl-section-title {
  font-weight: 800;
  font-size: 15px;
  color: var(--dark);
  margin: 20px 0 4px;
  line-height: 1.3;
}
.nl-drawer-body .nl-section-title strong { font-weight: inherit; }

/* Vrais headings Notion */
.nl-drawer-body .nl-h2 {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 900; letter-spacing: -0.4px;
  color: var(--dark); margin: 24px 0 8px; line-height: 1.2;
}
.nl-drawer-body .nl-h3 {
  font-size: 16px; font-weight: 800;
  color: var(--dark); margin: 20px 0 6px;
}
.nl-drawer-body .nl-h4 {
  font-size: 15px; font-weight: 700;
  color: var(--dark); margin: 16px 0 4px;
}

/* Listes */
.nl-drawer-body .nl-list {
  padding-left: 20px; margin: 4px 0 12px;
}
.nl-drawer-body .nl-list li { margin-bottom: 6px; line-height: 1.65; }

/* Citation */
.nl-drawer-body .nl-quote {
  border-left: 3px solid var(--orange);
  padding: 6px 16px; margin: 12px 0;
  font-style: italic; color: rgba(29,29,29,.7);
}

/* Séparateur */
.nl-drawer-body .nl-divider {
  height: 1px; background: rgba(29,29,29,.1); margin: 20px 0;
}

/* Image bloc (inline dans le contenu) */
.nl-drawer-body .nl-block-image {
  border-radius: 10px; overflow: hidden; margin: 12px 0;
}
.nl-drawer-body .nl-block-image img { width: 100%; display: block; }
.nl-drawer-body em { font-style: italic; }
.nl-drawer-body code {
  font-family: monospace; font-size: 13px;
  background: rgba(29,29,29,.07); padding: 1px 5px; border-radius: 4px;
}
.nl-drawer-body a {
  color: var(--orange);
  text-decoration: none;
  font-weight: 600;
  transition: opacity .2s;
}
.nl-drawer-body a:hover { opacity: .7; }

/* Saut de paragraphe */
.nl-drawer-body .nl-break { height: 14px; }

/* Bloc surligné orange (intro / menu) */
.nl-drawer-body .nl-orange-block {
  background: var(--orange);
  color: var(--dark);
  border-radius: 10px;
  padding: 20px 24px;
  font-weight: 600;
  line-height: 1.6;
  margin: 14px 0;
}
.nl-drawer-body .nl-orange-block strong {
  display: inline;
  margin: 0;
  color: var(--dark);
}
.nl-drawer-body .nl-orange-block a { color: var(--dark); }

/* Bloc récap (surlignage noir/gris dans Notion → sand sur le site) */
.nl-drawer-body .nl-recap {
  background: var(--sand);
  color: var(--dark);
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 14px; font-weight: 500;
  line-height: 1.7;
  margin: 14px 0;
}
.nl-drawer-body .nl-recap strong {
  display: block;
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--dark);
}
.nl-drawer-body .nl-recap strong:first-child { margin-top: 0; }
.nl-drawer-body .nl-recap a { color: var(--dark); text-decoration: underline; }

/* Callout gris Notion → fond dark sur le site */
.nl-drawer-body .nl-dark-block {
  background: var(--dark);
  color: var(--light);
  border-radius: 10px;
  padding: 20px 24px;
  font-size: 14px; font-weight: 500;
  line-height: 1.7;
  margin: 14px 0;
}
.nl-drawer-body .nl-dark-block strong {
  display: block;
  margin: 0 0 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--light);
}
.nl-drawer-body .nl-dark-block a { color: var(--orange); text-decoration: underline; }

.nl-drawer-gallery {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 8px;
}
.nl-drawer-gallery img {
  width: calc(50% - 5px);
  border-radius: 10px;
  object-fit: cover;
}

/* Footer sticky */
.nl-drawer-footer {
  background: var(--dark);
  padding: 28px 52px 36px;
  flex-shrink: 0;
}
.nl-drawer-footer-label {
  font-family: var(--font);
  font-size: 19px; font-weight: 900;
  letter-spacing: -0.4px; line-height: 1.2;
  color: var(--light);
  margin-bottom: 16px;
}
.nl-drawer-form {
  display: flex; gap: 8px;
}
.nl-drawer-input {
  flex: 1; padding: 14px 18px;
  font-family: var(--font); font-size: 13px;
  color: var(--light); background: rgba(245,242,239,.08);
  border: 1.5px solid rgba(245,242,239,.2);
  border-radius: 10px; outline: none;
  transition: border-color .2s, border-radius .3s ease;
}
.nl-drawer-input:focus { border-color: rgba(245,242,239,.6); border-radius: 14px; }
.nl-drawer-input::placeholder { color: rgba(245,242,239,.3); }
.nl-drawer-submit {
  padding: 14px 22px;
  font-family: var(--font); font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0;
  color: var(--dark); background: var(--orange);
  border: none; border-radius: 10px; cursor: none;
  white-space: nowrap;
  transition: background .2s, border-radius .9s ease-in-out;
}
.nl-drawer-submit:hover { background: var(--light); color: var(--dark); border-radius: 100px; }

/* ============================================================
   CAROUSEL VISUELS
   ============================================================ */
.nl-drawer-carousel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  scrollbar-width: none;
  margin-bottom: 4px;
}
.nl-drawer-carousel::-webkit-scrollbar { display: none; }
.nl-drawer-carousel img {
  flex-shrink: 0;
  width: 100%;
  scroll-snap-align: start;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 16/9;
  display: block;
}
.nl-drawer-carousel.multi img { width: 88%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .nl-archives { padding: 60px 28px 80px; }
  .nl-editions-grid { grid-template-columns: 1fr; gap: 2px; }
  #nl-drawer { width: 100%; }
  .nl-drawer-inner { padding: 36px 28px 24px; }
  .nl-drawer-footer { padding: 22px 28px 32px; }
  .nl-drawer-form { flex-direction: column; }
}
@media (max-width: 640px) {
  .nl-hero { padding: 120px 24px 64px; gap: 32px; }
  .nl-pitch { padding: 64px 24px; }
  .proof-card { height: 140px; }
  .proof-card img { max-width: 280px; }
  .nl-drawer-gallery img { width: 100%; }
}

/* ---- Animations d'entrée ---- */
@media (prefers-reduced-motion: no-preference) {
  .nl-hero          { animation: fadeUp .65s cubic-bezier(.22,1,.36,1) both; }
  .nl-hook          { animation: fadeUp .60s .08s cubic-bezier(.22,1,.36,1) both; }
  .nl-desc          { animation: fadeUp .55s .16s cubic-bezier(.22,1,.36,1) both; }
  .nl-form          { animation: fadeUp .55s .24s cubic-bezier(.22,1,.36,1) both; }
}
