/* =============================================================
   Armand Lavenne · Portfolio
   Product Designer & Builder

   Sommaire
   00. Polices
   01. Tokens
   02. Base
   03. Ambiance (halos, grain)
   04. Navigation
   05. Boutons
   06. Hero
   07. Chiffres clés
   08. Sections
   09. Cards (panels)
   10. Projets repliables
   11. Écrans d'apps
   12. Études de cas
   13. Parcours
   14. Contact & footer
   15. Animations
   16. Responsive
   17. Mouvement réduit
   ============================================================= */

/* 00. Polices (auto-hébergées, licence SIL OFL) -------------- */
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}

/* 01. Tokens ------------------------------------------------- */
:root {
  --bg: #09080d;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.09);
  --ink: #f6f5fa;
  --body: #bdbacb;
  --muted: #8f8ba3;
  --line: rgba(255, 255, 255, 0.09);

  --accent: #3b2fe0;
  --accent-text: #aba4ff;
  --accent-soft: rgba(124, 113, 255, 0.14);
  --accent-gradient: linear-gradient(145deg, #4c40f5, #3b2fe0 58%, #2c21b8);

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 20px;
  --radius-panel: clamp(24px, 4vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 02. Base --------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Bilingue : chaque texte existe en FR et en EN, on masque l'autre langue. */
html[data-lang="fr"] .en,
html[data-lang="en"] .fr {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: 8px;
  left: -999px;
  z-index: 300;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}

.skip:focus {
  left: 8px;
}

/* 03. Ambiance ----------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(42% 38% at 82% 8%, rgba(76, 64, 245, 0.38), transparent 70%),
    radial-gradient(36% 34% at 6% 46%, rgba(140, 80, 255, 0.16), transparent 72%),
    radial-gradient(44% 40% at 70% 96%, rgba(59, 47, 224, 0.22), transparent 70%), var(--bg);
}

/* Grain : un bruit SVG très léger par-dessus toute la page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 04. Navigation --------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 8, 13, 0.62);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

/* Barre de progression de lecture (CSS seul, là où c'est supporté). */
.nav-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-text));
  box-shadow: 0 0 12px rgba(124, 113, 255, 0.8);
}

@supports (animation-timeline: scroll()) {
  .nav-progress {
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
}

.lang button {
  min-height: 32px;
  padding: 6px 10px;
  border: 0;
  border-radius: 99px;
  background: none;
  color: var(--muted);
  font: 600 12px var(--sans);
  letter-spacing: 0.06em;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* 05. Boutons ------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 99px;
  font: 600 15px var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow:
    0 10px 30px -8px rgba(80, 66, 255, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  background: #4a3ef2;
}

.btn-ghost {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 14px;
}

/* 06. Hero --------------------------------------------------- */
.hero {
  position: relative;
  overflow-x: clip;
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
}

.hero::before {
  content: "";
  position: absolute;
  top: -12%;
  right: -8%;
  z-index: -1;
  width: 760px;
  height: 760px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(76, 64, 245, 0.32), transparent 62%);
  filter: blur(10px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 28px;
  padding: 8px 14px 8px 12px;
  border-radius: 99px;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(171, 164, 255, 0.22);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.status .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1db954;
  animation: ping 2s infinite;
}

.hero h1 {
  margin-bottom: 26px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(42px, 6.6vw, 84px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero h1 em {
  color: var(--accent-text);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-shadow: 0 0 40px rgba(124, 113, 255, 0.55);
}

.hero-sub {
  max-width: 600px;
  margin-bottom: 34px;
  font-size: clamp(17px, 1.6vw, 20px);
}

.hero-sub strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

/* Portrait + vignettes d'apps flottantes */
.portrait {
  --px: 0;
  --py: 0;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1.08;
}

.portrait-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 40% 40% 32px 32px;
  background: var(--surface);
  box-shadow:
    0 40px 90px -30px rgba(80, 66, 255, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  translate: calc(var(--px) * -6px) calc(var(--py) * -6px);
  scale: 1.04;
  transition: translate 0.6s var(--ease-out);
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 18px;
  background: rgba(24, 22, 34, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow:
    0 18px 40px -18px rgba(0, 0, 0, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  translate: calc(var(--px) * var(--depth, 14px)) calc(var(--py) * var(--depth, 14px));
  transition: translate 0.6s var(--ease-out);
  animation: float 6s ease-in-out infinite;
}

.float img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.float b {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.float small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.float-1 {
  top: 12%;
  left: -14%;
  --depth: 18px;
}

.float-2 {
  top: 44%;
  right: -12%;
  --depth: 24px;
  animation-delay: -2s;
}

.float-3 {
  bottom: 6%;
  left: -6%;
  --depth: 12px;
  animation-delay: -4s;
}

/* 07. Chiffres clés ------------------------------------------ */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(40px, 6vw, 72px);
}

.kpi {
  padding: 22px 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s;
}

.kpi:hover {
  transform: translateY(-4px);
}

.kpi--hero {
  background: var(--accent-gradient);
  box-shadow:
    0 20px 50px -20px rgba(80, 66, 255, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.kpi-n {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 54px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.kpi-l {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}

.kpi-src {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  opacity: 0.85;
}

.kpi--hero .kpi-n {
  color: #fff;
}

.kpi--hero .kpi-l {
  color: rgba(255, 255, 255, 0.82);
}

/* 08. Sections ----------------------------------------------- */
.sec {
  padding-top: clamp(72px, 10vw, 128px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-text);
  font: 600 13px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sec-title {
  max-width: 820px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.sec-intro {
  max-width: 680px;
  margin-top: 18px;
  font-size: 18px;
}

.label {
  margin-bottom: 14px;
  color: var(--muted);
  font: 600 13px var(--sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 09. Cards (panels) ----------------------------------------- */
/* Chaque section est une card sombre avec son propre halo de couleur. */
.panel {
  --pad: clamp(20px, 5vw, 64px);
  --glow: rgba(76, 64, 245, 0.7);
  --glow-2: rgba(168, 90, 255, 0.3);
  --halo: rgba(80, 66, 255, 0.4);
  --mx: 50%;
  --my: 0%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px) var(--pad);
  border-radius: var(--radius-panel);
  background: radial-gradient(
      520px circle at var(--mx) var(--my),
      rgba(255, 255, 255, 0.055),
      transparent 45%
    ),
    linear-gradient(160deg, #15131f, #0c0b12 70%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 40px 120px -50px var(--halo);
  scroll-margin-top: 88px;
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.panel::after {
  top: -340px;
  right: -260px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, var(--glow), transparent 62%);
  opacity: 0.75;
}

.panel::before {
  bottom: -320px;
  left: -240px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, var(--glow-2), transparent 65%);
}

.panel + .panel {
  margin-top: 28px;
}

.panel--scenes {
  --glow: rgba(255, 206, 110, 0.32);
  --glow-2: rgba(76, 64, 245, 0.35);
  --halo: rgba(255, 206, 110, 0.22);
}

.panel--flair {
  --glow: rgba(64, 110, 255, 0.55);
  --glow-2: rgba(255, 214, 110, 0.16);
  --halo: rgba(64, 110, 255, 0.35);
}

.panel--tdlg {
  --glow: rgba(255, 232, 90, 0.26);
  --glow-2: rgba(124, 92, 255, 0.32);
  --halo: rgba(255, 232, 90, 0.16);
}

.projects {
  margin-top: clamp(40px, 6vw, 64px);
}

/* 10. Projets repliables ------------------------------------- */
.case-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.case-id {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.case-icon {
  flex: none;
  width: 72px;
  height: 72px;
  border-radius: 17px;
  box-shadow:
    0 10px 30px -12px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.case-name {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.case-role {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}

.case-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.chip-rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 600;
}

.tagline {
  color: var(--accent-text);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-style: italic;
  line-height: 1.15;
}

/* Le gros chevron rond qui ouvre / ferme une card. */
.case-toggle {
  position: relative;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.chev {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 40px -6px var(--glow);
  transition:
    transform 0.6s var(--ease-out),
    background 0.3s,
    box-shadow 0.3s;
}

.chev svg {
  transition: translate 0.3s var(--ease-out);
}

.case-toggle:hover .chev,
.js .case:not(.open):hover .case-toggle .chev {
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.3),
    0 0 60px -2px var(--glow);
}

.js .case:not(.open):hover .chev svg {
  translate: 0 3px;
}

.case-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}

.case-toggle .tg-close,
.case-toggle[aria-expanded="true"] .tg-open {
  display: none;
}

.case-toggle[aria-expanded="true"] .tg-close {
  display: inline;
}

/* Aperçu : les écrans dépassent à moitié puis s'effacent dans un dégradé. */
.case-peek {
  position: relative;
  margin-top: 28px;
}

.js .case-summary-main,
.js .case:not(.open) .case-peek {
  cursor: pointer;
}

.js .case:not(.open) {
  padding-bottom: 0;
}

.js .case:not(.open) .case-peek {
  max-height: clamp(230px, 24vw, 300px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 30%, transparent 96%);
}

.js .case:not(.open) .case-peek figcaption {
  visibility: hidden;
}

.case-peek > * {
  transition: transform 0.5s var(--ease-out);
}

.js .case:not(.open):hover .case-peek > * {
  transform: translateY(-10px);
}

/* Contenu déplié : animation de hauteur avec grid-template-rows. */
.case-more {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.7s var(--ease-out);
}

.case-more-in {
  min-height: 0;
  overflow: hidden;
}

.js .case:not(.open) .case-more {
  grid-template-rows: 0fr;
}

.js .case:not(.open) .case-more-in {
  visibility: hidden;
  transition: visibility 0s 0.7s;
}

.case-close {
  display: flex;
  justify-content: center;
  margin-top: clamp(32px, 4vw, 48px);
}

.case-close .chev {
  width: 56px;
  height: 56px;
  transform: rotate(180deg);
}

.no-js .case-close {
  display: none;
}

/* 11. Écrans d'apps ------------------------------------------ */
.phones {
  display: flex;
  gap: 18px;
  margin: 0 calc(var(--pad, var(--gutter)) * -1);
  padding: 8px var(--pad, var(--gutter)) 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad, var(--gutter));
  scrollbar-width: thin;
}

.phone {
  flex: 0 0 auto;
  width: clamp(190px, 21vw, 250px);
  scroll-snap-align: start;
}

.phone--screen img {
  border: 6px solid #000;
  border-radius: 30px;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 30px 50px -24px rgba(0, 0, 0, 0.9);
}

.phone--mock img {
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.6));
}

.phone figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

/* Captures du back-office, dans un cadre de navigateur. */
.browser {
  margin-top: 28px;
}

.browser-frame {
  overflow: hidden;
  border-radius: 18px;
  background: #1b2550;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 40px 80px -40px rgba(0, 0, 0, 0.9),
    0 0 80px -30px var(--glow);
}

.browser-dots {
  display: flex;
  gap: 7px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
}

.browser-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.browser img {
  width: 100%;
}

.browser figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* 12. Études de cas ------------------------------------------ */
.block {
  margin-top: clamp(40px, 5vw, 56px);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  margin-top: 40px;
}

.story-grid--even {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lead {
  max-width: 720px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 18px;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.bullets {
  display: grid;
  gap: 12px;
  list-style: none;
}

.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
}

.bullets li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-text);
  box-shadow: 0 0 10px rgba(124, 113, 255, 0.8);
}

.bullets b,
.learn-card b {
  color: var(--ink);
  font-weight: 600;
}

.problem-card {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(76, 64, 245, 0.22), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(171, 164, 255, 0.25);
}

.problem-card p {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(21px, 2.1vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.problem-card em {
  color: var(--accent-text);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.learn-card {
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Grilles de cartes : fonctionnalités numérotées, constats, choix. */
.grid {
  --cols: 3;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.grid--2 {
  --cols: 2;
}
.grid--4 {
  --cols: 4;
}
.grid--5 {
  --cols: 5;
}

.tile {
  padding: 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition:
    transform 0.4s var(--ease-out),
    background 0.3s;
}

.tile:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.07);
}

.tile--outline {
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px var(--line);
}

.tile b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-weight: 600;
}

.tile > span {
  font-size: 15px;
}

.numbered {
  counter-reset: item;
}

.numbered > li {
  counter-increment: item;
}

.numbered > li::before {
  content: counter(item, decimal-leading-zero);
  display: block;
  margin-bottom: 10px;
  color: var(--accent-text);
  font: 700 13px var(--display);
}

/* Résultats chiffrés */
.results {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.results--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 560px;
}

.res {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.res b {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 42px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.res b sup {
  font-size: 0.5em;
  vertical-align: super;
}

.res > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.res--accent {
  background: var(--accent-gradient);
  box-shadow: 0 16px 40px -18px rgba(80, 66, 255, 0.8);
}

.res--accent b {
  color: #fff;
}

.res--accent > span {
  color: rgba(255, 255, 255, 0.82);
}

/* 13. Parcours ----------------------------------------------- */
.journey {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 72px);
  margin-top: 8px;
}

.story p {
  font-size: 18px;
}

.story p + p {
  margin-top: 16px;
}

.story strong {
  color: var(--ink);
  font-weight: 600;
}

.quote {
  margin-top: 28px;
  color: var(--accent-text);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 38px);
  font-style: italic;
  line-height: 1.15;
}

.js .panel--journey:not(.open) .case-peek {
  max-height: clamp(260px, 26vw, 340px);
}

.timeline {
  position: relative;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 7px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 24px 34px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: var(--bg);
}

.timeline li.now::before {
  border-color: var(--accent-text);
  background: var(--accent);
  box-shadow:
    0 0 0 4px var(--accent-soft),
    0 0 18px rgba(124, 113, 255, 0.8);
  animation: glow 2.4s ease-in-out infinite;
}

.tl-date {
  color: var(--muted);
  font-size: 14px;
}

.tl-title {
  color: var(--ink);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.tl-title small {
  color: var(--body);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
}

.tl-desc {
  margin-top: 2px;
  font-size: 15px;
}

.skills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.skill-group {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.tags li {
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 99px;
  color: var(--ink);
  font-size: 15px;
}

.tags--dark li {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(40px, 6vw, 64px);
}

.extra {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.extra .yr {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.extra b {
  display: block;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
}

.extra span {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

/* 14. Contact & footer --------------------------------------- */
.contact {
  margin-top: clamp(72px, 10vw, 128px);
  padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 72px);
  color: #fff;
}

.contact .eyebrow {
  color: #a8a1ff;
}

.contact h2 {
  max-width: 820px;
  font-family: var(--display);
  font-size: clamp(36px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
}

.contact h2 em {
  color: #a8a1ff;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.contact p {
  max-width: 560px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
}

.mail {
  display: inline-block;
  margin-top: 28px;
  border-bottom: 2px solid rgba(168, 161, 255, 0.6);
  color: #fff;
  font-family: var(--display);
  font-size: clamp(20px, 2.6vw, 30px);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
  transition: border-color 0.2s;
}

.mail:hover {
  border-color: #fff;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.contact .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.contact .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.footer {
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

/* 15. Animations --------------------------------------------- */
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.45);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(29, 185, 84, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(29, 185, 84, 0);
  }
}

@keyframes glow {
  50% {
    box-shadow:
      0 0 0 7px rgba(124, 113, 255, 0.08),
      0 0 26px rgba(124, 113, 255, 1);
  }
}

@keyframes float {
  50% {
    transform: translateY(-10px);
  }
}

@keyframes progress {
  to {
    transform: scaleX(1);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.6) translateY(12px);
  }
}

@keyframes portrait-in {
  from {
    opacity: 0;
    clip-path: inset(18% 18% 18% 18% round 40%);
    transform: scale(1.06);
  }
}

/* Entrée du hero : chaque bloc arrive à son tour. */
.js .hero .status,
.js .hero h1,
.js .hero-sub,
.js .hero-cta,
.js .hero-meta {
  animation: rise 0.9s var(--ease-out) both;
}

.js .hero h1 {
  animation-delay: 0.08s;
}
.js .hero-sub {
  animation-delay: 0.2s;
}
.js .hero-cta {
  animation-delay: 0.3s;
}
.js .hero-meta {
  animation-delay: 0.38s;
}

.js .portrait-photo {
  animation: portrait-in 1.2s var(--ease-out) 0.1s both;
}

.js .float {
  animation:
    pop 0.7s var(--ease-out) both,
    float 6s ease-in-out 0.9s infinite;
}

.js .float-1 {
  animation-delay: 0.55s, 1s;
}
.js .float-2 {
  animation-delay:
    0.7s,
    -1s;
}
.js .float-3 {
  animation-delay:
    0.85s,
    -3s;
}

/* Apparition au scroll */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.8s ease,
    transform 0.8s var(--ease-out);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Quand une card s'ouvre, ses écrans et ses tuiles arrivent en cascade. */
.case.open .phone,
.case.open .tile {
  animation: rise 0.7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

/* 16. Responsive --------------------------------------------- */
@media (max-width: 960px) {
  .grid--4,
  .grid--5 {
    --cols: 2;
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .journey,
  .story-grid,
  .story-grid--even {
    grid-template-columns: 1fr;
  }

  .portrait {
    order: -1;
    max-width: 300px;
    margin-bottom: 8px;
  }

  .float {
    padding: 6px 12px 6px 6px;
  }
  .float img {
    width: 36px;
    height: 36px;
  }
  .float-1 {
    left: -22%;
  }
  .float-2 {
    right: -22%;
  }
  .float-3 {
    left: -14%;
  }

  .kpis,
  .results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--2,
  .skills,
  .extras {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .case-summary {
    grid-template-columns: 1fr;
  }
  .case-summary-main {
    padding-right: 64px;
  }

  .case-summary > .case-toggle {
    position: absolute;
    top: clamp(28px, 5vw, 64px);
    right: var(--pad);
  }

  .case-summary > .case-toggle .chev {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .grid--4,
  .grid--5 {
    --cols: 1;
  }

  .brand {
    gap: 8px;
    font-size: 16px;
  }
  .brand img {
    width: 28px;
    height: 28px;
  }
  .nav-cv-label {
    display: none;
  }
  .lang button {
    padding: 6px 8px;
  }

  .float-1,
  .float-3 {
    left: -10px;
  }
  .float-2 {
    right: -10px;
  }

  .kpi {
    padding: 18px 16px;
  }
}

@media (max-width: 370px) {
  .brand-name {
    display: none;
  }
  .nav-right {
    gap: 8px;
  }
  .portrait {
    max-width: 260px;
  }

  .float-1,
  .float-3 {
    left: -24px;
  }
  .float-2 {
    right: -24px;
  }
}

/* 17. Mouvement réduit --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
