/* Curiouser Lab - one page */

/* Poppins hébergée localement (licence OFL, fonts/OFL.txt), sous-ensemble latin, format WOFF */
@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-900.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }


:root {
  --ink: #0b0b0c;
  --paper: #ffffff;
  --tint: #f4f5f7;
  --mute: #5c5f66;
  --line: #e2e4e8;
  --blue: #2b80ff;
  --red: #e22914;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: -.02em; }
h2 { font-size: clamp(30px, 4.2vw, 52px); font-weight: 900; max-width: 18ch; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section--tint { background: var(--tint); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.grid-2--center { align-items: center; }
.stack p { color: #c9cbd0; }

.kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 20px;
}
.kicker--light { color: #7fb0ff; }

/* Boutons */
.btn {
  display: inline-block; padding: 16px 28px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: 15px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { background: var(--blue); transform: translateY(-2px); }
.btn--small { padding: 10px 20px; font-size: 14px; }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--blue); color: var(--paper); }
.link { font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 2px; }
.link:hover { color: var(--blue); }

/* En-tête */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--gutter);
  transition: padding .3s var(--ease), background .3s, box-shadow .3s;
}
.top.is-scrolled { padding-top: 12px; padding-bottom: 12px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top__logo img { width: 154px; height: auto; }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; }
.top__nav a { text-decoration: none; position: relative; }
.top__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.top__nav a:hover::after { transform: scaleX(1); }

/* Rail : le point qui tombe */
.rail { position: fixed; top: 0; bottom: 0; right: clamp(10px, 2vw, 28px); width: 2px; z-index: 15; pointer-events: none; }
.rail::before { content: ""; position: absolute; inset: 15vh 0; background: var(--line); }
.rail__dot {
  position: absolute; left: 50%; top: 15vh; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--blue);
  transform: translateY(var(--y, 0px));
  transition: background .35s, box-shadow .35s;
}
body.is-signal .rail__dot { background: var(--red); box-shadow: 0 0 0 6px rgba(226,41,20,.15); }

/* Hero */
.hero {
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  max-width: var(--wrap); margin: 0 auto; padding: 140px var(--gutter) 80px; position: relative;
}
.hero__title { font-size: clamp(42px, 7.4vw, 104px); font-weight: 900; max-width: 14ch; letter-spacing: -.035em; }
.hero__dot {
  display: inline-block; width: .2em; height: .2em; margin-left: .06em;
  border-radius: 50%; background: var(--blue);
  animation: drop 1.4s var(--ease) .5s both;
}
@keyframes drop {
  0% { transform: translateY(-1.6em); opacity: 0; }
  45% { transform: translateY(0); opacity: 1; }
  62% { transform: translateY(-.28em); }
  78% { transform: translateY(0); }
  88% { transform: translateY(-.07em); }
  100% { transform: translateY(0); }
}
.hero__sub { font-size: clamp(20px, 2vw, 26px); font-weight: 600; max-width: 32ch; margin: 24px 0 0; }
.hero__lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--mute); max-width: 52ch; margin: 12px 0 40px; }
.hero__actions { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 32px; left: var(--gutter); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin: 0; }
.hero__scroll::after { content: ""; display: inline-block; width: 40px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; }

/* Sections sombres */
.dark { background: var(--ink); color: var(--paper); padding: clamp(80px, 12vw, 150px) 0; }

/* Interstitiels critiques */
.question { padding: clamp(90px, 14vw, 180px) var(--gutter); text-align: center; }
.question__text {
  font-size: clamp(30px, 5vw, 68px); font-weight: 900; line-height: 1.1; letter-spacing: -.03em;
  max-width: 20ch; margin: 0 auto;
}
.q { color: var(--blue); margin-left: .12em; }

/* Cartes formats */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 64px; background: var(--line); border: 2px solid var(--line); }
.card { position: relative; background: var(--paper); padding: 36px 28px 32px; display: flex; flex-direction: column; transition: background .3s var(--ease); }
.card:hover { background: var(--tint); }
/* Survol : voile bleu sur l'image, même déclenchement et même durée que le fond du texte */
.card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1 / 1; background: var(--blue); mix-blend-mode: multiply; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.card:hover::after { opacity: .35; }
.card__img { display: block; flex: none; align-self: auto; width: calc(100% + 56px); max-width: none; height: auto; aspect-ratio: 1 / 1; object-fit: cover; margin: -36px -28px 28px; }
.card__num { position: absolute; top: 16px; left: 16px; z-index: 1; padding: 6px 10px; border-radius: 999px; background: var(--paper); font-weight: 900; font-size: 13px; line-height: 1; color: var(--blue); }
.card p { color: var(--mute); font-size: 15px; flex: 1; }
.card__meta { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; display: grid; gap: 6px; }
.card__meta div { display: flex; justify-content: space-between; gap: 12px; }
.card__meta dt { color: var(--mute); }
.card__meta dd { margin: 0; font-weight: 500; }

/* Méthode */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px 0 24px 64px; border-top: 1px solid var(--line); position: relative; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 26px; font-weight: 900; font-size: 15px; color: var(--blue); }
.steps span { font-weight: 600; font-size: 20px; display: block; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--mute); font-size: 15px; }

/* Références */
.logos { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { height: 150px; display: grid; place-items: center; padding: 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos img { max-height: 56px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }
.logos li:nth-child(n+5) { display: none; } /* 4 logos visibles, ordre tiré par main.js */
/* Logos avec marges blanches dans le fichier : recadrage sur la zone utile */
.logos .logo--agirc { width: 180px; height: auto; max-height: none; aspect-ratio: 4.2 / 1; object-fit: cover; }
.logos .logo--gallimard { width: 170px; height: auto; max-height: none; aspect-ratio: 5 / 1; object-fit: cover; }
.logos .logo-text { font-weight: 600; font-size: 20px; color: var(--mute); letter-spacing: -.01em; }
.quote { margin: 72px 0 0; max-width: 820px; }
.quote p { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.45; font-weight: 500; letter-spacing: -.01em; }
.quote footer { font-size: 14px; color: var(--mute); }
.quote footer::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-right: 12px; }

/* À propos */
.portrait { position: relative; margin: 0; width: 100%; max-width: 320px; justify-self: center; }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; border-radius: 50%; border: 10px solid var(--paper); box-shadow: 0 0 0 1px var(--line); }
/* Point bleu du logo, posé en débord sur le coin haut droit */
.portrait::after { content: ""; position: absolute; top: 6%; right: 6%; width: 56px; aspect-ratio: 1; border-radius: 50%; background: var(--blue); }

/* Appel final */
.cta { text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(36px, 6vw, 80px); max-width: 16ch; }
.cta p { color: #c9cbd0; max-width: 46ch; margin-bottom: 40px; }

/* Pied de page */
.foot { background: var(--ink); color: #8d9097; border-top: 1px solid #222; padding: 36px 0; font-size: 13px; }
.foot__inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* Apparitions au scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top__nav { display: none; }
  .top { justify-content: space-between; }
  .top__logo img { width: 128px; }
  .grid-2 { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .rail { display: none; }
  .portrait { max-width: 240px; }
  .portrait::after { width: 40px; }
}

/* Réduction des animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Prise de rendez-vous intégrée */
.booking { width: 100%; max-width: 920px; margin-top: 8px; background: transparent; border-radius: 16px; overflow: hidden; }
.booking__gate { padding: 8px 24px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.cta .booking__note { margin: 0; max-width: none; font-size: 13px; color: #8d9097; }
.booking__gate .btn { background: var(--paper); color: var(--ink); }
.booking__gate .btn:hover { background: var(--blue); color: var(--paper); }
.booking.is-open { background: var(--paper); }
.booking iframe { display: block; width: 100%; height: 600px; border: 0; }
@media (max-width: 760px) { .booking iframe { height: 760px; } }

/* Liens du pied de page */
.foot a { text-decoration: none; border-bottom: 1px solid #444; }
.foot a:hover { color: var(--paper); border-color: var(--blue); }

/* Page mentions légales */
.legal-head { max-width: var(--wrap); margin: 0 auto; padding: 170px var(--gutter) 40px; }
.legal-head h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 900; letter-spacing: -.035em; }
.legal-head p:not(.kicker) { color: var(--mute); }
.legal { padding: 40px 0 clamp(80px, 12vw, 150px); }
.legal__block { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0; border-top: 1px solid var(--line); }
.legal__block h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; max-width: none; }
.legal__block h2 span { display: block; font-size: 13px; font-weight: 900; color: var(--blue); margin-bottom: 8px; }
.legal__block p, .legal__block li { color: var(--mute); max-width: 68ch; }
.legal__block strong { color: var(--ink); font-weight: 500; }
.legal__block ul { margin: 0 0 1em; padding-left: 1.1em; }
.legal__block a { color: var(--ink); text-decoration-color: var(--blue); text-underline-offset: 3px; }
.todo { color: var(--red); font-weight: 500; }
@media (max-width: 760px) { .legal__block { grid-template-columns: 1fr; gap: 8px; } }
.legal__law { font-size: 13px; color: var(--mute); border-left: 2px solid var(--blue); padding-left: 12px; margin-top: 8px; }
