/* Site personnel de Florentin Druart, dans l'habillage de l'application des membres FlashRace
   (flashrace-web : app/(membres)/membres/app-ui.css et app-shell.css) : carte pilote à halo, chiffres dorés, libellés
   mono, rangées de l'agenda et des objectifs, barre flottante en bas. Polices du site FlashRace (licence OFL).

   Échelle de texte volontairement courte : libellé mono (11 px), petit (14 px), texte (17 px), titre de carte,
   titre de partie, grand titre. Rien d'autre. */

@font-face {
  font-family: "Archivo FR";
  src: url("/assets/fonts/archivo-titres.woff2") format("woff2");
  font-weight: 400 900;
  font-stretch: 100% 125%;
  font-display: swap;
}

@font-face {
  font-family: "Geist FR";
  src: url("/assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --carbon-950: #060708;
  --carbon-900: #0a0c0f;
  --carbon-850: #0e1115;
  --carbon-800: #13171c;
  --carbon-700: #1a1f26;
  --carbon-600: #252b33;
  --carbon-500: #343c47;
  --metal-500: #7c8591;
  --metal-400: #8e97a4;
  --metal-300: #b4bcc7;
  --metal-200: #d5dae1;
  --ivory: #f5f3ee;
  --gold-100: #fbf0d4;
  --gold-200: #f4e0ae;
  --gold-300: #edc97a;
  --gold-400: #e4b04f;
  --ok: #6ee7b7;
  --ok-strong: #10b981;
  --gold-gradient: linear-gradient(135deg, #f8e4ad 0%, #eac068 40%, #d39b34 100%);
  --gold-text: linear-gradient(100deg, #f8e7bd 0%, #edc97a 38%, #e0a743 70%, #f4dc9f 100%);
  --line: rgb(255 255 255 / 0.07);

  --font-body: "Geist FR", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo FR", "Geist FR", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --fs-label: 0.6875rem;
  --fs-small: 0.875rem;
  --fs-body: 1.0625rem;
  --fs-h3: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem);
  --fs-h2: clamp(1.95rem, 1.45rem + 2.3vw, 3rem);
  --fs-hero: clamp(1.6rem, 1.2rem + 2vw, 3rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 1.125rem;
  --appbar: 3.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--carbon-950);
  color: var(--ivory);
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--appbar) + 1rem);
}

body {
  margin: 0;
  min-height: 100dvh;
  padding-bottom: calc(6rem + env(safe-area-inset-bottom));
  background: var(--carbon-950);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 112.5%;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p,
ul,
ol,
dl,
dd,
dt,
figure,
blockquote {
  margin: 0;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

strong {
  color: var(--ivory);
  font-weight: 600;
}

sup {
  font-size: 0.6em;
  line-height: 0;
}

::selection {
  background: rgb(228 176 79 / 0.35);
}

:focus-visible {
  outline: 2px solid var(--gold-300);
  outline-offset: 3px;
  border-radius: 8px;
}

main:focus {
  outline: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.flip {
  transform: scaleX(-1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--gold-400);
  color: var(--carbon-950);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}

/* ------------------------------------------------------------------ Briques de l'application */

.mono,
.kicker,
.ptop {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mono {
  display: block;
  color: var(--metal-400);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--gold-300);
}

/* Trois traits obliques, repris des logos de catégorie (SpeedMarks). */
.marks {
  display: inline-flex;
  gap: 3px;
}

.marks i {
  width: 3px;
  height: 0.75rem;
  border-radius: 1px;
  background: var(--gold-400);
  transform: skewX(-24deg);
}

.marks i:nth-child(2) {
  opacity: 0.6;
}

.marks i:nth-child(3) {
  opacity: 0.3;
}

.prose {
  display: grid;
  gap: 1em;
  color: var(--metal-300);
}

.prose-p {
  color: var(--metal-300);
}

.highlight {
  background-image: linear-gradient(transparent 62%, rgb(228 176 79 / 0.25) 62%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0 1.4rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn--gold {
  background: var(--gold-gradient);
  color: var(--carbon-950);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.6), inset 0 -1px 0 rgb(120 80 20 / 0.35), 0 14px 34px -14px rgb(228 176 79 / 0.7);
}

/* Reflet qui traverse le bouton doré au survol, comme sur flashrace.fr. */
.btn--gold::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.55), transparent);
  transform: translateX(-160%) skewX(-20deg);
  transition: transform 0.7s var(--ease);
}

.btn--line {
  background: rgb(255 255 255 / 0.04);
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.13);
}

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

.btn--stacked {
  min-height: 3.75rem;
  white-space: normal;
}

.btn--stacked > span {
  display: grid;
  text-align: left;
}

.btn--stacked small {
  color: var(--metal-300);
  font-size: 0.8rem;
  font-weight: 400;
}

@media (hover: hover) {
  .btn--gold:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.65), inset 0 -1px 0 rgb(120 80 20 / 0.35), 0 20px 46px -12px rgb(228 176 79 / 0.9);
  }

  .btn--gold:hover::before {
    transform: translateX(420%) skewX(-20deg);
  }

  .btn--line:hover {
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1px rgb(237 201 122 / 0.45);
  }
}

.round {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.05);
  color: var(--ivory);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
  cursor: pointer;
}

.round:disabled {
  opacity: 0.35;
  cursor: default;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold-200);
  font-weight: 600;
  text-decoration: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgb(228 176 79 / 0.08);
  color: var(--gold-200);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgb(237 201 122 / 0.28);
}

/* La carte pilote (pcard) : halo de la couleur de l'écurie, rayures fines, chiffres dorés. Ici la couleur est l'or. */
.pcard {
  --c: #e4b04f;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.15rem;
  border-radius: 26px;
  background:
    radial-gradient(130% 90% at 100% 0%, color-mix(in oklab, var(--c) 45%, transparent), transparent 62%),
    linear-gradient(160deg, color-mix(in oklab, var(--c) 20%, #0c0e12), #07080a 75%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.12),
    0 0 0 1px color-mix(in oklab, var(--c) 40%, transparent),
    0 30px 60px -30px color-mix(in oklab, var(--c) 55%, transparent);
}

.pcard::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / 0.025) 0 1px, transparent 1px 6px);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  pointer-events: none;
}

.ptop {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-300);
}

.live {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgb(110 231 183 / 0.6);
  animation: pulse 2.4s ease-out infinite;
}

.pname {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1.05;
}

.pname b {
  display: block;
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.pstats {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.3rem;
  margin-top: auto;
}

.pstats > div {
  display: flex;
  flex-direction: column-reverse;
}

.pstats dd {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.1;
}

.pstats dt {
  margin-top: 0.3rem;
  color: var(--metal-300);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pstats > div:first-child dd {
  background: var(--gold-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ Barre du haut (appbar) */

.appbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top);
  background: rgb(6 7 8 / 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 -1px 0 var(--line);
}

.appbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--appbar);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  height: 20px;
  width: auto;
  filter: drop-shadow(0 0 10px rgb(228 176 79 / 0.4));
}

.topnav {
  display: none;
}

.me {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2.15rem;
  padding: 0 0.25rem 0 0.8rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.05);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1);
}

.me i {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--carbon-950);
}

.me .icon {
  width: 0.95rem;
  height: 0.95rem;
}

@media (max-width: 24.5rem) {
  .me {
    padding: 0.25rem;
  }

  .me > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* ------------------------------------------------------------------ Barre flottante (dock) */

.dock {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: max(14px, env(safe-area-inset-left));
  z-index: 30;
  display: flex;
  gap: 4px;
  max-width: 30rem;
  height: 4rem;
  margin: 0 auto;
  padding: 6px;
  border-radius: 24px;
  background: rgb(18 21 26 / 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 0 0 1px rgb(255 255 255 / 0.08), 0 20px 40px -12px rgb(0 0 0 / 0.9);
  animation: dock-in 0.7s var(--ease) 0.4s both;
}

.dock a {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  border-radius: 18px;
  color: var(--metal-400);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}

.dock .icon {
  width: 22px;
  height: 22px;
}

.dock a span {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.dock a:not(.on) span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.dock a.on {
  flex: 0 0 auto;
  padding: 0 0.9rem;
  background: linear-gradient(135deg, rgb(248 228 173 / 0.18), rgb(211 155 52 / 0.14));
  color: var(--gold-200);
  box-shadow: inset 0 0 0 1px rgb(237 201 122 / 0.4);
  animation: pill 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.1) both;
}

/* ------------------------------------------------------------------ Accueil */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 2rem;
  padding: 2rem 0 2.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -4rem 0 0;
  z-index: -1;
  background:
    radial-gradient(70% 45% at 20% 0%, rgb(244 224 174 / 0.12), transparent 70%),
    radial-gradient(120% 90% at 50% 40%, transparent 60%, rgb(0 0 0 / 0.5));
  pointer-events: none;
}

.hero-grid {
  display: grid;
  gap: 0.9rem;
}

/* Au téléphone, le portrait se glisse entre le surtitre et le bonjour : le bloc de texte s'efface de la grille. */
.hero-text {
  display: contents;
}

.hero-text > * {
  order: 2;
  animation: rise 0.8s var(--ease) both;
}

.hero-text > .kicker {
  order: 0;
}

.hello {
  margin-top: 0.4rem;
  color: var(--metal-300);
  font-size: 1.05rem;
  font-weight: 500;
}

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.1;
}

.gold-text {
  background-image: linear-gradient(100deg, #f4dc9f 0%, #edc97a 22%, #e0a743 40%, #fff3d2 50%, #e0a743 60%, #edc97a 78%, #f4dc9f 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: shine 2.6s cubic-bezier(0.16, 1, 0.3, 1) 0.9s both;
}

/* Le portrait. Au téléphone : une rangée de profil (photo, nom, pastille), la photo d'origine étant trop petite pour
   la pleine largeur. À partir de la tablette : grande photo à liseré doré, nom sur un dégradé, pastille en haut. */
.portrait {
  order: 1;
  display: grid;
  grid-template-columns: 5.75rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.55rem;
  margin-block: 0.6rem 0.2rem;
  animation: rise 0.9s var(--ease) 0.1s both;
}

.portrait picture {
  grid-row: 1 / span 2;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 20px;
  background: var(--carbon-850);
  box-shadow:
    0 0 0 1px rgb(237 201 122 / 0.45),
    0 18px 40px -18px rgb(228 176 79 / 0.55);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  animation: photo-in 1.4s var(--ease) 0.15s both;
}

.portrait-id {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.portrait-id b {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
}

.portrait-id span {
  color: var(--metal-300);
  font-size: 0.85rem;
  line-height: 1.35;
}

.portrait-status {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgb(228 176 79 / 0.1);
  color: var(--gold-200);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgb(237 201 122 / 0.35);
}

.portrait-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.4s ease-out 1.5s infinite;
}

/* Une invitation à descendre, pas un bouton : le contact reste dans la barre du haut. */
.scroll-cue {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 0.5rem;
  color: var(--metal-400);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  animation: fade-in 0.8s var(--ease) 2.4s both;
}

.scroll-cue .icon {
  color: var(--gold-300);
  transform: rotate(90deg);
  animation: bob 2s ease-in-out 3s infinite;
}

/* ------------------------------------------------------------------ Parties */

.block {
  position: relative;
  padding: 4rem 0;
}

.block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 50%;
  width: min(100% - 2 * var(--gutter), 72rem);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.1) 20%, rgb(237 201 122 / 0.45) 50%, rgb(255 255 255 / 0.1) 80%, transparent);
}

.block h2 {
  margin: 0.9rem 0 1.6rem;
  font-size: var(--fs-h2);
}

.narrow-center {
  max-width: 40rem;
}

/* --- Parcours */

.split {
  display: grid;
  gap: 2rem;
}

.split-text h2 {
  margin-bottom: 1.25rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.55rem;
}

.cd {
  display: grid;
  grid-template-columns: 4.25rem 1fr auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem 0.75rem 0.5rem 0.5rem;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.025);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

.cd-date {
  display: grid;
  place-items: center;
  align-content: center;
  height: 3.4rem;
  border-radius: 13px;
  background: rgb(0 0 0 / 0.4);
}

.cd-date b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
}

.cd-date span {
  color: var(--metal-400);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cd-text {
  display: grid;
  line-height: 1.3;
}

.cd-text b {
  font-weight: 600;
}

.cd-text small {
  color: var(--metal-400);
  font-size: var(--fs-small);
}

.cd--now {
  background: linear-gradient(90deg, rgb(228 176 79 / 0.14), transparent 75%);
  box-shadow: inset 0 0 0 1px rgb(237 201 122 / 0.3);
}

.cd--now .cd-date b {
  color: var(--gold-200);
}

.cd--next .cd-date {
  background: var(--gold-gradient);
}

.cd--next .cd-date b,
.cd--next .cd-date span {
  color: var(--carbon-950);
}

.cd-chip {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  color: var(--gold-200);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 0 0 1px rgb(237 201 122 / 0.35);
}

.curiosity {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.75rem;
}

.curiosity .prose-p {
  max-width: 44rem;
}

.together {
  display: grid;
  gap: 0;
}

.tiles-label {
  color: var(--metal-400);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.tiles li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.03);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.25;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}

.tiles li:last-child {
  grid-column: 1 / -1;
}

.tiles .icon {
  color: var(--gold-300);
}

.duo {
  display: grid;
  grid-template-columns: 1fr 2.5rem 1fr;
  align-items: center;
  margin: 2.75rem 0 1.25rem;
}

.duo-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(160deg, var(--carbon-800), var(--carbon-900));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.08), 0 0 0 1px rgb(255 255 255 / 0.08);
}

.duo-card .mono {
  font-size: 0.6rem;
}

.duo-card b {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-stretch: 112%;
}

.duo-card--gold {
  background: radial-gradient(120% 120% at 100% 0%, rgb(228 176 79 / 0.25), transparent 65%), linear-gradient(160deg, #1d1810, var(--carbon-900));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 0 0 1px rgb(237 201 122 / 0.35);
}

.duo-link {
  height: 2px;
  background: var(--gold-gradient);
  transform-origin: left;
}

.duo-link::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: -3.5px auto 0;
  border-radius: 50%;
  background: var(--gold-300);
  box-shadow: 0 0 12px rgb(237 201 122 / 0.8);
}

/* --- Réalisations */

.project {
  margin-top: 3.5rem;
}

.project + .project,
.videos {
  margin-top: 5rem;
}

.project-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ivory);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-tag .num {
  color: var(--gold-400);
  font-weight: 600;
}

.project-tag img {
  height: 16px;
  width: auto;
}

.project h3,
.videos h3 {
  font-size: var(--fs-h3);
}

.project-sub {
  color: var(--gold-200);
  font-weight: 600;
}

.project-lead {
  max-width: 40rem;
  color: var(--metal-300);
}

.project-intro {
  display: grid;
  gap: 1.75rem;
}

.project-intro--after {
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.numbers > div {
  display: flex;
  flex-direction: column-reverse;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}

.numbers dd {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
  background: var(--gold-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.numbers dt {
  color: var(--metal-300);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Vitrine : un rail à faire défiler, une image à la fois au téléphone. */
.showcase {
  margin-top: 2.25rem;
}

.rail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 calc(-1 * var(--gutter));
  padding: 1rem var(--gutter) 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.rail::-webkit-scrollbar {
  display: none;
}

.slide {
  display: grid;
  flex: none;
  justify-items: center;
  gap: 0.9rem;
  scroll-snap-align: center;
}

.slide--card {
  width: min(84vw, 23rem);
}

.slide--phone {
  width: min(58vw, 15rem);
}

.slide--wide {
  width: min(88vw, 40rem);
}

.slide > img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  filter: drop-shadow(0 30px 40px rgb(0 0 0 / 0.55));
}

.slide figcaption {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  color: var(--metal-300);
  font-size: var(--fs-small);
  line-height: 1.45;
  text-align: center;
}

.slide figcaption .mono {
  color: var(--gold-300);
}

.phone {
  width: 100%;
  padding: 7px;
  border-radius: 2.4rem;
  background: #0b0d10;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 0 0 1px rgb(0 0 0 / 0.6), 0 40px 70px -30px rgb(228 176 79 / 0.35);
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 2rem;
}

.laptop {
  width: 100%;
  padding: 1.6rem 0 0;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 14px 0.8rem, #ff6b5f 3.5px, transparent 4px),
    radial-gradient(circle at 28px 0.8rem, #f4c44e 3.5px, transparent 4px),
    radial-gradient(circle at 42px 0.8rem, #4ccf6a 3.5px, transparent 4px),
    #15181d;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 40px 70px -30px rgb(0 0 0 / 0.9);
}

.laptop img {
  width: 100%;
  height: auto;
}

.rail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rail-dots {
  display: flex;
  gap: 8px;
}

.rail-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--carbon-500);
  cursor: pointer;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}

/* Zone de toucher plus grande que le point. */
.rail-dots button {
  position: relative;
}

.rail-dots button::after {
  content: "";
  position: absolute;
  inset: -10px -4px;
}

.rail-dots button.on {
  width: 24px;
  background: var(--gold-300);
}

.rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.rail.is-dragging img {
  pointer-events: none;
}

.rail-arrows {
  display: none;
  gap: 0.5rem;
}

.showcase-note {
  margin-top: 0.9rem;
  color: var(--metal-500);
  font-size: 0.8rem;
}

.evolution {
  display: grid;
  gap: 0.5rem;
  margin-top: 2.5rem;
}

.evo-step {
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.025);
  color: var(--metal-300);
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}

.evo-step .mono {
  margin-bottom: 0.35rem;
}

.evo-step--now {
  background: linear-gradient(135deg, rgb(228 176 79 / 0.13), rgb(228 176 79 / 0.03));
  color: var(--gold-100);
  box-shadow: inset 0 0 0 1px rgb(237 201 122 / 0.35);
}

.evo-step--now .mono {
  color: var(--gold-300);
}

.evo-arrow {
  justify-self: center;
  width: 2px;
  height: 1.5rem;
  overflow: hidden;
  background: var(--carbon-600);
}

.evo-arrow i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold-gradient);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.9s var(--ease) 0.3s;
}

.evolution.is-in .evo-arrow i {
  transform: none;
}

/* Rangée dépliable, comme les réglages de l'application. */
.more {
  margin-top: 0.6rem;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.025);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07);
}

.evolution + .more {
  margin-top: 2rem;
}

.more summary {
  position: relative;
  display: grid;
  gap: 0.1rem;
  padding: 1rem 3rem 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.more summary::-webkit-details-marker {
  display: none;
}

.more summary span {
  font-weight: 600;
}

.more summary small {
  color: var(--metal-400);
  font-size: var(--fs-small);
}

.more summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.25rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--gold-300);
  border-bottom: 2px solid var(--gold-300);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.3s var(--ease);
}

.more[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

.more-body {
  padding: 0.25rem 1.1rem 1.25rem;
}

.more[open] .more-body {
  animation: rise 0.5s var(--ease) both;
}

.case {
  display: grid;
  gap: 1.25rem;
}

.case-banner {
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.steps {
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 2.3rem;
  color: var(--metal-300);
  font-size: 0.95rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0.1rem;
  left: 0;
  color: var(--gold-400);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.steps b {
  display: block;
  color: var(--ivory);
  font-weight: 600;
}

.bot-message blockquote {
  display: grid;
  gap: 0.45rem;
  padding: 0.95rem 1rem;
  border-left: 4px solid #5daa68;
  border-radius: 6px;
  background: #2b2d31;
  color: #dbdee1;
  font-size: 0.9rem;
  line-height: 1.45;
}

.bot-title {
  color: #f2f3f5;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
}

.bot-title::before {
  content: "🏁 ";
}

.bot-small {
  color: #949ba4;
  font-size: 0.8rem;
}

.mention {
  padding: 0 0.15rem;
  border-radius: 3px;
  background: rgb(88 101 242 / 0.3);
  color: #c9cdfb;
  white-space: nowrap;
}

.bot-message figcaption {
  margin-top: 0.6rem;
  color: var(--metal-500);
  font-size: 0.8rem;
}

.lesson {
  display: grid;
  gap: 0.8rem;
  margin-top: 2rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgb(228 176 79 / 0.1), rgb(228 176 79 / 0.02));
  color: var(--metal-200);
  box-shadow: inset 0 0 0 1px rgb(237 201 122 / 0.25);
}

.lesson strong {
  color: var(--gold-200);
}

/* --- Web & Vous */

.pcard--stat {
  gap: 0.5rem;
  padding: 1.3rem 1.2rem;
}

.big-number {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 2.6rem + 5vw, 5.4rem);
  font-weight: 800;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  line-height: 0.95;
  letter-spacing: -0.03em;
  background: var(--gold-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.big-number small {
  margin-left: 0.08em;
  font-size: 0.5em;
}

.big-label {
  position: relative;
  z-index: 2;
  max-width: 24rem;
  color: var(--metal-200);
  line-height: 1.45;
}

.pstats--small {
  margin-top: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgb(255 255 255 / 0.08);
}

.pstats--small > div:first-child dd {
  background: none;
  color: var(--ivory);
}

.refonte {
  display: grid;
  gap: 1.1rem;
  margin-top: 2.75rem;
}

.refonte-intro {
  color: var(--ivory);
  font-weight: 500;
}

.refonte h4 {
  font-size: 1.3rem;
}

.goals {
  display: grid;
  gap: 0.55rem;
}

/* Les rangées d'objectif de l'application (« OBJECTIF Contrôle 79 → 82 »), avec leur barre en bas. */
.goal {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 0.35rem 0.9rem;
  overflow: hidden;
  padding: 0.95rem 1.1rem 1.15rem;
  border-radius: 18px;
  background: rgb(228 176 79 / 0.05);
  box-shadow: inset 0 0 0 1px rgb(237 201 122 / 0.22);
}

.goal .gk {
  color: var(--gold-300);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.goal b {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-stretch: 105%;
}

.goal p {
  grid-column: 1 / -1;
  color: var(--metal-300);
  font-size: 0.92rem;
  line-height: 1.5;
}

.gbar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--carbon-600);
}

.gbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease) 0.2s;
}

.goal.is-in .gbar::after {
  transform: scaleX(var(--fill, 1));
}

.goal--done {
  background: rgb(16 185 129 / 0.06);
  box-shadow: inset 0 0 0 1px rgb(110 231 183 / 0.28);
}

.goal--done .gk {
  color: var(--ok);
}

.goal--done .gbar::after {
  background: linear-gradient(90deg, #34d399, #10b981);
}

.refonte-outro {
  color: var(--metal-300);
}

/* --- Vidéos */

.video-grid {
  display: grid;
  gap: 2.5rem;
}

.video-card {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 30px 60px -30px rgb(0 0 0 / 0.9);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-card--vertical .video-frame {
  justify-self: center;
  width: min(100%, calc(70svh * 9 / 16), 21rem);
  aspect-ratio: 9 / 16;
}

.video-card--horizontal .video-frame {
  aspect-ratio: 16 / 9;
}

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, transparent 50%, rgb(0 0 0 / 0.4));
  color: var(--carbon-950);
  cursor: pointer;
}

.play .icon {
  width: 4rem;
  height: 4rem;
  padding: 1.1rem;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 14px 34px -10px rgb(0 0 0 / 0.7), 0 0 0 8px rgb(228 176 79 / 0.15);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.play:hover .icon {
  transform: scale(1.06);
  box-shadow: 0 14px 34px -10px rgb(0 0 0 / 0.7), 0 0 0 12px rgb(228 176 79 / 0.2);
}

.play[hidden] {
  display: none;
}

.video-card figcaption {
  display: grid;
  gap: 0.55rem;
  color: var(--metal-300);
  font-size: 0.95rem;
}

.video-card figcaption .mono {
  color: var(--gold-300);
}

.video-card h4 {
  color: var(--ivory);
  font-size: 1.3rem;
}

.role {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  color: var(--ivory);
  font-size: 0.9rem;
}

.role span {
  color: var(--metal-400);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* --- Finary */

.finary-grid {
  display: grid;
  gap: 2rem;
}

.route {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.route::before {
  content: "";
  position: absolute;
  top: 1.4rem;
  bottom: 1.4rem;
  left: 1.35rem;
  width: 2px;
  background: linear-gradient(var(--gold-400), rgb(228 176 79 / 0.1));
}

.route-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 0.25rem 1rem;
}

.route-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--carbon-850);
  color: var(--gold-300);
  box-shadow: inset 0 0 0 1px rgb(237 201 122 / 0.4), 0 0 0 5px var(--carbon-950);
}

.route-step .mono {
  align-self: end;
  color: var(--gold-300);
}

.route-step p {
  color: var(--metal-300);
}

.quote-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 0;
  border-radius: 26px;
  background: linear-gradient(160deg, #1b160e, #07080a 75%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 0 0 1px rgb(237 201 122 / 0.3), 0 30px 60px -30px rgb(228 176 79 / 0.45);
}

.quote-card blockquote {
  padding: 0 1.3rem;
}

/* La courbe se trace sous la citation, jamais derrière le texte. */
.quote-curve {
  width: 100%;
  height: 6.5rem;
}

.curve-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.2s var(--ease) 0.2s;
}

.curve-area {
  opacity: 0;
  transition: opacity 1.4s var(--ease) 1s;
}

.quote-card.is-in .curve-line {
  stroke-dashoffset: 0;
}

.quote-card.is-in .curve-area {
  opacity: 1;
}

.quote-card blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.75rem);
  font-weight: 700;
  font-stretch: 105%;
  line-height: 1.28;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 20px rgb(0 0 0 / 0.6);
}

.lead-gold {
  color: var(--gold-200);
  font-weight: 600;
}

#finary .narrow-center {
  margin-top: 2.25rem;
}

/* --- Contact */

.contact-grid {
  display: grid;
  gap: 2.25rem;
}

/* La carte de la prochaine course de l'application, pour septembre 2027. */
.race {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  gap: 0.7rem;
  padding: 1.35rem 1.2rem 1.3rem;
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 100% 100%, rgb(228 176 79 / 0.16), transparent 60%),
    linear-gradient(160deg, var(--carbon-800), #07080a 80%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), 0 0 0 1px rgb(255 255 255 / 0.09), 0 30px 60px -30px rgb(0 0 0 / 0.9);
}

.race-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.7rem + 2.4vw, 3.1rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.race-sub {
  color: var(--metal-200);
  font-size: var(--fs-small);
  font-weight: 500;
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem 0.9rem;
  margin-top: 0.4rem;
}

.cd-label {
  color: var(--metal-300);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cd-digits {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
}

.cd-digits b {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  font-stretch: 112%;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: var(--gold-text);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.cd-digits i {
  margin-right: 0.35rem;
  color: var(--metal-300);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-style: normal;
}

.race-bar {
  position: relative;
  display: block;
  height: 4px;
  margin: 0.3rem 0 0.4rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--carbon-600);
}

.race-bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #8a6a2a, var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s var(--ease) 0.3s;
}

.alloc {
  margin-top: 0.2rem;
  color: var(--metal-400);
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* La mention de bas de prospectus, en petit, comme il se doit. */
.disclaimer {
  margin-top: 0.3rem;
  color: var(--metal-500);
  font-size: 0.75rem;
  font-style: italic;
  line-height: 1.45;
}

.contact-text {
  display: grid;
  gap: 1.75rem;
}

.contact-actions {
  display: grid;
  gap: 0.6rem;
}

.foot {
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--line);
  color: var(--metal-400);
  font-size: 0.85rem;
}

.foot-inner {
  display: grid;
  gap: 0.4rem;
}

.signature {
  color: var(--metal-300);
}

/* --- Page introuvable */

.lost {
  display: grid;
  gap: 1.25rem;
  max-width: 40rem;
  padding: 18vh 0 4rem;
  color: var(--metal-300);
}

.lost h1 {
  color: var(--ivory);
  font-size: var(--fs-h2);
}

/* ------------------------------------------------------------------ Mouvement */

@keyframes rise {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bob {
  0%,
  100% {
    transform: rotate(90deg) translateX(0);
  }
  50% {
    transform: rotate(90deg) translateX(4px);
  }
}

@keyframes photo-in {
  from {
    opacity: 0;
    transform: scale(1.06);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shine {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0% 0;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(110 231 183 / 0.55);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px rgb(110 231 183 / 0);
  }
}

@keyframes pill {
  from {
    transform: scale(0.9);
  }
  to {
    transform: none;
  }
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translate3d(0, 120%, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Révélation au défilement, en cascade (finary.js pose --d). Seulement pour ce qui est sous l'écran au chargement. */
[data-reveal] {
  transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s);
}

[data-reveal].is-pending {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
}

.timeline [data-reveal].is-pending {
  transform: translate3d(-18px, 0, 0);
}

.duo.is-pending .duo-link {
  transform: scaleX(0);
}

.duo-link {
  transition: transform 1s var(--ease) 0.4s;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ------------------------------------------------------------------ Écrans plus larges */

@media (min-width: 30rem) {
  .tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tiles li:last-child {
    grid-column: auto;
  }

  .pname b {
    font-size: 3.4rem;
  }
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
  }

  .hero {
    padding: 3.5rem 0 5rem;
  }

  .hello {
    font-size: 1.2rem;
  }




  .actions {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .actions .btn {
    padding: 0 1.4rem;
  }

  .block {
    padding: 6rem 0;
  }

  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
  }

  .tiles {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tiles li {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .together {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3.5rem;
    align-items: center;
    margin-top: 3rem;
  }

  .together .duo {
    margin: 0;
    grid-template-columns: 1fr 4rem 1fr;
  }

  .project-intro {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .slide--card {
    width: 22rem;
  }

  .slide--phone {
    width: 15.5rem;
  }

  .slide--wide {
    width: 38rem;
  }

  .rail {
    margin: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .slide {
    scroll-snap-align: start;
  }

  .rail-arrows {
    display: flex;
  }

  .evolution {
    grid-template-columns: 1fr 4rem 1fr;
    align-items: stretch;
  }

  .evo-arrow {
    align-self: center;
    width: 100%;
    height: 2px;
  }

  .evo-arrow i {
    transform: scaleX(0);
    transform-origin: left;
  }

  .refonte {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: 3rem;
  }

  .refonte > .refonte-intro,
  .refonte > h4,
  .refonte > .refonte-outro {
    grid-column: 1;
  }

  .refonte > .goals {
    grid-column: 2;
    grid-row: 1 / span 3;
  }

  .video-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    gap: 3rem;
    align-items: start;
  }

  .finary-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: center;
  }

  .quote-card {
    min-height: 22rem;
    padding-top: 2rem;
  }

  .quote-card blockquote {
    padding: 0 2rem;
  }

  .quote-curve {
    height: 8.5rem;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }

  .race {
    padding: 1.8rem;
  }
}

@media (min-width: 64rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 26rem);
    align-items: center;
    gap: 4rem;
  }

  .hero-text {
    display: grid;
    gap: 0.9rem;
  }

  .portrait {
    position: relative;
    isolation: isolate;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin: 0;
    border-radius: 28px;
    background: var(--carbon-850);
    box-shadow:
      0 0 0 1px rgb(237 201 122 / 0.35),
      0 40px 80px -40px rgb(228 176 79 / 0.5);
  }

  .portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, transparent 50%, rgb(6 7 8 / 0.55) 75%, rgb(6 7 8 / 0.92)),
      radial-gradient(90% 60% at 100% 0%, rgb(228 176 79 / 0.16), transparent 60%);
    pointer-events: none;
  }

  .portrait picture {
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .portrait-id {
    position: absolute;
    inset: auto 1.3rem 1.2rem;
    z-index: 1;
  }

  .portrait-id b {
    font-size: 1.5rem;
  }

  .portrait-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    background: rgb(6 7 8 / 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  :root {
    --appbar: 4.25rem;
  }

  body {
    padding-bottom: 0;
  }

  .dock {
    display: none;
  }

  .brand {
    font-size: 0.85rem;
  }

  /* Sur ordinateur, comme l'application : les onglets dans la barre du haut, soulignés d'or. */
  .topnav {
    display: flex;
    gap: 2rem;
  }

  .topnav a {
    position: relative;
    padding: 0.4rem 0;
    color: var(--metal-300);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s var(--ease);
  }

  .topnav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -0.2rem;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-gradient);
    transform: scaleX(0);
    transition: transform 0.35s var(--ease);
  }

  .topnav a:hover,
  .topnav a.on {
    color: var(--ivory);
  }

  .topnav a.on::after {
    transform: none;
  }

  .hero {
    min-height: min(calc(100svh - var(--appbar)), 52rem);
    align-content: center;
    gap: 3.5rem;
  }


}
