/* Konnect (titres) — fichiers locaux */
@font-face { font-family: "Konnect"; src: url("../fonts/KonnectBold.otf") format("opentype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Konnect"; src: url("../fonts/KonnectExtraBold.otf") format("opentype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Konnect"; src: url("../fonts/KonnectBlack.otf") format("opentype"); font-weight: 900; font-display: swap; }

/* =========================================================
   Tokens — noir / blanc / jaune
   ========================================================= */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --surface: #151515;
  --surface-2: #1c1c1c;
  --ink: #f6f5f1;
  --ink-2: #c2c1ba;
  --muted: #7d7c76;
  --line: #242424;
  --accent: #ffc61a;
  --accent-2: #ffd75a;
  --on-accent: #0a0a0a;
  --white: #f6f5f1;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-display: "Konnect", "Raleway", system-ui, sans-serif;
  --font-head: "Raleway", system-ui, sans-serif;
  --font-body: "Raleway", system-ui, sans-serif;
  color-scheme: dark;
}

/* Sections claires (blanc) */
.light {
  --bg: #f6f5f1;
  --bg-2: #eeede8;
  --surface: #ffffff;
  --surface-2: #f2f1ec;
  --ink: #0a0a0a;
  --ink-2: #3c3c39;
  --muted: #7d7c76;
  --line: #e1e0da;
  background: var(--bg);
  color: var(--ink);
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background:
    radial-gradient(55vw 55vw at 92% -8%, rgba(255, 198, 26, .13), transparent 62%),
    radial-gradient(45vw 45vw at -12% 55%, rgba(255, 198, 26, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
/* Grille fine + grain */
body::before, body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 10%, transparent 75%);
}
body::after {
  opacity: .07;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; margin: 0; line-height: 1.08; letter-spacing: -.01em; }
/* Konnect : titres principaux et grands chiffres */
h1, h2, .hero__word, .page-hero__num, .rstep__big, .stat strong, .footer__big {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
}
p { margin: 0 0 1rem; }
button { font: inherit; cursor: pointer; }
iconify-icon { display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; }
::selection { background: var(--accent); color: var(--on-accent); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.hl { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn iconify-icon { font-size: 16px; transition: transform .3s var(--ease); }
.btn:hover iconify-icon { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(255, 198, 26, .55); }
.btn--outline { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { padding: 10px 18px; font-size: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  transition: color .3s, border-color .3s, gap .3s var(--ease);
}
.link-arrow:hover { color: var(--accent); border-color: var(--accent); gap: 12px; }

.icon-btn {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent; color: var(--ink);
  font-size: 18px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   Nav
   ========================================================= */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled {
  background: rgba(10, 10, 10, .78);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
/* Logos affichés tels quels, sans fond ni filtre */
.nav__brand, .footer__brand { display: inline-block; }
.nav__logo { width: 40px; height: auto; transition: transform .4s var(--ease); }
.nav__brand:hover .nav__logo { transform: rotate(-4deg) scale(1.04); }
.nav__links {
  display: flex; gap: 4px;
  padding: 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(21, 21, 21, .6);
  backdrop-filter: blur(10px);
}
.nav__links a {
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 9px 16px; border-radius: 999px;
  transition: color .3s, background .3s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a.is-active { background: var(--accent); color: var(--on-accent); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
/* Burger : deux traits qui se croisent en X */
.nav__burger {
  display: none; position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(21, 21, 21, .7); backdrop-filter: blur(10px);
}
.nav__burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .45s cubic-bezier(.77, 0, .18, 1), top .45s cubic-bezier(.77, 0, .18, 1), background .3s;
}
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 26px; }
.menu-open .nav__burger { background: var(--accent); border-color: var(--accent); }
.menu-open .nav__burger span { background: var(--on-accent); top: 22px; }
.menu-open .nav__burger span:first-child { transform: rotate(45deg); }
.menu-open .nav__burger span:last-child { transform: rotate(-45deg); }

/* Menu plein écran */
.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px 24px calc(110px + env(safe-area-inset-bottom));
  background: radial-gradient(80vw 80vw at 100% 0%, rgba(255, 198, 26, .16), transparent 60%), #0a0a0a;
  clip-path: circle(0% at calc(100% - 40px) 40px); visibility: hidden;
  transition: clip-path .7s cubic-bezier(.77, 0, .18, 1), visibility 0s .7s;
}
.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; transition-delay: 0s; }
.menu-open { overflow: hidden; }
.menu__links { display: grid; }
.menu__link {
  display: flex; align-items: baseline; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 9vw, 44px); line-height: 1.1;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.menu-open .menu__link { opacity: 1; transform: none; transition-delay: calc(var(--i) * .06s + .25s); }
.menu__link small { font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .1em; }
.menu__link span { flex: 1; }
.menu__link iconify-icon { font-size: 22px; color: var(--muted); align-self: center; transition: transform .3s var(--ease), color .3s; }
.menu__link.is-active, .menu__link:active { color: var(--accent); }
.menu__link.is-active iconify-icon { color: var(--accent); }
.menu__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); opacity: 0; transition: opacity .5s .6s; }
.menu-open .menu__foot { opacity: 1; }
.menu__socials { display: flex; gap: 8px; }
.menu__socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: 19px; }

/* Barre du bas */
.dock { display: none; }

/* =========================================================
   Hero (accueil)
   ========================================================= */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 40px; overflow-x: clip; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px; }
.hero__hello { font-size: 18px; color: var(--ink-2); margin-bottom: 10px; }
/* Sur une seule ligne : « BLACKBUUR. » mesure ~5,7 × la taille de police */
.hero__title { font-size: clamp(40px, 8.2vw, 96px); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.hero__title span { color: var(--accent); }
.hero__role {
  margin: 22px 0 0;
  font-family: var(--font-head); font-size: 15px;
  letter-spacing: .32em; text-transform: uppercase; color: var(--ink-2);
}
.hero__lead { max-width: 460px; font-size: 17px; color: var(--ink-2); margin: 28px 0 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__socials { display: flex; gap: 10px; margin-top: 44px; }
.hero__socials a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--ink-2); font-size: 19px;
  transition: color .3s, border-color .3s, transform .3s var(--ease);
}
.hero__socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.hero__visual { position: relative; height: min(78vh, 720px); display: flex; align-items: flex-end; justify-content: center; }
.hero__word {
  position: absolute; top: 6%; left: 50%; translate: -50% 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 10vw, 140px); line-height: 1; letter-spacing: 0;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .1);
  white-space: nowrap; user-select: none; pointer-events: none;
}
.hero__disc {
  position: absolute; bottom: 16%; left: 50%; translate: -50% 0; z-index: 1;
  height: 66%; width: auto; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent-2), var(--accent) 55%, #e0a400);
}
/* Lueur hors du masque : elle se diffuse librement autour du disque */
.hero__glow {
  position: absolute; bottom: -10%; left: 50%; translate: -50% 0;
  height: 125%; width: auto; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 26, .38) 0%, rgba(255, 198, 26, .14) 35%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: .75; transform: scale(.96); } }
.hero__ring {
  position: absolute; bottom: 3%; left: 50%; translate: -50% 0;
  height: 86%; width: auto; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(255, 198, 26, .4);
  animation: spin 60s linear infinite;
}
.hero__ring::after {
  content: ""; position: absolute; top: 12%; left: 10%;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 16px var(--accent);
}
@keyframes spin { to { rotate: 360deg; } }
.hero__photo {
  position: relative; z-index: 2;
  height: 100%; width: auto; object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5));
}
/* Fondu du bas sur la photo et le disque seulement : la photo reste opaque devant le disque */
.hero__stage {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  -webkit-mask-image: linear-gradient(#000 80%, transparent 99%);
  mask-image: linear-gradient(#000 80%, transparent 99%);
}


/* =========================================================
   Page hero (pages internes)
   ========================================================= */
.page-hero { position: relative; padding: 170px 0 70px; overflow: hidden; }
.page-hero__crumb { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.page-hero__crumb a:hover { color: var(--accent); }
.page-hero__title { font-size: clamp(40px, 7vw, 96px); line-height: 1; letter-spacing: -.03em; }
.page-hero__title span { color: var(--accent); }
.page-hero__lead { max-width: 560px; font-size: 18px; color: var(--ink-2); margin: 26px 0 0; }
.page-hero__num {
  position: absolute; right: 0; bottom: -40px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(100px, 16vw, 220px); line-height: 1; letter-spacing: 0;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 198, 26, .22);
  pointer-events: none; user-select: none;
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 110px 0; position: relative; }
.section--tight { padding-top: 40px; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section__title { font-size: clamp(28px, 3.8vw, 48px); line-height: 1.1; }
.section__title span { color: var(--accent); }
.light .section__title span { background: linear-gradient(transparent 62%, var(--accent) 62%); color: inherit; }
.section__lead { max-width: 480px; color: var(--ink-2); margin: 16px 0 0; }

/* Filters */
.filters { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.filter {
  border: 0; background: transparent; color: var(--ink-2);
  padding: 9px 18px; border-radius: 999px;
  font-family: var(--font-head); font-size: 13px; font-weight: 500;
  transition: background .3s, color .3s;
}
.filter sup { font-size: 10px; margin-left: 2px; opacity: .6; }
.filter.is-active { background: var(--accent); color: var(--on-accent); }

/* =========================================================
   Projects
   ========================================================= */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; grid-auto-flow: dense; }
.project {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  text-align: left; padding: 0; color: inherit;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.project:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(255, 198, 26, .45); }
.project.is-hidden { display: none; }
.project.is-entering { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.project--wide { grid-column: span 2; }

.project__cover {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--tone, var(--surface-2));
  display: grid; place-items: center;
}
.project--wide .project__cover { aspect-ratio: auto; flex: 1; min-height: 0; }
.project__cover > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project--wide .project__cover > img { position: absolute; inset: 0; object-position: center 30%; }
.project:hover .project__cover > img, .project:hover .mock { transform: scale(1.04); }
.project__play {
  position: absolute; right: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s, transform .35s var(--ease);
}
.project:hover .project__play { opacity: 1; transform: none; }
.project__body { padding: 18px 22px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project__body h3 { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.project__body p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.tag {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2);
}
.tag iconify-icon { color: var(--accent); }

/* Couvertures : capture du prototype dans un cadre navigateur (web) ou téléphone (mobile) */
.mock { position: relative; transition: transform .7s var(--ease); }
.mock--web {
  width: 80%; aspect-ratio: 16 / 10.6;
  display: flex; flex-direction: column;
  background: #fff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6);
}
.project--wide .mock--web { width: auto; height: 76%; }
.mock__bar { flex: none; height: 22px; background: #efeee9; display: flex; align-items: center; gap: 5px; padding-left: 10px; }
.mock__bar i { width: 7px; height: 7px; border-radius: 50%; background: #d4d3cd; }
.mock__bar i:nth-child(1) { background: #ff6159; }
.mock__bar i:nth-child(2) { background: #ffbd2e; }
.mock__bar i:nth-child(3) { background: #28c941; }
.mock__shot { display: block; width: 100%; flex: 1; min-height: 0; object-fit: cover; object-position: top center; }
.mock--mobile {
  height: 86%; aspect-ratio: 9 / 19.5;
  background: #0a0a0a; border-radius: 26px; border: 5px solid #0a0a0a;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  overflow: hidden;
}
.mock--mobile .mock__shot { height: 100%; border-radius: 21px; }

/* =========================================================
   Services
   ========================================================= */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.services-grid--3 { grid-template-columns: repeat(3, 1fr); }
.service {
  position: relative;
  padding: 30px 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .4s var(--ease), border-color .3s, background .3s;
  overflow: hidden;
}
.service:hover { transform: translateY(-6px); border-color: var(--accent); }
.service__num { position: absolute; top: 22px; right: 24px; font-family: var(--font-head); font-size: 13px; color: var(--muted); }
/* Icône nue, avec une pastille jaune décalée derrière */
.service__icon {
  position: relative;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  color: var(--ink); font-size: 34px;
  margin-bottom: 24px;
}
.service__icon iconify-icon { position: relative; z-index: 1; transition: transform .4s var(--ease); }
.service__icon::before {
  content: ""; position: absolute; right: -4px; bottom: -2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent);
  transition: transform .4s var(--ease);
}
.service:hover .service__icon iconify-icon { transform: translate(-2px, -2px); }
.service:hover .service__icon::before { transform: scale(1.35); }
.service h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--muted); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.chips span { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }

/* =========================================================
   About
   ========================================================= */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: center; }
.about__photo { position: relative; }
.about__photo::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 1px solid var(--accent); border-radius: var(--radius-lg);
}
.about__photo img {
  position: relative;
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 80%; /* garde la tête et les pieds */
  border-radius: var(--radius-lg);
  filter: grayscale(1) contrast(1.05);
}
.about__text .section__title { margin-bottom: 22px; }
.about__text p { color: var(--ink-2); }

/* Expertises UX/UI */
.expertise { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.expertise span {
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  transition: border-color .3s, color .3s, transform .3s var(--ease);
}
.expertise span:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.tools { display: flex; flex-wrap: wrap; gap: 10px; }
.tools span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; font-weight: 600;
}

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.value iconify-icon { font-size: 28px; color: var(--accent); margin-bottom: 18px; }
.light .value iconify-icon { color: var(--ink); }
.value h3 { font-size: 20px; margin-bottom: 8px; }
.value p { color: var(--muted); margin: 0; font-size: 15px; }

/* Bandes de projets : deux lignes géantes qui défilent en sens inverse */
.reel-section { overflow: hidden; }
/* Fondu sur les bords par masque (sans bande de couleur sur le fond) */
.reel {
  display: grid; gap: 6px; padding: 10px 0; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.reel__row { overflow: hidden; }
.reel__row--reverse { transform: rotate(-1.5deg); }
.reel__track { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); width: max-content; animation: reel 42s linear infinite; }
.reel__row--reverse .reel__track { animation-direction: reverse; animation-duration: 48s; }
.reel:hover .reel__track { animation-play-state: paused; }
@keyframes reel { to { transform: translateX(-50%); } }
.reel__item {
  position: relative;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.1;
  font-size: clamp(44px, 8vw, 120px); white-space: nowrap; color: var(--ink);
  transition: color .3s, -webkit-text-stroke-color .3s;
}
.reel__item--outline { color: transparent; -webkit-text-stroke: 1.5px rgba(246, 245, 241, .45); }
.reel__item small {
  position: absolute; top: 12%; right: -6px; transform: translateX(100%);
  font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  -webkit-text-stroke: 0; color: var(--accent); opacity: 0; transition: opacity .3s;
}
.reel__item:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.reel__item:hover small { opacity: 1; }
.reel__sep { font-size: clamp(24px, 3vw, 40px); color: var(--accent); flex-shrink: 0; }

/* =========================================================
   Process
   ========================================================= */
/* Parcours ondulé (accueil) : étapes alternées au-dessus / en dessous du tracé */
.journey { --row: 160px; --mid: 96px; position: relative; margin-top: 12px; }
.journey__path {
  position: absolute; left: 0; top: var(--row);
  width: 100%; height: var(--mid); overflow: visible;
}
.journey__path path { fill: none; }
.journey__base { stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 8; vector-effect: non-scaling-stroke; }
.journey__draw {
  stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(255, 198, 26, .6));
  transition: stroke-dashoffset 2.4s var(--ease) .2s;
}
.journey.is-in .journey__draw { stroke-dashoffset: 0; }

.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.jstep { display: grid; grid-template-rows: var(--row) var(--mid) var(--row); justify-items: center; text-align: center; }

.jstep__node {
  grid-row: 2; align-self: center; position: relative; z-index: 1;
  width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--ink); font-size: 26px;
  transform: scale(0);
  transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i) * .35s + .3s), background .3s, color .3s, border-color .3s;
}
.jstep__node--end { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* Onde qui passe d'une étape à l'autre, en boucle */
.jstep__node::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0;
  animation: ripple 5s ease-out infinite;
  animation-delay: calc(var(--i) * 1s + 2.6s);
}
@keyframes ripple { 0% { opacity: .9; transform: scale(1); } 20%, 100% { opacity: 0; transform: scale(1.7); } }
.journey.is-in .jstep__node { transform: scale(1); }
.jstep:hover .jstep__node { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.12) rotate(-8deg); transition-delay: 0s; }

.jstep__text {
  position: relative; max-width: 210px; padding: 0 8px;
  opacity: 0;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i) * .35s + .5s);
}
.jstep:nth-child(odd) .jstep__text { grid-row: 1; align-self: end; padding-bottom: 14px; transform: translateY(16px); }
.jstep:nth-child(even) .jstep__text { grid-row: 3; align-self: start; padding-top: 14px; transform: translateY(-16px); }
.journey.is-in .jstep__text { opacity: 1; transform: none; }
/* Numéro d étape : petite étiquette au-dessus du titre (plus rien derrière le texte) */
.jstep__big {
  display: inline-block; margin-bottom: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 12px; letter-spacing: .14em;
  color: var(--accent); padding: 4px 10px; border: 1px solid rgba(255, 198, 26, .35); border-radius: 999px;
  transition: background .3s, color .3s;
}
.jstep:hover .jstep__big { background: var(--accent); color: var(--on-accent); }
.jstep h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.jstep p { font-size: 14px; color: var(--muted); margin: 0; }

/* Parcours en serpentin (page Process) : tracé central dessiné au scroll, étapes alternées */
.road { --h: 300px; --p: 0; position: relative; padding: 20px 0 60px; }
.road__path {
  position: absolute; top: 20px; left: 50%; translate: -50% 0;
  width: 120px; height: calc(var(--h) * 5); overflow: visible;
}
.road__path path { fill: none; }
.road__base { stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 8; vector-effect: non-scaling-stroke; }
.road__draw {
  stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p));
  filter: drop-shadow(0 0 8px rgba(255, 198, 26, .6));
}
.road__steps { list-style: none; margin: 0; padding: 0; position: relative; }
.rstep { display: grid; grid-template-columns: 1fr 120px 1fr; align-items: center; height: var(--h); column-gap: 40px; }
.rstep__node { grid-column: 2; grid-row: 1; justify-self: center; }
.rstep:nth-child(odd) .rstep__card { grid-column: 1; justify-self: end; }
.rstep:nth-child(odd) .rstep__big { grid-column: 3; justify-self: start; }
.rstep:nth-child(even) .rstep__card { grid-column: 3; justify-self: start; }
.rstep:nth-child(even) .rstep__big { grid-column: 1; justify-self: end; }
.rstep__card, .rstep__big { grid-row: 1; }

.rstep__card {
  max-width: 440px; padding: 30px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .5s, box-shadow .5s, opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
.rstep.is-on .rstep__card { border-color: rgba(255, 198, 26, .5); box-shadow: 0 30px 60px -36px rgba(255, 198, 26, .35); }
.rstep__tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.rstep__card h3 { font-size: 30px; margin-bottom: 10px; }
.rstep__card p { color: var(--ink-2); margin: 0; }
.rstep__card .chips { margin-top: 18px; }

.rstep__node {
  position: relative; z-index: 1;
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line);
  color: var(--muted); font-size: 28px;
  transition: background .5s, color .5s, border-color .5s, box-shadow .5s, transform .6s cubic-bezier(.34, 1.56, .64, 1);
}
.rstep.is-on .rstep__node { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 40px rgba(255, 198, 26, .45); transform: scale(1.08); }
.rstep__node::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0;
}
.rstep.is-on .rstep__node::after { animation: ripple-once 1s ease-out; }
@keyframes ripple-once { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }

.rstep__big {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(90px, 11vw, 160px); line-height: 1; letter-spacing: 0;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08);
  transition: -webkit-text-stroke-color .6s, transform .8s var(--ease);
  user-select: none;
}
.rstep.is-on .rstep__big { -webkit-text-stroke-color: rgba(255, 198, 26, .45); }
.rstep:nth-child(odd).is-on .rstep__big { transform: translateX(-12px); }
.rstep:nth-child(even).is-on .rstep__big { transform: translateX(12px); }

/* =========================================================
   Stats
   ========================================================= */
.stats { padding: 0 0 110px; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.stat { padding: 34px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); font-weight: 700; line-height: 1; color: var(--accent); letter-spacing: 0; }
.stat span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* =========================================================
   CTA band
   ========================================================= */
.cta {
  position: relative; overflow: hidden;
  padding: 72px 56px; border-radius: 32px;
  background: var(--accent); color: var(--on-accent);
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta::after {
  content: ""; position: absolute; right: -80px; top: -120px;
  width: 360px; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .15); box-shadow: 0 0 0 60px rgba(0, 0, 0, .04), 0 0 0 120px rgba(0, 0, 0, .03);
}
.cta h2 { font-size: clamp(24px, 3.6vw, 44px); max-width: 680px; }
.cta .btn { background: var(--on-accent); color: var(--accent); position: relative; z-index: 1; }
.cta .btn:hover { transform: translateY(-2px); }

/* =========================================================
   Contact
   ========================================================= */
.reach { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }

/* Canaux : liste épurée */
.methods { border-top: 1px solid var(--line); }
.method {
  display: flex; align-items: center; gap: 18px;
  width: 100%; padding: 22px 4px;
  text-align: left; color: inherit; background: none;
  border: 0; border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease), opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s);
}
.method:hover { padding-left: 14px; }
.method__icon { font-size: 24px; color: var(--accent); flex-shrink: 0; }
.method__text { flex: 1; min-width: 0; }
.method__text small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.method__text strong { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .3s; }
.method:hover .method__text strong { color: var(--accent); }
.method__arrow { font-size: 20px; color: var(--muted); opacity: 0; transform: translate(-6px, 6px); transition: opacity .3s, transform .4s var(--ease), color .3s; }
.method:hover .method__arrow { opacity: 1; transform: none; color: var(--accent); }
.reach__loc { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; font-size: 14px; color: var(--muted); }
.reach__loc iconify-icon { color: var(--accent); }
.reach__loc time { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Formulaire */
.form { display: grid; gap: 18px; padding: 36px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.form::before {
  content: ""; position: absolute; top: -140px; right: -140px; width: 300px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 26, .18), transparent 65%); pointer-events: none;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brief__head h2 { font-size: 22px; margin-bottom: 6px; }
.brief__head p { margin: 0; }
.brief__types { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.brief__types legend { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink-2);
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.pick span:hover { border-color: var(--accent); color: var(--ink); }
.pick input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); animation: pop .4s cubic-bezier(.34, 1.56, .64, 1); }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@keyframes pop { 50% { transform: scale(1.08); } }

/* Champs à label flottant */
.field { position: relative; display: block; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  padding: 24px 16px 10px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  transition: border-color .3s, box-shadow .3s; resize: vertical;
}
.field span {
  position: absolute; left: 17px; top: 17px;
  font-size: 15px; color: var(--muted); pointer-events: none;
  transform-origin: left top; transition: transform .25s var(--ease), color .25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 198, 26, .14); }
.field input:focus + span, .field textarea:focus + span,
.field input:not(:placeholder-shown) + span, .field textarea:not(:placeholder-shown) + span { transform: translateY(-10px) scale(.78); color: var(--accent); }
.field.is-error input, .field.is-error textarea { border-color: #ff6b5b; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.brief__send { justify-self: start; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.brief__send.is-loading { pointer-events: none; opacity: .85; }
.brief__send.is-loading iconify-icon { animation: fly .8s ease-in infinite; }
@keyframes fly { 0% { transform: translate(0, 0); opacity: 1; } 60% { transform: translate(14px, -14px); opacity: 0; } 61% { transform: translate(-10px, 10px); opacity: 0; } 100% { transform: translate(0, 0); opacity: 1; } }

/* =========================================================
   Sheets — modales animées
   ========================================================= */
.sheet { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; visibility: hidden; perspective: 1200px; }
.sheet.is-open { visibility: visible; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet__box {
  position: relative; width: min(460px, 100%);
  padding: 44px 34px 34px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 30px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  overflow: hidden;
  opacity: 0; transform: translateY(40px) scale(.9) rotateX(10deg);
  transition: opacity .35s, transform .6s cubic-bezier(.34, 1.4, .64, 1);
}
.sheet.is-open .sheet__box { opacity: 1; transform: none; }
.sheet.is-closing .sheet__box { transform: translateY(20px) scale(.95); opacity: 0; transition-duration: .25s; }
/* Halo jaune en haut de la modale */
.sheet__box::before {
  content: ""; position: absolute; top: -160px; left: 50%; translate: -50% 0;
  width: 360px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 26, .28), transparent 65%); pointer-events: none;
}
.sheet__close {
  position: absolute; top: 16px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; background: transparent; color: var(--ink); font-size: 16px;
  transition: transform .4s var(--ease), border-color .3s, color .3s;
}
.sheet__close:hover { transform: rotate(90deg); border-color: var(--accent); color: var(--accent); }

/* Contenu révélé en cascade */
.sheet__item { position: relative; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.sheet.is-open .sheet__item { opacity: 1; transform: none; transition-delay: calc(var(--k) * .07s + .18s); }

.sheet__badge {
  position: relative; width: 78px; height: 78px; margin: 0 auto 22px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-size: 34px;
}
.sheet.is-open .sheet__badge { animation: badgeIn .7s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
.sheet__badge::before, .sheet__badge::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--accent); animation: halo 2.4s ease-out infinite; }
.sheet__badge::after { animation-delay: 1.2s; }
@keyframes badgeIn { from { transform: scale(0) rotate(-40deg); } }
@keyframes halo { from { transform: scale(1); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
.sheet__box h3 { font-size: 28px; margin-bottom: 8px; }
.sheet__box p { color: var(--ink-2); margin: 0 0 22px; }
.sheet__actions { display: grid; gap: 10px; }
.sheet__actions .btn { justify-content: center; }

/* Champ à copier */
.copy {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 18px; margin-bottom: 12px;
  border: 1px dashed rgba(255, 198, 26, .45); border-radius: 999px; background: var(--bg);
}
.copy code { flex: 1; min-width: 0; text-align: left; font-family: var(--font-head); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy button {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border: 0; border-radius: 999px;
  background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600;
  transition: background .3s, color .3s;
}
.copy button:hover { background: var(--ink); color: var(--bg); }
.copy button .i-done { display: none; }
.copy button.is-done { background: #3bd17a; color: #0a0a0a; }
.copy button.is-done .i-copy { display: none; }
.copy button.is-done .i-done { display: inline-block; animation: pop .4s cubic-bezier(.34, 1.56, .64, 1); }

/* Succès : coche dessinée + éclats */
.check { width: 86px; height: 86px; margin: 0 auto 22px; position: relative; }
.check svg { width: 100%; height: 100%; }
.check circle { fill: var(--accent); transform-box: fill-box; transform-origin: center; transform: scale(0); }
.check path { fill: none; stroke: var(--on-accent); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.sheet.is-open .check circle { animation: grow .6s cubic-bezier(.34, 1.56, .64, 1) .15s forwards; }
@keyframes grow { to { transform: scale(1); } }
.sheet.is-open .check path { animation: draw .5s ease-out .6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.burst { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--accent); opacity: 0; }
.burst:nth-child(even) { background: var(--ink); width: 6px; height: 6px; }
.sheet.is-open .burst { animation: burst .9s cubic-bezier(.2, .7, .3, 1) .55s forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.3); } }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 14px;
  transform: translate(-50%, calc(100% + 60px)); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.toast.is-on { transform: translate(-50%, 0); }

/* =========================================================
   Footer
   ========================================================= */
.footer { border-top: 1px solid var(--line); padding: 72px 0 28px; background: rgba(10, 10, 10, .6); }
.footer__big {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0; line-height: 1.1;
  font-size: clamp(28px, 5.6vw, 76px); margin-bottom: 56px;
}
.footer__big a { color: var(--accent); display: inline-flex; align-items: center; gap: .2em; transition: gap .3s var(--ease); }
.footer__big a:hover { gap: .35em; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__logo { width: 150px; height: auto; }
.footer__role { margin-top: 16px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer nav a { display: block; font-size: 14px; padding: 4px 0; color: var(--ink-2); transition: color .3s; }
.footer nav a:hover { color: var(--accent); }
.footer__bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

/* =========================================================
   Modal
   ========================================================= */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; visibility: hidden; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal__box {
  position: relative; width: min(1200px, 100%); height: min(820px, 100%);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(.98);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.modal.is-open { visibility: visible; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal__head small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.modal__head h3 { font-size: 20px; }
.modal__actions { display: flex; gap: 10px; align-items: center; }
.modal__frame { flex: 1; background: #000; }
.modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
body.no-scroll { overflow: hidden; }

/* =========================================================
   Page détail projet (étude de cas)
   ========================================================= */
.case-hero { padding-bottom: 40px; }
.case-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tag--status { border-color: rgba(255, 198, 26, .5); color: var(--accent); }
.case-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.case-hero__actions .btn { border: 0; }
.case-hero__actions .btn--outline { border: 1px solid var(--line); }

.case-cover {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 8; border-radius: 28px;
  background: var(--tone, var(--surface-2)); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.case-cover > img { width: 100%; height: 100%; object-fit: cover; }
.case-cover .mock--web { width: 70%; }
.case-cover .mock__bar { height: 30px; padding-left: 14px; gap: 7px; }
.case-cover .mock__bar i { width: 10px; height: 10px; }
.case-cover .mock--mobile { height: 84%; border-radius: 34px; border-width: 7px; }
.case-cover .mock--mobile .mock__shot { border-radius: 27px; }

.case-facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 18px 0 0; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.case-facts div { padding: 20px 24px; border-left: 1px solid var(--line); }
.case-facts div:first-child { border-left: 0; }
.case-facts dt { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.case-facts dd { margin: 0; font-weight: 700; }

.case-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.case-lead { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.6; color: var(--ink-2); margin: 0; }

.case-problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.case-problems li { display: flex; gap: 18px; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.case-problems span { font-family: var(--font-display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--ink); background: linear-gradient(transparent 55%, var(--accent) 55%); height: fit-content; }
.case-problems p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* Une colonne par carte (3 ou 4) : jamais de carte orpheline */
.case-solutions { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 16px; }
.case-card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.case-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.case-card iconify-icon { font-size: 28px; color: var(--accent); margin-bottom: 16px; }
.case-card h3 { font-size: 20px; margin-bottom: 8px; }
.case-card p { margin: 0; color: var(--muted); font-size: 15px; }

.case-method { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: m; }
.case-method li { position: relative; padding: 26px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.case-method li:not(:last-child)::after {
  content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 2px; background: var(--accent);
}
.case-method__num {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 800;
}
.case-method h3 { font-size: 18px; margin-bottom: 8px; }
.case-method p { margin: 0; color: var(--muted); font-size: 14.5px; }

.case-audience-title { margin: 28px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.case-features li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.case-features iconify-icon { flex-shrink: 0; margin-top: 3px; color: var(--accent); font-size: 18px; }

.case-proto { height: min(760px, 80vh); border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 40%, rgba(255, 198, 26, .12), transparent 60%), var(--surface); }
.case-proto iframe { width: 100%; height: 100%; border: 0; display: block; }
.case-proto__load {
  position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 0;
  border: 0; background: none; color: var(--ink); font-weight: 700; font-size: 16px; overflow: hidden;
}
/* Capture en fond, assombrie pour garder le bouton lisible */
.case-proto__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  filter: brightness(.45) saturate(.9);
  transition: transform .8s var(--ease), filter .5s;
}
.case-proto--mobile .case-proto__poster { object-fit: contain; padding: 28px 0; }
.case-proto__load:hover .case-proto__poster { transform: scale(1.03); filter: brightness(.55); }
.case-proto__cta {
  position: relative; display: grid; justify-items: center; gap: 16px;
  padding: 26px 34px; border-radius: 24px;
  background: rgba(10, 10, 10, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .08);
}
.case-proto__play {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 32px;
  box-shadow: 0 0 0 0 rgba(255, 198, 26, .5); animation: protoPulse 2.4s infinite;
  transition: transform .3s var(--ease);
}
.case-proto__load:hover .case-proto__play { transform: scale(1.08); }
@keyframes protoPulse { 70% { box-shadow: 0 0 0 22px rgba(255, 198, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 198, 26, 0); } }

.case-next {
  display: grid; gap: 10px; padding: 48px; border-radius: 28px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, background .3s;
}
.case-next small { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.case-next span { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 5vw, 64px); line-height: 1.05; letter-spacing: -.03em; }
.case-next span iconify-icon { color: var(--accent); transition: transform .4s var(--ease); flex-shrink: 0; }
.case-next:hover { border-color: var(--accent); }
.case-next:hover span iconify-icon { transform: translateX(8px); }

/* =========================================================
   Intro (1re visite) & transitions de page
   ========================================================= */
/* Cache posé avant le 1er rendu par le script du <head> */
html.intro::before, html.pt-in::before { content: ""; position: fixed; inset: 0; z-index: 300; background: #0a0a0a; }
html.pt-in::before { background: var(--accent); }
html.intro, html.pt-in { overflow: hidden; }

/* Loader : logo seul, petit, qui se dessine puis respire */
.loader {
  position: fixed; inset: 0; z-index: 310;
  display: grid; place-items: center; background: #0a0a0a;
  transition: opacity .6s ease, clip-path .9s cubic-bezier(.77, 0, .18, 1);
  clip-path: inset(0 0 0 0);
}
.loader.is-leaving { clip-path: inset(0 0 100% 0); }
.loader__logo { position: relative; width: 74px; }
/* Halo doux qui pulse derrière le logo */
.loader__logo::before {
  content: ""; position: absolute; inset: -40%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(255, 198, 26, .35), transparent 65%);
  opacity: 0; transform: scale(.6);
  transition: opacity .8s ease, transform .8s ease;
}
.loader.is-filled .loader__logo::before { opacity: 1; transform: scale(1); animation: glow 1.6s ease-in-out .8s infinite; }
@keyframes glow { 50% { transform: scale(1.15); opacity: .6; } }
.loader__logo svg { width: 100%; height: auto; overflow: visible; display: block; }
.loader__logo path {
  fill: transparent; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: var(--len); stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 1.3s cubic-bezier(.65, 0, .35, 1), fill .5s ease, stroke-opacity .5s ease;
}
.loader.is-drawing .loader__logo { animation: spinIn 1.3s cubic-bezier(.34, 1.3, .64, 1) backwards; }
@keyframes spinIn { from { transform: rotate(-20deg) scale(.7); opacity: 0; } }
.loader.is-drawing .loader__logo path { stroke-dashoffset: 0; }
.loader.is-filled .loader__logo .cls-1 { fill: #fff; }
.loader.is-filled .loader__logo .cls-2 { fill: #0c0d0d; }
.loader.is-filled .loader__logo path { stroke-opacity: 0; }
.loader.is-filled .loader__logo svg { animation: bounce .9s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bounce { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.95) rotate(3deg); } }
.loader.is-leaving .loader__logo { transform: translateY(-30px) scale(.8); opacity: 0; transition: transform .6s cubic-bezier(.77, 0, .18, 1), opacity .4s; }

/* Transition de page : disque jaune qui s'ouvre depuis le clic, nom de la page en Konnect */
.pt {
  position: fixed; inset: 0; z-index: 290; pointer-events: none;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  clip-path: circle(0% at var(--x, 50%) var(--y, 50%));
}
.pt.is-out { pointer-events: auto; clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); transition: clip-path .75s cubic-bezier(.77, 0, .18, 1); }
.pt.is-cover { clip-path: inset(0 0 0 0); }
.pt.is-cover.is-leave { clip-path: inset(0 0 100% 0); transition: clip-path .85s cubic-bezier(.77, 0, .18, 1) .15s; }
.pt__inner { display: grid; justify-items: center; gap: 18px; }
.pt__logo { width: 84px; height: auto; transform: scale(0) rotate(-30deg); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1) .25s; }
.pt__mask { overflow: hidden; }
.pt__label {
  display: block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 7vw, 96px); line-height: 1.1; letter-spacing: .02em;
  transform: translateY(110%); transition: transform .7s cubic-bezier(.77, 0, .18, 1) .2s;
}
.pt.is-out .pt__logo, .pt.is-cover .pt__logo { transform: none; }
.pt.is-out .pt__label, .pt.is-cover .pt__label { transform: none; }
.pt.is-cover.is-leave .pt__label { transform: translateY(-110%); transition-delay: 0s; transition-duration: .5s; }
.pt.is-cover.is-leave .pt__logo { transform: scale(0) rotate(30deg); transition-delay: 0s; transition-duration: .4s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .case-method { grid-template-columns: repeat(2, 1fr); }
  .case-method li::after { display: none; }
  .case-solutions[style*="--cols:4"] { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .rstep { column-gap: 24px; }
  .rstep__card { padding: 26px; }
}

@media (max-width: 900px) {
  /* Navigation mobile : burger + menu plein écran + barre du bas */
  .nav__links, .nav__contact { display: none; }
  .nav__burger { display: block; }
  .nav__inner { height: 72px; }
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .dock {
    position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
    display: flex; gap: 2px; padding: 6px;
    width: min(420px, calc(100% - 24px)); translate: -50% 0;
    background: rgba(21, 21, 21, .82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .9);
    transition: transform .45s cubic-bezier(.77, 0, .18, 1), opacity .3s;
  }
  .dock.is-hidden { transform: translateY(140%); }
  .menu-open .dock { transform: translateY(140%); opacity: 0; }
  .dock__item {
    flex: 1; min-height: 52px;
    display: grid; justify-items: center; align-content: center; gap: 3px;
    border-radius: 16px; color: var(--muted);
    font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
    transition: background .3s, color .3s, transform .2s;
  }
  .dock__item iconify-icon { font-size: 22px; }
  .dock__item:active { transform: scale(.92); }
  .dock__item.is-active { background: var(--accent); color: var(--on-accent); }
  .toast { bottom: calc(100px + env(safe-area-inset-bottom)); }

  .hero { min-height: auto; padding: 100px 0 24px; }
  .hero__grid { grid-template-columns: 1fr; gap: 12px; }
  .hero__visual { height: 460px; }
  .hero__lead { margin: 20px 0 28px; }
  .hero__socials { margin-top: 28px; }

  /* Parcours vertical sur petit écran */
  .journey__path { display: none; }
  .journey__steps { grid-template-columns: 1fr; gap: 28px; position: relative; }
  .journey__steps::before { content: ""; position: absolute; left: 32px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
  .jstep { grid-template-columns: 66px 1fr; grid-template-rows: auto; gap: 22px; justify-items: start; text-align: left; }
  .jstep__node { grid-row: 1; grid-column: 1; }
  .jstep:nth-child(n) .jstep__text { grid-row: 1; grid-column: 2; align-self: center; padding: 0; max-width: none; transform: translateX(16px); }
  .journey.is-in .jstep:nth-child(n) .jstep__text { transform: none; }

  /* Parcours Process : colonne unique, ligne de gauche remplie au scroll */
  .road__path, .rstep__big { display: none; }
  .road__steps::before, .road__steps::after { content: ""; position: absolute; left: 36px; top: 0; width: 2px; }
  .road__steps::before { bottom: 0; background: var(--line); }
  .road__steps::after { height: calc(var(--p) * 100%); background: var(--accent); box-shadow: 0 0 10px var(--accent); }
  .rstep { grid-template-columns: 74px 1fr; height: auto; column-gap: 20px; align-items: start; padding-bottom: 28px; }
  .rstep__node { grid-column: 1; justify-self: start; }
  .rstep:nth-child(n) .rstep__card { grid-column: 2; justify-self: stretch; max-width: none; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project--wide { grid-column: auto; }
  .project--wide .project__cover { aspect-ratio: 4 / 3; flex: none; }
  .project--wide .mock--web { width: 78%; height: auto; }
  .services-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .about, .reach { grid-template-columns: 1fr; gap: 56px; }
  .case-split { grid-template-columns: 1fr; gap: 28px; }
  .case-cover { aspect-ratio: 4 / 3; border-radius: 22px; }
  .case-facts { grid-template-columns: repeat(2, 1fr); }
  .case-facts div:nth-child(3) { border-left: 0; }
  .case-facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case-problems { grid-template-columns: 1fr; }
  .case-proto { height: 70vh; border-radius: 22px; }
  .case-next { padding: 32px 24px; }
  .about__photo { max-width: 440px; }
  .values { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
  .section--tight { padding-top: 24px; }
  .section__head { margin-bottom: 32px; }
  .page-hero { padding: 120px 0 40px; }
  .page-hero__num { font-size: 120px; bottom: -20px; opacity: .6; }
  .footer { padding-top: 56px; }
  .footer__big { margin-bottom: 40px; }
  .cta { padding: 48px 32px; }
}

@media (max-width: 600px) {
  .projects, .services-grid, .services-grid--3 { grid-template-columns: 1fr; }
  .rstep { grid-template-columns: 56px 1fr; column-gap: 14px; }
  .rstep__node { width: 56px; height: 56px; font-size: 22px; }
  .road__steps::before, .road__steps::after { left: 27px; }
  .rstep__card h3 { font-size: 24px; }
  .form { padding: 24px; }
  .form__row { grid-template-columns: 1fr; }
  /* Modale en bottom sheet sur mobile */
  .sheet { place-items: end stretch; padding: 0; }
  .sheet__box { width: 100%; border-radius: 30px 30px 0 0; transform: translateY(100%); padding-bottom: 40px; }
  .sheet.is-closing .sheet__box { transform: translateY(100%); }
  .hero__role { letter-spacing: .2em; font-size: 12px; }
  .hero__visual { height: 400px; }
  .hero__word { font-size: 64px; }
  .hero__title { font-size: min(calc((100vw - 40px) / 5.9), 96px); }
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 24px 18px; }
  .stat span { font-size: 11px; letter-spacing: .1em; }
  /* Boutons pleine largeur, plus faciles à toucher */
  .hero__ctas, .case-hero__actions { display: grid; grid-template-columns: 1fr; }
  .case-hero__actions .btn { justify-content: center; }
  .case-method, .case-solutions, .case-solutions[style] { grid-template-columns: 1fr; }
  .hero__ctas .btn, .cta .btn, .brief__send { justify-content: center; width: 100%; }
  .filters { display: flex; width: 100%; }
  .filter { flex: 1; padding: 11px 8px; }
  .section__head .link-arrow { order: 2; }
  .cta { padding: 36px 24px; border-radius: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; }
  .about__photo::before { inset: 14px -10px -14px 14px; }
  .modal { padding: 0; }
  .modal__box { height: 100%; border-radius: 0; }
  .modal__actions .btn { display: none; }
}

/* Écrans tactiles : pas de survol, on montre directement ce qui était caché au survol */
@media (hover: none) {
  .project__play { opacity: 1; transform: none; }
  .project:hover, .service:hover, .method:hover { transform: none; }
  .project:active, .service:active, .btn:active, .method:active { transform: scale(.98); }
}
html { -webkit-tap-highlight-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
