/* =========================================================
   SIDI SIMAGA · Portfolio freelance
   Bleu nuit × crème × accents Bamako
   Display : Bebas Neue · Texte : Outfit · Détails : JetBrains Mono
   ========================================================= */

:root {
  --cream: #fbf7f1;
  --paper: #f3ede4;
  --white: #ffffff;
  --ink: #0f151b;
  --ink-2: #161f27;
  --ink-3: #22303b;
  --muted: #5b6470;
  --muted-2: #9aa5b0;
  --line: rgba(15, 21, 27, 0.12);
  --line-light: rgba(255, 255, 255, 0.12);

  --red: #d42a23;
  --red-dark: #b8201a;
  --yellow: #f5b82e;
  --teal: #11968f;
  --teal-dark: #0d7a74;
  --orange: #f2711c;
  --purple: #5b2a86;
  --blue: #2563eb;

  --display: "Bebas Neue", "Arial Narrow", system-ui, sans-serif;
  --body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(5rem, 10vw, 8.5rem);
  --radius: 24px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --bogolan: repeating-linear-gradient(
    90deg,
    var(--red) 0 16.66%,
    var(--yellow) 16.66% 33.33%,
    var(--teal) 33.33% 50%,
    var(--purple) 50% 66.66%,
    var(--orange) 66.66% 83.33%,
    var(--blue) 83.33% 100%
  );
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
html.menu-open,
html.menu-open body {
  overflow: hidden;
}
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
::selection {
  background: var(--red);
  color: #fff;
}
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.header :focus-visible,
.menu :focus-visible,
.hero :focus-visible,
.section--dark :focus-visible,
.footer :focus-visible {
  outline-color: var(--yellow);
}
.section--dark .form :focus-visible {
  outline-color: var(--ink);
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: var(--bogolan);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.text-red {
  color: var(--red);
}
.text-yellow {
  color: var(--yellow);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  --bg: var(--red);
  --fg: #fff;
  --hover: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.6rem 0.9rem;
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), color 0.3s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hover);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before {
  transform: translateY(0);
}
.btn:hover {
  box-shadow: 0 14px 28px -12px rgba(0, 0, 0, 0.45);
}
.btn svg {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.35s var(--ease-out);
}
.btn:hover svg.arrow {
  transform: translateX(4px);
}
.btn--ghost {
  --bg: transparent;
  --fg: #fff;
  --hover: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover {
  color: var(--ink);
}
.btn--dark {
  --bg: var(--ink);
  --hover: var(--red);
}
.btn--sm {
  font-size: 1.1rem;
  padding: 0.8rem 1.15rem 0.7rem;
  border-radius: 12px;
}
.btn--block {
  width: 100%;
}

/* =========================================================
   SECTION HEAD
   ========================================================= */
.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--paper {
  background: var(--paper);
}
.section--dark {
  background: var(--ink);
  color: #fff;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.14em;
  color: var(--red-dark);
}
.section--dark .eyebrow {
  color: var(--yellow);
}
.eyebrow__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0.2rem 0.45rem 0;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}
.section-head {
  display: grid;
  gap: 1.1rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head h2,
.journey__intro h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
}
.section-head--row {
  align-items: end;
}
.section-head--row p {
  max-width: 42ch;
  color: var(--muted);
}
@media (min-width: 900px) {
  .section-head--row {
    grid-template-columns: 1fr auto;
    gap: 3rem;
  }
  .section-head--row > div {
    display: grid;
    gap: 1.1rem;
  }
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: transform 0.5s var(--ease-out);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 21, 27, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line-light);
  opacity: 0;
  transition: opacity 0.4s;
}
.header.is-scrolled::before {
  opacity: 1;
}
.header.is-hidden {
  transform: translateY(-100%);
}
.header:focus-within {
  transform: none;
}
.header__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand__mark {
  width: 40px;
  height: 40px;
  flex: none;
  transition: transform 0.6s var(--ease-out);
}
.brand:hover .brand__mark {
  transform: rotate(90deg);
}
.brand__name {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: 0.1em;
  line-height: 1;
}
.nav {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.nav__list {
  display: flex;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav__link {
  display: block;
  padding: 0.55rem 1.1rem 0.45rem;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s, background 0.3s;
}
.nav__link:hover {
  color: #fff;
}
.nav__link.is-active {
  color: var(--ink);
  background: var(--yellow);
}
.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header__cta {
  display: none;
}
.burger {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--red);
  display: grid;
  place-items: center;
}
.burger span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.burger span:nth-child(1) {
  transform: translateY(-6px);
}
.burger span:nth-child(3) {
  transform: translateY(6px);
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg);
}
@media (min-width: 900px) {
  .nav,
  .header__cta {
    display: block;
  }
  .header__cta {
    display: inline-flex;
  }
  .burger {
    display: none;
  }
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0% at calc(100% - 46px) 38px);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s 0.7s;
  overflow-y: auto;
}
.menu.is-open {
  clip-path: circle(150% at calc(100% - 46px) 38px);
  visibility: visible;
  transition: clip-path 0.8s var(--ease-in-out), visibility 0s;
}
.menu__list li {
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
}
.menu__link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.8rem 0 0.5rem;
  font-family: var(--display);
  font-size: clamp(2.8rem, 12vw, 4rem);
  line-height: 1;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out), color 0.25s;
}
.menu__link small {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted-2);
}
.menu__link:hover {
  color: var(--yellow);
}
.menu.is-open .menu__link {
  transform: none;
}
.menu.is-open li:nth-child(1) .menu__link { transition-delay: 0.25s; }
.menu.is-open li:nth-child(2) .menu__link { transition-delay: 0.31s; }
.menu.is-open li:nth-child(3) .menu__link { transition-delay: 0.37s; }
.menu.is-open li:nth-child(4) .menu__link { transition-delay: 0.43s; }
.menu__foot {
  margin-top: 2.5rem;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* lueur chaude, écho de la photo */
  content: "";
  position: absolute;
  z-index: -2;
  width: 70vw;
  height: 70vw;
  max-width: 1000px;
  max-height: 1000px;
  right: -10vw;
  top: -25vw;
  background: radial-gradient(circle, rgba(212, 42, 35, 0.22), rgba(245, 184, 46, 0.08) 40%, transparent 68%);
}
.hero__media {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 100%;
  overflow: hidden;
}
/* Photo détourée (fond transparent) posée sur le fond du hero */
.hero__media {
  --fig-top: calc(var(--header-h) + 0.75rem);
  --fig-scale: 2.4; /* hauteur de la photo par rapport à la zone visible */
}
.hero__media picture {
  position: absolute;
  z-index: 1;
  top: var(--fig-top);
  left: 50%;
  height: calc((100% - var(--fig-top)) * var(--fig-scale));
  aspect-ratio: 516 / 1110;
  translate: -43.5% 0; /* centre le visage, pas l'image */
}
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  transform: scale(1.04);
  transform-origin: 43.5% 10%;
  transition: transform 2.2s var(--ease-out);
}
.is-loaded .hero__media img {
  transform: scale(1);
}
.hero__media::before {
  /* halo chaud derrière la tête et les épaules */
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: var(--fig-top);
  width: min(130%, 760px);
  aspect-ratio: 1;
  translate: -50% -18%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(245, 184, 46, 0.2), rgba(212, 42, 35, 0.12) 38%, transparent 68%);
}
.hero__media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, rgba(15, 21, 27, 0.85) 18%, transparent 46%);
}
.hero__caption {
  display: none;
}
.hero__shapes {
  display: none;
}

.hero__inner {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.hero__content {
  width: 100%;
  max-width: 640px;
}
.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.7rem, 12.5vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding: 0.14em 0 0.04em;
  margin-top: -0.14em;
}
.hero__title .line > span {
  display: inline-block;
}
.hero__title .hl {
  color: var(--yellow);
}
.hero__title .hl--red {
  color: var(--red);
}
.hero__title .underline {
  position: relative;
  display: inline-block;
}
.hero__title .underline svg {
  position: absolute;
  left: 0;
  bottom: -0.06em;
  width: 100%;
  height: 0.2em;
  overflow: visible;
}
.hero__title .underline path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw 1.4s 1.2s var(--ease-out) forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}
.hero__lead {
  margin-top: 1.4rem;
  max-width: 44ch;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  color: rgba(255, 255, 255, 0.78);
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
}
.hero__facts li {
  display: grid;
  gap: 0.2rem;
}
.hero__facts b {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.hero__facts sup {
  font-size: 0.55em;
  color: var(--yellow);
  vertical-align: top;
  margin-left: 1px;
}
.hero__facts span {
  font-size: 0.82rem;
  color: var(--muted-2);
}

@media (min-width: 1024px) {
  .hero__media {
    width: 54%;
  }
  .hero__media {
    --fig-top: calc(var(--header-h) + 1.5rem);
    --fig-scale: 1.6;
  }
  .hero__media::after {
    background: linear-gradient(to top, var(--ink) 0%, rgba(15, 21, 27, 0.7) 12%, transparent 30%);
  }
  .hero__inner {
    align-items: center;
    padding-bottom: 3rem;
  }
  .hero__content {
    max-width: 50%;
  }
  .hero__title {
    font-size: clamp(4rem, 6.2vw, 6.6rem);
  }
  .hero__caption {
    position: absolute;
    right: var(--gutter);
    bottom: 2.25rem;
    display: grid;
    justify-items: end;
    gap: 0.2rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
  }
  .hero__caption span:first-child {
    color: #fff;
  }
  .hero__shapes {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }
  .shape {
    position: absolute;
    will-change: transform;
  }
  .shape svg {
    width: 100%;
    height: 100%;
  }
  .shape--a {
    width: 64px;
    top: 24%;
    left: 47%;
    animation: float 8s var(--ease-in-out) infinite;
  }
  .shape--b {
    width: 30px;
    bottom: 34%;
    left: 49%;
    animation: float 7s var(--ease-in-out) infinite -3s;
  }
}
@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -14px; rotate: 8deg; }
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden;
  padding: 1rem 0 0.8rem;
  background: var(--red);
  color: #fff;
  user-select: none;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 1.4rem;
  padding-right: 1.4rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}
.marquee__item svg {
  width: 0.5em;
  height: 0.5em;
  color: var(--yellow);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .services {
    grid-template-columns: repeat(4, 1fr);
  }
}
.service {
  --c: var(--red);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1.5px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.4s;
}
.service--teal { --c: var(--teal-dark); }
.service--purple { --c: var(--purple); }
.service--orange { --c: #c85a12; }
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--c);
  clip-path: circle(0% at 3.5rem 3.5rem);
  transition: clip-path 0.7s var(--ease-out);
}
.service__num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: var(--display);
  font-size: 3.6rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(15, 21, 27, 0.25);
  transition: -webkit-text-stroke-color 0.4s;
}
.service__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--c);
  color: #fff;
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease-out);
}
.service__icon svg {
  width: 26px;
  height: 26px;
}
.service__title {
  margin-top: auto;
  padding-top: 2.5rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.1rem;
  line-height: 0.95;
}
.service__desc {
  margin-top: 0.7rem;
  font-size: 0.98rem;
  color: var(--muted);
  transition: color 0.4s;
}
.service__tags {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.4s, border-color 0.4s;
}
@media (hover: hover) {
  .service:hover {
    color: #fff;
    transform: translateY(-6px);
    box-shadow: 0 30px 50px -30px rgba(15, 21, 27, 0.5);
    border-color: var(--c);
  }
  .service:hover::before {
    clip-path: circle(150% at 3.5rem 3.5rem);
  }
  .service:hover .service__icon {
    background: #fff;
    color: var(--c);
    transform: rotate(-8deg);
  }
  .service:hover .service__desc,
  .service:hover .service__tags {
    color: rgba(255, 255, 255, 0.88);
  }
  .service:hover .service__tags {
    border-color: rgba(255, 255, 255, 0.25);
  }
  .service:hover .service__num {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.45);
  }
}

/* =========================================================
   PROJECTS
   ========================================================= */
.work {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .work {
    grid-template-columns: 1fr 1fr;
  }
  .project--wide {
    grid-column: 1 / -1;
    grid-template-columns: 1.35fr 1fr;
    grid-template-rows: auto;
  }
  .project--wide .project__body {
    align-self: center;
    padding: 2.5rem;
  }
  .project--wide .project__title {
    font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  }
}
.project {
  --c: var(--purple);
  --c2: var(--orange);
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 28px;
  background: var(--white);
  border: 1.5px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.project--teal {
  --c: var(--teal-dark);
  --c2: var(--yellow);
}
.project--red {
  --c: var(--red);
  --c2: var(--purple);
}
.project:hover {
  transform: translateY(-6px);
  box-shadow: 0 40px 60px -40px rgba(15, 21, 27, 0.55);
}
.project__visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--c);
  overflow: hidden;
  isolation: isolate;
}
.project__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 60%;
  aspect-ratio: 1;
  right: -15%;
  bottom: -35%;
  background: var(--c2);
  rotate: 45deg;
  border-radius: 24px;
  transition: transform 0.8s var(--ease-out);
}
.project:hover .project__visual::before {
  transform: translate(-8%, -8%) rotate(12deg);
}
.project__visual .mock,
.project__visual .phones {
  width: 100%;
  max-width: 560px;
  transition: transform 0.7s var(--ease-out);
}
.project:hover .project__visual .mock,
.project:hover .project__visual .phones {
  transform: translateY(-6px) scale(1.02);
}
.project__body {
  padding: 1.75rem 1.75rem 2rem;
}
.project__meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-dark);
}
.project__title {
  margin-top: 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.2rem;
  line-height: 0.95;
}
.project__desc {
  margin-top: 0.7rem;
  color: var(--muted);
}
.project__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}
.project__stack span {
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* ---------- Mockups (CSS) ---------- */
.mock {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 40px 70px -30px rgba(15, 21, 27, 0.6), 0 0 0 1px rgba(15, 21, 27, 0.08);
  font-size: 10px;
  line-height: 1.3;
}
.mock__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: #f1ece6;
  border-bottom: 1px solid #e6dfd6;
}
.mock__bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e0d6cb;
}
.mock__url {
  flex: 1;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #fff;
  color: #8b8193;
  font-family: var(--mono);
  font-size: 9px;
}
.mock__app {
  display: grid;
  grid-template-columns: 22% 1fr;
  min-height: 270px;
}
.mock__side {
  padding: 12px 10px;
  background: var(--ink);
  color: #c9d1d9;
  display: grid;
  align-content: start;
  gap: 4px;
}
.mock__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #fff;
  font-weight: 600;
  font-size: 10.5px;
}
.mock__logo i {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--yellow);
}
.mock__nav {
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock__nav::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.5;
}
.mock__nav.is-on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.mock__main {
  padding: 14px;
  background: #faf8f5;
  display: grid;
  gap: 10px;
  align-content: start;
}
.mock__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock__h {
  font-weight: 600;
  font-size: 13px;
}
.mock__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--red));
}
.mock__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.kpi {
  padding: 9px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #eee7de;
}
.kpi small {
  display: block;
  color: #8b8193;
  font-size: 8.5px;
}
.kpi b {
  display: block;
  margin-top: 3px;
  font-size: 15px;
}
.mock__row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 8px;
}
.mock__card {
  padding: 10px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid #eee7de;
}
.mock__card-h {
  font-weight: 600;
  font-size: 9.5px;
  margin-bottom: 8px;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 84px;
}
.bars span {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  background: var(--purple);
  height: var(--h);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1s var(--ease-out);
}
.bars span:nth-child(even) {
  background: var(--orange);
}
.is-in .bars span {
  transform: scaleY(1);
}
.bars span:nth-child(2) { transition-delay: 0.06s; }
.bars span:nth-child(3) { transition-delay: 0.12s; }
.bars span:nth-child(4) { transition-delay: 0.18s; }
.bars span:nth-child(5) { transition-delay: 0.24s; }
.bars span:nth-child(6) { transition-delay: 0.3s; }
.bars span:nth-child(7) { transition-delay: 0.36s; }
.donut {
  width: 76px;
  height: 76px;
  margin: 4px auto;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0 46%, var(--yellow) 46% 74%, var(--red) 74% 100%);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 53%);
  mask: radial-gradient(circle, transparent 52%, #000 53%);
}
.table div {
  display: grid;
  grid-template-columns: 1.6fr 1fr auto;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid #f0ebe4;
  align-items: center;
}
.table div:last-child {
  border: 0;
}
.status-pill {
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 8px;
  background: rgba(17, 150, 143, 0.12);
  color: var(--teal-dark);
  font-weight: 600;
}
.status-pill--warn {
  background: rgba(245, 184, 46, 0.2);
  color: #8a5f00;
}
.status-pill--red {
  background: rgba(212, 42, 35, 0.12);
  color: var(--red);
}
.line-chart {
  width: 100%;
  height: 80px;
}
.line-chart path.l {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  transition: stroke-dashoffset 1.8s var(--ease-out);
}
.is-in .line-chart path.l {
  stroke-dashoffset: 0;
}

/* Phones */
.phones {
  display: flex;
  justify-content: center;
  gap: 5%;
}
.phone {
  width: 42%;
  max-width: 190px;
  aspect-ratio: 9 / 18.5;
  border-radius: 28px;
  padding: 7px;
  background: #0a0e12;
  box-shadow: 0 40px 70px -30px rgba(15, 21, 27, 0.7), inset 0 0 0 2px #26313b;
}
.phone:nth-child(2) {
  margin-top: 10%;
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #faf8f5;
  font-size: 9px;
  display: flex;
  flex-direction: column;
}
.phone__notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 14px;
  border-radius: 10px;
  background: #0a0e12;
  z-index: 2;
}
.app-head {
  padding: 28px 11px 12px;
  background: var(--ink);
  color: #fff;
}
.app-head small {
  color: #a9b3bd;
  font-size: 8px;
}
.app-head b {
  display: block;
  font-size: 12px;
  margin-top: 2px;
}
.app-balance {
  margin-top: 9px;
  padding: 9px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--red), var(--orange));
}
.app-balance b {
  font-size: 15px;
}
.app-body {
  padding: 9px;
  display: grid;
  gap: 7px;
  align-content: start;
  flex: 1;
}
.app-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #eee7de;
}
.app-item i {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  flex: none;
  background: var(--purple);
}
.app-item + .app-item i {
  background: var(--teal);
}
.app-item div {
  display: grid;
}
.app-item small {
  color: #8b8193;
  font-size: 7.5px;
}
.app-map {
  height: 110px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 40%, var(--red) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 62%, var(--teal) 0 5px, transparent 6px),
    radial-gradient(circle at 52% 25%, var(--purple) 0 5px, transparent 6px),
    linear-gradient(115deg, transparent 46%, #fff 46% 49%, transparent 49%),
    linear-gradient(25deg, transparent 56%, #fff 56% 59%, transparent 59%),
    #e9e2d6;
}
.app-btn {
  margin-top: auto;
  padding: 8px;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  background: var(--ink);
  color: #fff;
}

/* =========================================================
   JOURNEY
   ========================================================= */
.journey {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .journey {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 5rem;
    align-items: start;
  }
  .journey__intro {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}
.journey__intro {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}
.journey__intro p {
  max-width: 38ch;
  color: var(--muted);
}
.journey__intro .btn {
  margin-top: 0.75rem;
}
.xp-list {
  border-top: 2px solid var(--ink);
}
.xp {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.5rem;
  align-items: center;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.xp::before {
  content: "";
  position: absolute;
  inset: 0 -1rem;
  z-index: -1;
  border-radius: 14px;
  background: var(--paper);
  opacity: 0;
  transform: scaleY(0.6);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
}
.xp:hover::before {
  opacity: 1;
  transform: none;
}
.xp__date {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.xp__role {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1;
}
.xp__org {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.xp__tag {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}
.xp__tag--now {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.xp__tag--now::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #2bd66b;
  vertical-align: 1px;
}
@media (min-width: 640px) {
  .xp {
    grid-template-columns: 130px 1fr auto;
  }
  .xp__date {
    grid-column: auto;
  }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 800px;
  height: 800px;
  right: -300px;
  top: -300px;
  background: radial-gradient(circle, rgba(212, 42, 35, 0.25), transparent 65%);
}
.contact__grid {
  display: grid;
  gap: 3rem;
}
@media (min-width: 1024px) {
  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
}
.contact__title {
  margin-top: 1.25rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 0.88;
}
.contact__lead {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.12rem;
}
.channels {
  display: grid;
  gap: 0.75rem;
  margin-top: 2.25rem;
  max-width: 460px;
}
.channel {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease-out);
}
a.channel:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(6px);
}
.channel__ico {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--c);
  color: #fff;
}
.channel__ico svg {
  width: 21px;
  height: 21px;
}
.channel small {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.channel span {
  font-weight: 500;
  word-break: break-word;
}
.channel > span:nth-child(2) > span {
  display: block;
}
.channel__arrow {
  margin-left: auto;
  width: 20px;
  height: 20px;
  opacity: 0.5;
}

/* Form */
.form {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: 28px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 50px 80px -40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.form::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--bogolan);
  background-size: 300px 100%;
}
.form__grid {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field > label,
.field > legend {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
}
fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(245, 184, 46, 0.45);
}
.field.has-error input,
.field.has-error textarea {
  border-color: var(--red);
}
.field__err {
  font-size: 0.8rem;
  color: var(--red-dark);
}
.field__err:empty {
  display: none;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.choice span {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.choice span:hover {
  border-color: var(--ink);
}
.choice input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.choice input:focus-visible + span {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.form__note {
  margin-top: 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.form__note.is-success {
  color: var(--teal-dark);
  font-weight: 500;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  border-top: 1px solid var(--line-light);
}
.footer__word {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--display);
  font-size: clamp(6rem, 30vw, 28rem);
  line-height: 0.78;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.16);
  user-select: none;
}
@media (hover: hover) {
  .footer__word:hover {
    -webkit-text-stroke-color: transparent;
    background: linear-gradient(90deg, var(--red), var(--yellow), var(--teal), var(--purple), var(--red));
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: wordflow 5s linear infinite;
  }
}
@keyframes wordflow {
  to { background-position: 200% 0; }
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: 0.85rem;
  color: var(--muted-2);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer__links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s;
}
.footer__links a:hover {
  color: var(--yellow);
}
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* =========================================================
   REVEAL
   ========================================================= */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js [data-reveal="scale"] {
  transform: scale(0.95);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.js .hero__title .line > span {
  transform: translateY(105%);
  transition: transform 1.1s var(--ease-out);
}
.js .is-loaded .hero__title .line > span {
  transform: none;
}
.js .is-loaded .hero__title .line:nth-child(2) > span { transition-delay: 0.08s; }
.js .is-loaded .hero__title .line:nth-child(3) > span { transition-delay: 0.16s; }
.js .is-loaded .hero__title .line:nth-child(4) > span { transition-delay: 0.24s; }
.js .hero [data-hero] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js .is-loaded [data-hero] {
  opacity: 1;
  transform: none;
}
.js .hero__media {
  opacity: 0;
  transition: opacity 1.4s var(--ease-out);
}
.js .is-loaded .hero__media {
  opacity: 1;
}

@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: 0ms !important;
  }
  .marquee__track {
    animation: none;
  }
}

/* Projets : visuels de même hauteur côte à côte */
@media (min-width: 900px) {
  .project:not(.project--wide) .project__visual {
    height: 440px;
  }
  .project:not(.project--wide) .phone {
    max-width: 165px;
  }
}

/* Hero mobile : photo visible en haut, texte en dessous */
@media (max-width: 1023px) {
  .hero__media {
    bottom: auto;
    height: min(64svh, 620px);
  }
  .hero__inner {
    min-height: 0;
    padding-top: min(50svh, 470px);
  }
  .hero__ctas .btn {
    flex: 1 1 auto;
  }
  .hero__facts {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 1rem;
  }
  .hero__facts b {
    font-size: 1.45rem;
  }
  .hero__facts span {
    font-size: 0.72rem;
  }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__media {
    height: 70svh;
  }
  .hero__media {
    --fig-scale: 2.1;
  }
}
.section-head--row > div {
  display: grid;
  gap: 1.1rem;
}
@media (max-width: 420px) {
  .channel__arrow {
    display: none;
  }
  .channel span {
    font-size: 0.95rem;
  }
}
