/* ==========================================================================
   BYDEVOS — Feuille de style principale
   Palette harmonisée autour du logo (violet prune + turquoise) sur bleu nuit
   ========================================================================== */
:root {
  --ink: #071A2F;        /* fond principal, bleu nuit profond */
  --ink-2: #0B2A4A;      /* surfaces sombres */
  --blue: #1B6FA0;       /* bleu océan */
  --teal: #1BA5A8;       /* turquoise (logo) */
  --teal-soft: #8FE0E0;
  --plum: #4D135A;       /* prune (logo) */
  --purple: #6B2280;     /* violet accent */
  --lilac: #C9A3D6;      /* violet clair pour texte sur fond sombre */
  --cloud: #F3F0F4;      /* fond clair */
  --cloud-2: #E6E1EA;
  --peach: #E7A977;      /* touche chaude, utilisée avec parcimonie */
  --text: #DDE6F0;
  --muted: #94A7BC;
  --text-dark: #13263D;
  --muted-dark: #5B6B7E;

  --grad: linear-gradient(110deg, var(--purple) 0%, var(--blue) 55%, var(--teal) 100%);
  --grad-text: linear-gradient(100deg, #B26BD0 0%, #4FB3E0 50%, #3FD3CF 100%);
  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 30px 60px -20px rgba(3, 12, 25, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1220px;
  --font-title: 'Sora', 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 1.0625rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; color: #fff; }
p { margin: 0 0 1.1em; }
::selection { background: var(--teal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.skip-link { position: absolute; left: -999px; top: 10px; z-index: 999; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 10px; }

/* ---------- Typo utilitaires ---------- */
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: gradShift 6s ease-in-out infinite alternate; }
@keyframes gradShift { to { background-position: 100% 0; } }
.kicker { display: inline-flex; align-items: center; gap: .6em; font: 600 .8rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--teal-soft); margin-bottom: 1.1rem; }
.kicker::before { content: ''; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.title { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 700; }
.section { position: relative; padding: clamp(5rem, 11vw, 9rem) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section__intro { color: var(--muted); font-size: 1.125rem; }
.glass { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-radius: var(--radius); }

/* ---------- Boutons ---------- */
.btn { --bx: 0px; --by: 0px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: 1em 1.7em; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; transform: translate(var(--bx), var(--by)); isolation: isolate; overflow: hidden; white-space: nowrap; }
.btn .icon { transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--grad { background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 12px 30px -10px rgba(27,165,168,.6); }
.btn--grad::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease); z-index: -1; }
.btn--grad:hover { box-shadow: 0 18px 40px -10px rgba(107,34,128,.7); background-position: 100% 0; }
.btn--grad:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid rgba(255,255,255,.22); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); border-color: var(--teal); }
.btn--sm { padding: .75em 1.3em; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Préchargeur ---------- */
.preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; align-content: center; gap: 1rem; background: var(--ink); transition: clip-path 1s var(--ease) .1s; clip-path: inset(0 0 0 0); }
.preloader.is-done { clip-path: inset(0 0 100% 0); }
.preloader__waves { width: 220px; }
.preloader__waves path { fill: none; stroke-width: 1.4; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.6s var(--ease) forwards; animation-delay: calc(var(--i) * .08s); }
.preloader__waves path:nth-child(odd) { stroke: var(--purple); }
.preloader__waves path:nth-child(even) { stroke: var(--teal); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.preloader__count { font: 700 1rem var(--font-title); color: var(--muted); letter-spacing: .1em; }

/* ---------- Curseur personnalisé ---------- */
.cursor { position: fixed; inset: 0; pointer-events: none; z-index: 999; mix-blend-mode: normal; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); will-change: transform; }
.cursor__dot { width: 6px; height: 6px; background: var(--teal); }
.cursor__ring { width: 38px; height: 38px; border: 1px solid rgba(143,224,224,.6); display: grid; place-items: center; transition: width .35s var(--ease), height .35s var(--ease), background .35s, border-color .35s; }
.cursor__ring span { font-size: .75rem; font-weight: 600; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-hover .cursor__ring { width: 60px; height: 60px; background: rgba(27,165,168,.12); border-color: var(--teal); }
.cursor.is-view .cursor__ring { width: 86px; height: 86px; background: var(--grad); border-color: transparent; }
.cursor.is-view .cursor__ring span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); z-index: 200; }

/* ---------- En-tête ---------- */
.header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .4s, padding .4s, transform .5s var(--ease), border-color .4s; padding: 1.1rem 0; border-bottom: 1px solid transparent; }
.header.is-scrolled { background: rgba(7,26,47,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: .55rem 0; border-color: rgba(255,255,255,.06); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo img { height: 64px; width: auto; transition: height .4s; }
.header.is-scrolled .header__logo img { height: 50px; }
.nav { display: flex; align-items: center; gap: 2rem; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn) { position: relative; color: var(--text); padding: .3em 0; transition: color .3s; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:not(.btn):hover, .nav a.is-active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); position: relative; z-index: 110; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: #fff; border-radius: 2px; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 8rem 0 6rem; overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); z-index: -2; opacity: .55; animation: floatGlow 14s ease-in-out infinite alternate; }
.hero__glow--1 { width: 46vw; height: 46vw; background: var(--plum); top: -12vw; left: -10vw; }
.hero__glow--2 { width: 38vw; height: 38vw; background: #0f5a74; bottom: -14vw; right: -8vw; animation-delay: -6s; }
@keyframes floatGlow { to { transform: translate(6vw, 4vw) scale(1.1); } }
.hero__inner { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: .7em; padding: .55em 1.1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); font-size: .85rem; color: var(--text); margin-bottom: 1.8rem; backdrop-filter: blur(8px); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(27,165,168,.7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(27,165,168,0); } 100% { box-shadow: 0 0 0 0 rgba(27,165,168,0); } }
.hero__title { font-size: clamp(2.7rem, 7.4vw, 6.4rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; max-width: 15ch; margin-bottom: 1.6rem; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .split { display: inline-block; transform: translateY(110%); transition: transform 1.2s var(--ease); }
.hero__title .line:nth-child(2) .split { transition-delay: .12s; }
body.is-ready .hero__title .split { transform: none; }
.rotator { font-style: normal; display: inline-block; min-width: 4ch; color: #4FB3E0; white-space: nowrap; }
.rotator .ch { display: inline-block; animation: charIn .5s var(--ease) both; }
@keyframes charIn { from { opacity: 0; transform: translateY(.5em) rotate(8deg); filter: blur(4px); } }
.hero__lead { max-width: 560px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.2rem 0 2.6rem; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.6rem; color: var(--muted); font-size: .92rem; }
.hero__badges li { display: inline-flex; align-items: center; gap: .5em; }
.hero__badges .icon { color: var(--teal); }
.hero__floating { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.float-card { position: absolute; background: rgba(11,42,74,.55); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow); animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -14px; } }
.float-card--code { right: 6vw; top: 26%; padding: 1rem 1.3rem 1.1rem; }
.float-card--code pre { margin: .6rem 0 0; font: 500 .85rem/1.6 'JetBrains Mono', ui-monospace, Menlo, monospace; color: var(--text); }
.float-card--code b { color: var(--lilac); font-weight: 500; } .float-card--code i { color: var(--teal-soft); font-style: normal; } .float-card--code s { color: var(--muted); text-decoration: none; }
.dots { display: flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: #E86A6A; } .dots i:nth-child(2) { background: #F2C14E; } .dots i:nth-child(3) { background: #5CC58A; }
.float-card--stat { right: 22vw; bottom: 15%; padding: 1rem 1.2rem; width: 190px; animation-delay: -2s; }
.float-card--stat strong { display: block; font: 700 1.6rem var(--font-title); color: #fff; }
.float-card--stat span { font-size: .8rem; color: var(--muted); }
.float-card--stat svg path { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 2.5s var(--ease) 1.6s forwards; }
.float-card--chip { right: 8vw; bottom: 30%; padding: .7rem 1.1rem; display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: #fff; animation-delay: -4s; }
.float-card--chip .icon { color: var(--lilac); }
.hero__scroll { position: absolute; left: 50%; bottom: 2rem; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.3); border-radius: 20px; transform: translateX(-50%); z-index: 3; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--teal); animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid rgba(255,255,255,.07); background: rgba(11,42,74,.45); padding: 1.4rem 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { font: 700 clamp(1.2rem, 2.2vw, 1.8rem) var(--font-title); color: transparent; -webkit-text-stroke: 1px rgba(221,230,240,.45); padding: 0 1.6rem; display: flex; align-items: center; gap: 3.2rem; transition: color .3s; white-space: nowrap; }
.marquee li::after { content: '✦'; -webkit-text-stroke: 0; color: var(--teal); font-size: .7em; }
.marquee li:hover { color: #fff; -webkit-text-stroke-color: transparent; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- À propos (section claire) ---------- */
.about { background: var(--cloud); color: var(--text-dark); overflow: hidden; }
.about h2 { color: var(--text-dark); }
.about .kicker { color: var(--purple); }
.about .grad-text { background: linear-gradient(100deg, var(--purple), var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; }
.about__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.about__visual { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.orb { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(from 0deg, var(--purple), var(--blue), var(--teal), var(--purple)); filter: blur(2px); animation: spin 18s linear infinite; opacity: .95; }
.orb::after { content: ''; position: absolute; inset: 14%; border-radius: 50%; background: var(--cloud); }
@keyframes spin { to { transform: rotate(360deg); } }
.about__card { position: relative; z-index: 2; padding: 2rem 2.2rem; background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9); border-radius: var(--radius); box-shadow: 0 30px 60px -25px rgba(11,42,74,.35); text-align: center; }
.about__card p { margin: .6rem 0 0; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; color: var(--purple); }
.about__rings { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 40s linear infinite reverse; }
.about__rings circle { fill: none; stroke: rgba(11,42,74,.15); stroke-dasharray: 3 9; }
.about__text > p { color: var(--muted-dark); }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 2.5rem; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: center; font-weight: 500; }
.checks .icon { color: #fff; background: var(--grad); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border-top: 1px solid var(--cloud-2); padding-top: 2rem; }
.stat strong { display: block; font: 800 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--font-title); background: linear-gradient(100deg, var(--purple), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat > span { font-size: .88rem; color: var(--muted-dark); }

/* ---------- Services ---------- */
.services { background: radial-gradient(ellipse at 80% 0%, rgba(107,34,128,.25), transparent 55%), radial-gradient(ellipse at 0% 100%, rgba(27,165,168,.16), transparent 50%), var(--ink); }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.service { --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg; position: relative; padding: 2.2rem 2rem 2rem; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); overflow: hidden; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease), border-color .4s, opacity .9s var(--ease), translate .9s var(--ease); transform-style: preserve-3d; }
.service:hover { border-color: rgba(27,165,168,.45); }
.service__spot { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(27,165,168,.16), transparent 45%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.service:hover .service__spot { opacity: 1; }
.service__num { position: absolute; top: 1.4rem; right: 1.6rem; font: 700 .9rem var(--font-title); color: rgba(255,255,255,.22); }
.service__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 1.6rem; box-shadow: 0 14px 30px -12px rgba(27,165,168,.7); transition: transform .5s var(--ease); transform: translateZ(30px); }
.service__icon .icon { width: 28px; height: 28px; }
.service:hover .service__icon { transform: translateZ(30px) rotate(-8deg) scale(1.08); }
.service h3 { font-size: 1.3rem; }
.service p { color: var(--muted); font-size: .98rem; }
.tags { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { font-size: .76rem; font-weight: 500; padding: .35em .85em; border-radius: 999px; background: rgba(27,165,168,.1); color: var(--teal-soft); border: 1px solid rgba(27,165,168,.2); }

/* ---------- Showreel ---------- */
.showreel { padding: 0 0 clamp(4rem, 8vw, 6rem); background: var(--ink); }
.showreel__frame { --scale: .86; --rad: 40px; position: relative; width: 100%; height: 88vh; min-height: 420px; overflow: hidden; border-radius: var(--rad); transform: scale(var(--scale)); transform-origin: center top; will-change: transform; }
.showreel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showreel__overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; background: linear-gradient(180deg, rgba(7,26,47,.15), rgba(7,26,47,.55)); padding: 2rem; }
.showreel__overlay .title { font-size: clamp(2.4rem, 6vw, 5rem); margin-bottom: 1.6rem; }
.showreel__play { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(10px); color: #fff; position: relative; transition: transform .4s var(--ease), background .3s; }
.showreel__play::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.showreel__play .icon { width: 32px; height: 32px; margin-left: 4px; }
.showreel__play:hover { background: var(--teal); }
.showreel.is-playing .showreel__overlay { background: transparent; }
.showreel.is-playing .showreel__overlay > :not(.showreel__play) { opacity: 0; transition: opacity .6s; }
.showreel.is-playing .showreel__play { opacity: .0; }
.showreel.is-playing .showreel__frame:hover .showreel__play { opacity: 1; }

/* ---------- Méthode (claire) ---------- */
.process { background: var(--cloud); color: var(--text-dark); overflow: hidden; }
.process h2, .process h3 { color: var(--text-dark); }
.process .kicker { color: var(--purple); }
.process .grad-text { background: linear-gradient(100deg, var(--purple), var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; }
.process__list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.6rem; }
.process__line { position: absolute; top: 27px; left: 0; width: 100%; height: 4px; overflow: visible; }
.process__line line { stroke: var(--teal); stroke-width: 3; stroke-dasharray: 1000; stroke-dashoffset: var(--dash, 1000); transition: stroke-dashoffset .1s linear; }
.step { position: relative; }
.step__dot { position: relative; z-index: 2; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 700 1.1rem var(--font-title); color: #fff; background: var(--grad); box-shadow: 0 0 0 8px var(--cloud), 0 14px 30px -10px rgba(107,34,128,.6); margin-bottom: 1.4rem; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted-dark); font-size: .95rem; }

/* ---------- Portfolio ---------- */
.portfolio { background: radial-gradient(ellipse at 10% 10%, rgba(27,111,160,.18), transparent 50%), var(--ink); }
.filters { position: relative; display: flex; flex-wrap: wrap; gap: .3rem; padding: .35rem; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.filter { position: relative; z-index: 2; padding: .6em 1.15em; border-radius: 999px; font-size: .9rem; font-weight: 500; color: var(--muted); transition: color .3s; }
.filter.is-active, .filter:hover { color: #fff; }
.filters__pill { position: absolute; z-index: 1; top: 0; left: 0; height: 0; border-radius: 999px; background: var(--grad); transition: transform .5s var(--ease), width .5s var(--ease); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; grid-auto-flow: dense; }
.project { transition: opacity .5s var(--ease), transform .5s var(--ease), translate .9s var(--ease); }
.project--wide { grid-column: span 2; }
.project.is-hidden { display: none; }
.project.is-filtering { opacity: 0; transform: scale(.94); }
.project__open { position: relative; display: block; width: 100%; text-align: left; border-radius: var(--radius); overflow: hidden; background: var(--ink-2); border: 1px solid rgba(255,255,255,.07); cursor: none; }
@media (hover: none) { .project__open { cursor: pointer; } }
.project__media { aspect-ratio: 3 / 2; overflow: hidden; }
.project--wide .project__media { aspect-ratio: 16 / 8.6; }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project__open:hover .project__media img { transform: scale(1.06); }
.project__info { padding: 1.3rem 1.5rem 1.5rem; }
.project__cat { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-soft); }
.project__info h3 { font-size: 1.35rem; margin: .35rem 0 .3rem; }
.project__info p { color: var(--muted); font-size: .95rem; margin: 0; }
.project__arrow { position: absolute; top: 1rem; right: 1rem; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(7,26,47,.6); backdrop-filter: blur(8px); color: #fff; transform: rotate(-45deg) scale(.8); opacity: 0; transition: .45s var(--ease); }
.project__open:hover .project__arrow { opacity: 1; transform: rotate(-45deg) scale(1); background: var(--teal); }

/* ---------- Témoignages ---------- */
.slider { overflow: hidden; }
.slider__track { display: flex; gap: 1.4rem; transition: transform .8s var(--ease); }
.quote { flex: 0 0 min(520px, 85%); margin: 0; padding: 2.2rem; }
.quote__stars { display: flex; gap: 2px; color: var(--peach); margin-bottom: 1rem; }
.quote blockquote { margin: 0 0 1.4rem; font-size: 1.1rem; color: #fff; }
.quote figcaption strong { display: block; } .quote figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ (claire) ---------- */
.faq { background: var(--cloud); color: var(--text-dark); }
.faq h2 { color: var(--text-dark); }
.faq .kicker { color: var(--purple); }
.faq .grad-text { background: linear-gradient(100deg, var(--purple), var(--blue), var(--teal)); -webkit-background-clip: text; background-clip: text; }
.faq__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__grid > div:first-child p { color: var(--muted-dark); }
.accordion { display: grid; gap: .8rem; }
.acc { background: #fff; border-radius: 18px; border: 1px solid var(--cloud-2); transition: box-shadow .4s, border-color .4s; }
.acc[open] { box-shadow: 0 20px 40px -24px rgba(11,42,74,.35); border-color: rgba(107,34,128,.25); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; font: 600 1.05rem var(--font-title); color: var(--text-dark); }
.acc summary::-webkit-details-marker { display: none; }
.acc__icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cloud); color: var(--purple); transition: transform .4s var(--ease), background .3s, color .3s; }
.acc[open] .acc__icon { transform: rotate(135deg); background: var(--grad); color: #fff; }
.acc__body { padding: 0 1.5rem 1.3rem; color: var(--muted-dark); overflow: hidden; }
.acc__body p { margin: 0; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact__bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 15% 30%, rgba(107,34,128,.45), transparent 45%), radial-gradient(circle at 85% 70%, rgba(27,165,168,.28), transparent 45%), var(--ink); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__intro > p { color: var(--muted); }
.contact__infos { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact__infos li { display: flex; align-items: center; gap: 1rem; }
.contact__infos span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: var(--teal); }
.contact__infos a:hover { color: var(--teal-soft); }
.form { padding: clamp(1.5rem, 3vw, 2.5rem); display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { position: relative; }
.field input, .field textarea, .field select { width: 100%; padding: 1.45rem 1rem .55rem; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.14); background: rgba(7,26,47,.55); color: #fff; font: inherit; font-size: 1rem; transition: border-color .3s, box-shadow .3s; resize: vertical; appearance: none; }
.field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: var(--ink-2); }
.field label { position: absolute; left: 1rem; top: 1rem; color: var(--muted); pointer-events: none; transition: .25s var(--ease); font-size: 1rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(27,165,168,.15); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { top: .45rem; font-size: .75rem; letter-spacing: .04em; color: var(--teal-soft); }
.field small, .consent-error { display: block; color: #FF8FA3; font-size: .8rem; min-height: 0; }
.field.has-error input, .field.has-error textarea { border-color: #FF8FA3; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { font-size: .85rem; color: var(--muted); margin-bottom: .6rem; padding: 0; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .5em 1em; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); font-size: .85rem; cursor: pointer; transition: .3s var(--ease); }
.chip span:hover { border-color: var(--teal); }
.chip input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.consent input { accent-color: var(--teal); width: 18px; height: 18px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form__status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form__status.ok { color: var(--teal-soft); } .form__status.err { color: #FF8FA3; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading .btn__label::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: .6em; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }

/* ---------- Pied de page ---------- */
.footer { background: #051425; padding: 5rem 0 2rem; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.footer__big { font: 800 clamp(4rem, 17vw, 15rem)/.8 var(--font-title); letter-spacing: -.05em; text-align: center; background: linear-gradient(180deg, rgba(255,255,255,.12), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 3rem; user-select: none; }
.footer__grid { display: grid; grid-template-columns: 1.2fr .7fr 1.4fr 1.3fr; gap: 2.5rem; }
.footer__grid img { height: 64px; width: auto; margin-bottom: 1rem; }
.footer__grid p { color: var(--muted); font-size: .95rem; }
.footer h4 { font-size: 1rem; margin-bottom: 1.1rem; }
.footer nav, .footer__grid > div:nth-child(3) { display: flex; flex-direction: column; gap: .6rem; }
.footer__grid a { color: var(--muted); font-size: .95rem; transition: color .3s; width: fit-content; }
.footer__grid a:hover { color: #fff; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); transition: .35s var(--ease); }
.socials a:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); color: #fff; }
.newsletter__field { display: flex; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); padding: .3rem; background: rgba(255,255,255,.04); }
.newsletter__field:focus-within { border-color: var(--teal); }
.newsletter__field input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; padding: 0 1rem; font: inherit; font-size: .95rem; }
.newsletter__field input:focus { outline: none; }
.newsletter__field button { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.newsletter__status { font-size: .85rem; margin-top: .6rem; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.06); margin-top: 3rem; padding-top: 1.6rem; font-size: .85rem; color: var(--muted); }
.footer__bottom p { margin: 0; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Retour en haut ---------- */
.to-top { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow); opacity: 0; transform: translateY(20px); transition: .45s var(--ease); pointer-events: none; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 1.2rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(3,12,25,.75); backdrop-filter: blur(8px); animation: fade .4s both; }
.modal__panel { position: relative; width: min(980px, 100%); max-height: 92vh; overflow: auto; border-radius: 28px; background: var(--ink-2); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 40px 80px rgba(0,0,0,.5); animation: pop .6s var(--ease) both; display: grid; grid-template-columns: 1.15fr 1fr; }
.modal.is-closing .modal__panel { animation: pop .35s var(--ease) reverse both; }
.modal.is-closing .modal__backdrop { animation: fade .35s reverse both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.96); } }
.modal__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.modal__body { padding: 2.2rem; }
.modal__body h3 { font-size: 2rem; }
.modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(7,26,47,.7); color: #fff; transition: transform .4s var(--ease), background .3s; }
.modal__close:hover { transform: rotate(90deg); background: var(--purple); }
.modal__meta { display: grid; grid-template-columns: repeat(3, auto); gap: 1rem; margin: 0 0 1.2rem; padding: 1rem 0; border-block: 1px solid rgba(255,255,255,.08); }
.modal__meta dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.modal__meta dd { margin: .2rem 0 0; font-weight: 600; color: #fff; font-size: .95rem; }
.modal__desc { color: var(--text); }
.modal__cta { margin-top: 1.6rem; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 600; transform: translate(-50%, 150%); background: var(--ink-2); border: 1px solid rgba(27,165,168,.4); color: #fff; padding: .9rem 1.4rem; border-radius: 14px; box-shadow: var(--shadow); transition: transform .5s var(--ease); max-width: 92vw; }
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- Apparitions au scroll ---------- */
.reveal { opacity: 0; translate: 0 40px; transition: opacity .9s var(--ease), translate .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; translate: 0 0; }
.service.reveal, .project.reveal { transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s), transform .5s var(--ease), border-color .4s; }

/* ---------- Éléments réservés au mobile (masqués sur desktop) ---------- */
.nav__num, .nav__extra, .swipe-ui, .process__vline, .mbar, .modal__handle { display: none; }

/* ---------- Apparition des visuels du portfolio (volet) ---------- */
.project.reveal .project__media { clip-path: inset(0 0 100% 0 round var(--radius) var(--radius) 0 0); transition: clip-path 1.1s var(--ease) calc(var(--d, 0s) + .15s); }
.project.reveal.is-in .project__media { clip-path: inset(0 0 0 0 round 0); }

/* ---------- Toast & confort tactile ---------- */
.toast:not(.is-visible) { visibility: hidden; }
html { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:active, .chip span:active, .filter:active, .socials a:active, .acc summary:active, .project__open:active { transform: scale(.96); transition-duration: .15s; }
  .project__open:active .project__media img { transform: scale(1.04); }
  .service:active { border-color: rgba(27,165,168,.45); }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* ---------- Tablette (≤ 1080px) ---------- */
@media (max-width: 1080px) {
  .services__grid, .projects { grid-template-columns: repeat(2, 1fr); }
  .float-card--stat { right: 4vw; } .float-card--code { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
}

/* ---------- Tablette portrait & mobile (≤ 860px) ---------- */
@media (max-width: 860px) {
  body { font-size: 1rem; }
  .section { padding: clamp(4.5rem, 14vw, 6rem) 0; }
  .section__head { margin-bottom: 2.2rem; }

  /* En-tête + menu plein écran */
  .header { padding: .8rem 0; padding-top: max(.8rem, env(safe-area-inset-top)); }
  .header__logo img { height: 50px; }
  .header.is-scrolled .header__logo img { height: 42px; }
  .burger { display: block; }
  .nav { position: fixed; inset: 0; height: 100dvh; flex-direction: column; align-items: stretch; justify-content: center; gap: 0; padding: 6rem 1.6rem max(2rem, env(safe-area-inset-bottom)); background: radial-gradient(circle at 90% 10%, rgba(107,34,128,.45), transparent 50%), radial-gradient(circle at 10% 90%, rgba(27,165,168,.25), transparent 50%), #071A2F; clip-path: circle(0 at calc(100% - 44px) 40px); transition: clip-path .7s var(--ease); visibility: hidden; overflow-y: auto; }
  .nav.is-open { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; }
  .nav > a:not(.btn) { display: flex; align-items: baseline; gap: 1rem; font: 700 clamp(1.7rem, 8vw, 2.3rem)/1 var(--font-title); color: #fff; padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav > a:not(.btn)::after { display: none; }
  .nav > a.is-active { color: var(--teal-soft); }
  .nav__num { display: inline; font: 600 .8rem var(--font-body); color: var(--teal); letter-spacing: .1em; }
  .nav > .btn { margin-top: 1.8rem; padding: 1.1em 1.6em; font-size: 1.05rem; }
  .nav__extra { display: grid; gap: 1rem; margin-top: 1.8rem; color: var(--muted); font-size: .95rem; }
  .nav__extra > a { display: inline-flex; align-items: center; gap: .6rem; }
  .nav > * { opacity: 0; translate: 0 24px; transition: opacity .5s var(--ease), translate .5s var(--ease); }
  .nav.is-open > * { opacity: 1; translate: 0 0; transition-delay: calc(.18s + var(--n, 0) * .06s); }

  /* Hero */
  .hero { min-height: 100svh; padding: 7.5rem 0 4rem; align-items: flex-end; }
  .hero__glow { filter: blur(70px); }
  .hero__glow--1 { width: 90vw; height: 90vw; top: -30vw; left: -35vw; }
  .hero__glow--2 { width: 80vw; height: 80vw; bottom: -20vw; right: -35vw; }
  .eyebrow { font-size: .8rem; margin-bottom: 1.4rem; }
  .hero__title { font-size: clamp(2.6rem, 12.5vw, 4.6rem); max-width: none; margin-bottom: 1.3rem; }
  .rotator { display: block; }
  .hero__cta { margin: 1.8rem 0 2rem; }
  .hero__badges { gap: .5rem; font-size: .82rem; }
  .hero__badges li { padding: .45em .85em; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
  .hero__floating, .hero__scroll { display: none; }

  /* À propos */
  .about__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__grid { gap: 2.5rem; }
  .about__visual { width: min(320px, 82vw); margin-inline: auto; }
  .about__card { padding: 1.4rem 1.6rem; }
  .about__card img { width: 200px; height: auto; }
  .checks { margin: 1.2rem 0 2rem; }

  /* Méthode : timeline verticale qui se remplit au scroll */
  .process__list { grid-template-columns: 1fr; gap: 0; }
  .process__line { display: none; }
  .process__vline { display: block; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 3px; border-radius: 3px; background: var(--cloud-2); overflow: hidden; }
  .process__vline::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--purple), var(--blue), var(--teal)); transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; padding-bottom: 1.8rem; }
  .step:last-child { padding-bottom: 0; }
  .step__dot { margin: 0; background: #fff; color: var(--muted-dark); border: 2px solid var(--cloud-2); box-shadow: 0 0 0 6px var(--cloud); transition: background .5s var(--ease), color .5s, border-color .5s, transform .5s var(--ease); }
  .step.is-active .step__dot { background: var(--grad); color: #fff; border-color: transparent; transform: scale(1.06); box-shadow: 0 0 0 6px var(--cloud), 0 12px 26px -10px rgba(107,34,128,.6); }
  .step__body { padding-top: .75rem; }
  .step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
  .step p { margin: 0; }

  /* Showreel */
  .showreel { padding-bottom: 3.5rem; }
  .showreel__frame { height: auto; min-height: 0; aspect-ratio: 4 / 3; --scale: .92; }
  .showreel__overlay { align-content: end; justify-items: start; text-align: left; padding: 1.4rem; background: linear-gradient(180deg, transparent 30%, rgba(7,26,47,.85)); }
  .showreel__overlay .title { font-size: clamp(1.7rem, 7.5vw, 2.6rem); margin-bottom: 0; }
  .showreel__overlay .kicker { margin-bottom: .6rem; }
  .showreel__play { position: absolute; right: 1.2rem; bottom: 1.2rem; width: 64px; height: 64px; }
  .showreel__play .icon { width: 24px; height: 24px; }
  .showreel.is-playing .showreel__play { opacity: .9; width: 48px; height: 48px; }
  .showreel.is-playing .showreel__overlay { background: transparent; }

  /* Portfolio : filtres sur une ligne, défilables */
  .section__head--row { align-items: stretch; gap: 1.4rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; width: 100%; }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: none; min-height: 44px; padding: .6em 1.2em; scroll-snap-align: center; }

  /* FAQ */
  .acc summary { padding: 1.1rem 1.2rem; font-size: 1rem; min-height: 60px; }
  .acc__body { padding: 0 1.2rem 1.2rem; }

  /* Contact */
  .contact__grid { gap: 2.5rem; }
  .chip span { min-height: 44px; display: inline-flex; align-items: center; }
  .consent input { width: 22px; height: 22px; margin-top: 1px; }
  .consent { min-height: 44px; }

  /* Pied de page */
  .footer { padding: 4rem 0 calc(6.5rem + env(safe-area-inset-bottom)); }
  .footer__big { margin-bottom: 2rem; }
  .footer nav a, .footer__company > a { padding: .45rem 0; }

  /* Modale en « bottom sheet » */
  .modal { padding: 0; align-items: end; }
  .modal__panel { grid-template-columns: 1fr; width: 100%; max-height: 92dvh; border-radius: 26px 26px 0 0; padding-bottom: env(safe-area-inset-bottom); animation-name: sheetUp; overscroll-behavior: contain; touch-action: pan-y; }
  .modal.is-closing .modal__panel { animation: sheetUp .35s var(--ease) reverse both; }
  .modal__panel.is-dragging { transition: none; animation: none; }
  .modal__handle { display: block; position: sticky; top: 0; z-index: 4; height: 26px; margin-bottom: -26px; }
  .modal__handle::before { content: ''; position: absolute; top: 10px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: rgba(255,255,255,.35); }
  .modal__close { position: sticky; top: .8rem; right: auto; justify-self: end; margin: .8rem .8rem -3.55rem 0; }
  .modal__media img { min-height: 0; aspect-ratio: 3 / 2; }
  .modal__body { padding: 1.6rem 1.4rem 2rem; }
  .modal__body h3 { font-size: 1.7rem; }
  .modal--legal .modal__panel { width: 100%; }
  .modal--legal .modal__body { padding-top: 3.2rem; }
  .modal__cta { width: 100%; }

  /* Barre d'action mobile */
  .mbar { display: flex; gap: .6rem; position: fixed; left: .8rem; right: .8rem; bottom: calc(.8rem + env(safe-area-inset-bottom)); z-index: 95; padding: .5rem; border-radius: 999px; background: rgba(11,42,74,.82); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); transform: translateY(160%); transition: transform .6s var(--ease); }
  .mbar.is-visible { transform: none; }
  .mbar__icon { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--teal-soft); }
  .mbar__cta { flex: 1; padding: .95em 1em; font-size: .95rem; }
  .to-top { right: 1rem; bottom: calc(5.6rem + env(safe-area-inset-bottom)); width: 46px; height: 46px; }
  .toast { bottom: calc(5.8rem + env(safe-area-inset-bottom)); width: max-content; }

  /* Apparitions plus courtes sur petit écran */
  .reveal { translate: 0 28px; }
}

/* ---------- Mobile (≤ 640px) ---------- */
@media (max-width: 640px) {
  .container { width: calc(100% - 2.5rem); }
  .title { font-size: clamp(1.85rem, 8.6vw, 2.5rem); }
  .kicker { font-size: .75rem; letter-spacing: .18em; }
  .section__intro { font-size: 1rem; }
  .hero__cta .btn { flex: 1 1 100%; padding: 1.05em 1.4em; }

  /* Services : carrousel à glisser */
  .services__grid { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-inline: -1.25rem; padding: .5rem 1.25rem 1.2rem; scroll-padding-inline: 1.25rem; }
  .services__grid::-webkit-scrollbar { display: none; }
  .service { flex: 0 0 84%; scroll-snap-align: start; padding: 1.8rem 1.5rem 1.6rem; transform: scale(.94); opacity: .55; transition: transform .5s var(--ease), opacity .5s var(--ease), border-color .4s, translate .9s var(--ease); }
  .service.reveal { opacity: 0; }
  .service.reveal.is-in { opacity: .55; }
  .service.is-current, .service.reveal.is-in.is-current { transform: none; opacity: 1; border-color: rgba(27,165,168,.35); }
  .service.is-current .service__icon { animation: iconPop .7s var(--ease); }
  @keyframes iconPop { 40% { transform: translateZ(30px) scale(1.15) rotate(-8deg); } }
  .swipe-ui { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; }
  .swipe-dots { display: flex; gap: 6px; }
  .swipe-dots span { width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,.2); transition: width .4s var(--ease), background .4s; }
  .swipe-dots span.is-active { width: 26px; background: var(--grad); }
  .swipe-hint { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); animation: nudge 1.8s ease-in-out infinite; }
  .swipe-ui.is-used .swipe-hint { opacity: 0; transition: opacity .4s; }
  @keyframes nudge { 50% { transform: translateX(6px); } }

  /* Portfolio */
  .projects { grid-template-columns: 1fr; gap: 1.1rem; }
  .project--wide { grid-column: auto; }
  .project--wide .project__media { aspect-ratio: 3 / 2; }
  .project__info { padding: 1.1rem 1.2rem 1.3rem; }
  .project__info h3 { font-size: 1.25rem; }
  .project__arrow { opacity: 1; transform: rotate(-45deg) scale(.85); width: 40px; height: 40px; }

  /* Stats */
  .stats { gap: 1.4rem 1rem; padding-top: 1.6rem; }

  /* Formulaire */
  .form { padding: 1.3rem; border-radius: 20px; }
  .form__row { grid-template-columns: 1fr; }
  .contact__infos li { font-size: .95rem; word-break: break-word; }

  /* Pied de page */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.2rem; }
  .footer__grid > div:first-child, .newsletter, .footer__company { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: .4rem; text-align: center; align-items: center; }
  .modal__meta { grid-template-columns: 1fr 1fr; }
  .filters { border-radius: 999px; }
}

/* ---------- Très petits écrans (≤ 360px) ---------- */
@media (max-width: 360px) {
  .container { width: calc(100% - 2rem); }
  .services__grid { margin-inline: -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
  .service { flex-basis: 88%; }
  .hero { padding-top: 6.5rem; }
  .eyebrow { font-size: .74rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 1.7rem; }
  .mbar__cta { font-size: .88rem; }
}

/* ---------- Paysage mobile ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 6rem 0 3rem; }
  .nav { justify-content: flex-start; }
  .showreel__frame { aspect-ratio: 16 / 9; }
}

/* ---------- Accessibilité : mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; translate: none; }
  .hero__title .split { transform: none; }
}

/* Filtre actif : cartes uniformes */
.project--flat.project--wide { grid-column: auto; }
.project--flat.project--wide .project__media { aspect-ratio: 3 / 2; }

/* Infos société */
.contact__infos address { font-style: normal; line-height: 1.5; }
.company-card { margin-top: 1.6rem; padding: 1.1rem 1.3rem; display: grid; gap: .2rem; font-size: .9rem; color: var(--muted); border-left: 3px solid var(--teal); }
.company-card strong { color: #fff; font-family: var(--font-title); font-size: 1rem; }
.company-card__label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal-soft); }
.footer__company { display: flex; flex-direction: column; gap: .6rem; }
.footer__company p { margin: 0; line-height: 1.6; }
.footer__company strong { color: #fff; font-weight: 600; }
.footer__company a { display: inline-flex; align-items: center; gap: .5em; font-size: .9rem; white-space: nowrap; }
.footer__legal { font-size: .85rem; }
.link-btn { padding: 0; font-size: inherit; color: inherit; text-decoration: none; transition: color .3s; }
.link-btn:hover { color: #fff; }
.modal--legal .modal__panel { grid-template-columns: 1fr; width: min(680px, 100%); }
.legal h4 { margin-top: 1.6rem; }
.legal p { color: var(--text); font-size: .95rem; }
.legal a { color: var(--teal-soft); }
.legal__list { display: grid; gap: .1rem; margin: 0; }
.legal__list div { display: grid; grid-template-columns: 210px 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.legal__list dt { color: var(--muted); font-size: .9rem; }
.legal__list dd { margin: 0; color: #fff; font-weight: 500; }
@media (max-width: 640px) { .legal__list div { grid-template-columns: 1fr; gap: .2rem; } }

@keyframes sheetUp { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .project.reveal .project__media { clip-path: none; } .service { opacity: 1 !important; transform: none !important; } }
@media (max-width: 860px) {
  .contact__infos a, .nav__extra > a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 360px) { .eyebrow { font-size: .78rem; } }
@media (max-width: 860px) {
  .showreel__overlay > :not(.showreel__play) { max-width: calc(100% - 76px); }
}
@media (max-width: 640px) {
  .footer nav { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }
  .footer nav h4 { grid-column: 1 / -1; }
}
@media (min-width: 641px) and (max-width: 860px) {
  .hero { align-items: center; }
  .mbar { left: 50%; right: auto; width: min(560px, calc(100% - 1.6rem)); transform: translate(-50%, 160%); }
  .mbar.is-visible { transform: translate(-50%, 0); }
}
@media (max-width: 860px) { .footer nav a, .footer__company > a { min-height: 44px; display: inline-flex; align-items: center; } }
