/* ==========================================================================
   Reusable components
   ========================================================================== */

/* --- Wordmark ------------------------------------------------------------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--c-text);
}
.wordmark__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: var(--c-accent-grad);
  font-size: 17px;
  letter-spacing: -0.06em;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset,
              0 8px 24px -10px rgba(140, 82, 255, 0.9);
}
.wordmark__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 55%);
}
.wordmark__text { display: flex; flex-direction: column; gap: 2px; }
.wordmark__name { font-size: 15px; letter-spacing: 0.02em; }
.wordmark__sub {
  font-family: var(--f-grotesk);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-accent);
}
/* Logo fourni : le conteneur fait la taille exacte de l'art et masque la zone
   vide du fichier. Les dimensions sont calculées dans Wordmark.js à partir des
   fractions mesurées, donc l'image n'est ni étirée ni rognée. */
.wordmark--image { gap: 0; }
.wordmark__crop { display: block; overflow: hidden; flex: none; }
.wordmark__img { display: block; max-width: none; }

.wordmark--lg .wordmark__mark { width: 52px; height: 52px; font-size: 26px; }
.wordmark--lg .wordmark__name { font-size: 22px; }
.wordmark--lg .wordmark__sub { font-size: 11px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--f-display);
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__icon {
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  flex: none;
  transition: transform var(--dur) var(--ease);
}
.btn:hover .btn__icon { transform: translateX(4px); }

/* Primary — solid white pill, 280×48 in the reference */
.btn--primary {
  width: 280px;
  max-width: 100%;
  padding: 12px 20px;
  min-height: 48px;
  background: #fff;
  border-color: #fff;
  color: var(--c-ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.36px;
}
.btn--primary:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  box-shadow: 0 18px 40px -18px rgba(140, 82, 255, 0.9);
}

/* Outline — nav pill, 42px tall */
.btn--outline {
  padding: 12px 20px;
  min-height: 42px;
  border-color: #fff;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.64px;
  line-height: 1;
}
.btn--outline:hover { background: #fff; color: var(--c-ink); }

/* Ghost text link with trailing arrow */
.btn--ghost {
  padding: 6px 0;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.32px;
  gap: 8px;
}
.btn--ghost::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur) var(--ease);
}
.btn--ghost:hover::after { transform: scaleX(1); transform-origin: left; }
.btn--ghost:hover { transform: none; }

.btn--block { width: 100%; }

/* --- Eyebrow -------------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-grotesk);
  font-size: var(--t-eyebrow);
  line-height: var(--t-eyebrow-lh);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow--bold { font-weight: 700; }
.eyebrow--magenta { color: var(--c-magenta); }

/* --- Section header ------------------------------------------------------- */
.section-head { display: flex; flex-direction: column; gap: 12px; }
.section-head--center { align-items: center; text-align: center; }

.section-title {
  font-family: var(--f-display);
  font-size: var(--t-section);
  line-height: var(--t-section-lh);
  letter-spacing: var(--ls-tight);
  font-weight: 700;
  color: var(--c-text);
  max-width: 18ch;
  text-wrap: balance;
}
.section-title--wide { max-width: 26ch; }
.section-title--full { max-width: none; }
.section-head--center .section-title { margin-inline: auto; }

/* Highlighted words carry a magenta underline that draws in on reveal,
   mirroring the reference's animated underline treatment. */
.hl {
  position: relative;
  display: inline-block;
  font-weight: inherit;
}
.hl::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.08em;
  width: 100%; height: 3px;
  border-radius: 2px;
  background: var(--c-magenta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 900ms var(--ease) 260ms;
}
.is-revealed .hl::after,
.hl.is-drawn::after { transform: scaleX(1); }

.section-lead {
  font-family: var(--f-display);
  font-size: var(--t-body-lg);
  line-height: var(--t-body-lg-lh);
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--c-text);
  max-width: 46ch;
}
.section-head--center .section-lead { margin-inline: auto; }

/* --- Service card --------------------------------------------------------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-card);
  justify-content: flex-end;
  min-height: 336px;
  padding: 60px 180px 64px 36px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.service-card:hover {
  border-color: var(--c-accent-soft);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
/* Soft violet blob, echoing the reference's `.service-glow` */
.service-card__glow {
  position: absolute;
  right: -60px; top: -40px;
  width: 402px; height: 150px;
  border-radius: 50%;
  background: var(--c-accent-glow);
  filter: blur(60px);
  pointer-events: none;
  transition: opacity var(--dur-slow) var(--ease);
}
.service-card--muted .service-card__glow { background: rgba(7, 7, 7, 0.66); }
.service-card:hover .service-card__glow { opacity: 0.85; }

/* Decorative art block sits right, cropped by the card — same visual weight
   as the reference's product screenshots. */
.service-card__art {
  position: absolute;
  right: 0; bottom: 0; top: 0;
  width: var(--art-width, 200px);
  pointer-events: none;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 34%);
          mask-image: linear-gradient(90deg, transparent, #000 34%);
}
.service-card__art > .ph { width: 100%; height: 100%; }
/* Visuel réel du service : remplit le cadre existant sans déformation.
   `cover` conserve le ratio natif, `--art-pos` recadre carte par carte. */
.service-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--art-pos, center);
}

.service-card__head { position: relative; display: flex; flex-direction: column; gap: 12px; }
.service-card__title {
  font-family: var(--f-body);
  font-size: var(--t-card-title);
  line-height: var(--t-card-title-lh);
  letter-spacing: var(--ls-tight);
  font-weight: 700;
}
.service-card__list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 18px;
  color: var(--c-text-dim);
}
.service-card__bullet {
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* --- Stat block ----------------------------------------------------------- */
.stat-box {
  display: flex;
  gap: 30px;
  padding: 60px 32px;
  border: 1px solid var(--c-accent);
  border-radius: var(--r-md);
  background: rgba(140, 82, 255, 0.05);
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.stat-box:hover {
  background: rgba(140, 82, 255, 0.1);
  box-shadow: var(--shadow-card);
}
.stat-box__num-wrap { flex: none; width: 160px; }
.stat-box__num {
  font-family: var(--f-grotesk);
  font-size: var(--t-stat-num);
  line-height: var(--t-stat-num-lh);
  font-weight: 700;
  color: var(--c-accent);
  font-variant-numeric: tabular-nums;
}
.stat-box__unit {
  margin-top: 12px;
  font-family: var(--f-grotesk);
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: var(--ls-unit);
  text-transform: uppercase;
}
/* Dans les encadrés stats, la colonne de texte ne fait que 372px alors que le
   chiffre en occupe 160 — incompressibles. Une locution soulignée un peu longue
   y devient un bloc atomique trop large et laisse un mot orphelin sur sa propre
   ligne. Ici seulement, le trait est peint en fond plutôt qu'en ::after : il
   suit alors les retours à la ligne au lieu de les empêcher. Même couleur,
   même tracé de gauche à droite à l'apparition. */
.stat-box__title .hl {
  display: inline;
  background-image: linear-gradient(var(--c-magenta), var(--c-magenta));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 0.06em);
  background-size: 0% 3px;
  -webkit-box-decoration-break: clone;
          box-decoration-break: clone;
  transition: background-size 900ms var(--ease) 260ms;
}
.stat-box__title .hl::after { content: none; }
.stat-box__title .hl.is-revealed,
.is-revealed .stat-box__title .hl { background-size: 100% 3px; }

.stat-box__body { display: flex; flex-direction: column; gap: 18px; }
.stat-box__title {
  font-family: var(--f-body);
  font-size: var(--t-stat-title);
  line-height: var(--t-stat-title-lh);
  letter-spacing: var(--ls-tight);
  font-weight: 700;
}
.stat-box__desc {
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 22.5px;
  letter-spacing: -0.54px;
  font-weight: 700;
  /* Sans cela, la description laisse un mot seul en dernière ligne (102px). */
  text-wrap: balance;
}

/* --- Case study card ------------------------------------------------------ */
.case-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 8px 16px 8px 8px;
  background: #000;
  border: 2px solid var(--c-line-strong);
  border-radius: var(--r-card);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.case-card:hover {
  border-color: var(--c-accent-soft);
  box-shadow: var(--shadow-card);
}
.case-card__media {
  flex: none;
  width: 252px;
  align-self: stretch;
  min-height: 225px;
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
}
.case-card--tall .case-card__media { min-height: 448px; }
.case-card__media > .ph { position: absolute; inset: 0; }
/* Vidéo client : `contain` ne recadre jamais. Sur desktop le cadre est en 9:16
   exact, donc la vidéo le remplit bord à bord ; sous 992px le cadre passe en
   16:10 et la vidéo se centre sur le noir de la carte plutôt que de perdre les
   visages et les sous-titres incrustés. */
.case-card__video,
.case-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.case-card__duration {
  position: absolute;
  right: 8px; bottom: 8px;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.72);
  font-family: var(--f-grotesk);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
.case-card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-card);
  align-items: flex-start;
  padding: 24px 0;
  min-width: 0;
}
.case-card__client {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--c-text);
  padding: 6px 14px;
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-sm);
}
.case-card__points { display: flex; flex-direction: column; gap: 10px; }
.case-card__point {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--f-grotesk);
  font-size: 20px;
  line-height: 25px;
  letter-spacing: -0.2px;
  color: var(--c-text-dim);
}
.case-card__plus {
  flex: none;
  font-size: 25px;
  line-height: 25px;
  font-weight: 500;
  color: var(--c-accent);
}
.case-card__point b { font-weight: 700; color: var(--c-text); }
.case-card__note {
  font-family: var(--f-grotesk);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-text-faint);
}

/* --- Process step --------------------------------------------------------- */
.step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 36px;
  background: var(--c-surface-2);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.step:hover {
  background: rgba(140, 82, 255, 0.08);
  border-color: var(--c-accent-soft);
  transform: translateX(6px);
}
.step__num {
  flex: none;
  width: 144px;
  font-family: var(--f-grotesk);
  font-size: 56px;
  line-height: 47.6px;
  font-weight: 700;
  color: var(--c-accent);
}
.step__body { display: flex; flex-direction: column; gap: 15px; min-width: 0; }
.step__title {
  font-family: var(--f-grotesk);
  font-size: 16px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-magenta);
}
.step__desc {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 22.5px;
  font-weight: 700;
  color: var(--c-text);
}

/* --- Team card ------------------------------------------------------------ */
.team-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 8px 24px;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.team-card:hover {
  border-color: var(--c-accent-soft);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}
.team-card__media {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  overflow: hidden;
}
.team-card__media > .ph { width: 100%; height: 100%; }
/* La photo remplit le cadre sans déformation. Le point de mire est placé
   au-dessus du centre : sur un portrait, c'est là que tombe le visage. */
.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}
.team-card__body { display: flex; flex-direction: column; gap: 4px; padding-inline: 16px; }
.team-card__name {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.team-card__role {
  font-family: var(--f-grotesk);
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* --- FAQ item ------------------------------------------------------------- */
.faq-item { border-bottom: 1px solid var(--c-line-soft); }
.faq-item:first-child { border-top: 1px solid var(--c-line-soft); }

.faq-item__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 14px 0;
  min-height: 68px;
  text-align: left;
  transition: color var(--dur-fast) var(--ease);
}
.faq-item__button:hover { color: var(--c-accent); }

.faq-item__q {
  font-family: var(--f-display);
  font-size: 18px;
  line-height: 19.8px;
  font-weight: 700;
}
.faq-item__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 2px solid var(--c-accent-deep);
  border-radius: 50%;
  color: var(--c-accent-deep);
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.faq-item[data-open="true"] .faq-item__icon {
  transform: rotate(180deg);
  border-color: var(--c-accent);
  color: var(--c-accent);
}

/* grid-template-rows animates cleanly from 0 to auto-content height */
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease-inout);
}
.faq-item[data-open="true"] .faq-item__panel { grid-template-rows: 1fr; }
.faq-item__panel > div { overflow: hidden; }
.faq-item__a {
  padding-bottom: 16px;
  font-family: var(--f-mono);
  font-size: 16px;
  line-height: 24px;
}
.faq-item__a p + p { margin-top: 1em; }
.faq-item__a strong { color: var(--c-text); font-weight: 600; }

/* --- Slider (case studies / journey) -------------------------------------- */
.slider { position: relative; }
.slider__viewport {
  overflow: hidden;
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.slider__track {
  display: flex;
  gap: 24px;
  transition: transform 620ms var(--ease);
  will-change: transform;
}
.slider__slide { flex: 0 0 748px; max-width: 100%; }

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
}
.slider__dots { display: flex; align-items: center; gap: 8px; }
.slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.slider__dot[aria-current="true"] {
  width: 24px;
  border-radius: 10px;
  background: #fff;
}
.slider__arrows { display: flex; gap: 12px; }
.slider__arrow {
  display: grid;
  place-items: center;
  width: 47px; height: 47px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.slider__arrow:hover:not(:disabled) { background: #fff; color: #000; }
.slider__arrow:disabled {
  border-color: var(--c-accent-soft);
  color: var(--c-accent-soft);
  cursor: default;
}

/* --- Marquee -------------------------------------------------------------- */
.marquee {
  --marquee-duration: 48s;
  position: relative;
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  padding-right: 16px;
  animation: marquee-scroll var(--marquee-duration) linear infinite;
}
.marquee--reverse .marquee__group { animation-direction: reverse; }
.marquee:hover .marquee__group { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* --- Placeholder art ------------------------------------------------------ */
/* Every image slot in the reference is filled here by a locally generated,
   original abstract composition. No third-party assets are loaded. */
.ph {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(155deg, #17111f 0%, #0b0710 55%, #120b1c 100%);
}
.ph::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 28% 22%, rgba(140, 82, 255, 0.55), transparent 46%),
    radial-gradient(circle at 78% 74%, rgba(255, 58, 255, 0.28), transparent 48%);
  filter: blur(6px);
}
.ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(circle at 50% 45%, #000, transparent 78%);
          mask-image: radial-gradient(circle at 50% 45%, #000, transparent 78%);
}
.ph__label {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-family: var(--f-grotesk);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  white-space: nowrap;
}
.ph--light { background: linear-gradient(155deg, #f4f1fa 0%, #e7e1f5 100%); }
.ph--light::before { opacity: 0.35; }
.ph--light::after {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.06) 1px, transparent 1px);
}
.ph--light .ph__label { color: rgba(0, 0, 0, 0.42); }
