/* Raisu Labs — site vitrine */
:root {
  --ink: #0E1116;
  --white: #FFFFFF;
  --terra: #C8572E;
  --terra-hover: #D6633A;
  --terra-dark: #A9441F;
  --terra-light: #E8794B;
  --terra-tint: #FBEEE7;
  --dark: #11161C;
  --muted: #5B6470;
  --muted-2: #7A838F;
  --line: #E3E6EA;
  --line-2: #ECEEF0;
  --soft: #F4F5F6;
  --green: #128C4A;
  --green-ok: #178A4C;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

html { scroll-behavior: smooth }
body { margin: 0; background: var(--white); color: var(--ink); font-family: 'Inter Tight', system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility }
body.menu-open { overflow: hidden }
* { box-sizing: border-box }
a { color: var(--terra); text-decoration: none }
a:hover { color: var(--terra-dark) }
input, select, textarea, button { font-family: inherit }
::selection { background: var(--terra); color: var(--white) }
[hidden] { display: none !important }
img { display: block }

@keyframes rUp { from { opacity: 0; transform: translateY(26px) } to { opacity: 1; transform: none } }
@keyframes rLine { from { transform: translateY(108%) } to { transform: none } }
@keyframes rFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes rZoom { from { transform: scale(1.14) } to { transform: scale(1.02) } }
@keyframes rProg { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes rProgY { from { transform: scaleY(0) } to { transform: scaleY(1) } }
@keyframes rPulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55) } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0) } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0) } }
@keyframes rDot { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }
@keyframes rMsg { from { opacity: 0; transform: translateY(10px) scale(.98) } to { opacity: 1; transform: none } }

.page { display: flex; flex-direction: column; gap: 10px; padding: 10px }

/* Visibility by breakpoint (design switches at 1080px) */
@media (max-width: 1079.98px) { .only-wide { display: none !important } }
@media (min-width: 1080px) { .only-narrow { display: none !important } }

/* Shared */
.eyebrow { font-size: 15px; font-weight: 600; color: var(--terra) }
.h2 { margin: 0; font-weight: 700; font-size: clamp(36px, 4.6vw, 68px); line-height: 1; letter-spacing: -.05em; text-wrap: balance }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); text-wrap: pretty }
.wrap { max-width: 1320px; margin: 0 auto }
.pill-btn-dark { background: var(--ink); color: var(--white); border-radius: 999px; font-weight: 600; white-space: nowrap }
.pill-btn-dark:hover { background: var(--terra); color: var(--white) }
.burger { border-radius: 999px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0 }
.burger span { height: 1.5px; display: block }
.pulse-dot { border-radius: 99px; display: block; animation: rPulse 2.2s infinite }

/* ---------- Sticky compact header ---------- */
.bar { position: fixed; top: 12px; left: 50%; z-index: 50; width: min(calc(100% - 24px), 980px); transform: translate(-50%, -140%); opacity: 0; pointer-events: none; transition: transform .6s var(--ease), opacity .4s }
.bar.is-visible { transform: translate(-50%, 0); opacity: 1; pointer-events: auto }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(255, 255, 255, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(14, 17, 22, .08); box-shadow: 0 12px 40px -16px rgba(14, 17, 22, .25) }
.bar-logo { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; font-size: 17px; letter-spacing: -.03em; white-space: nowrap }
.bar-logo:hover { color: var(--ink) }
.bar-logo img { width: 20px; height: auto }
.bar-nav { display: flex; gap: 4px; font-size: 14px; font-weight: 500 }
.bar-nav a { color: var(--ink); padding: 9px 14px; border-radius: 999px }
.bar-nav a:hover { background: #F1F2F4; color: var(--ink) }
.bar-actions { display: flex; align-items: center; gap: 6px }
.bar-cta { padding: 11px 18px; font-size: 14px }
.bar .burger { width: 42px; height: 42px; border: 1px solid rgba(14, 17, 22, .12); background: var(--white); gap: 4px }
.bar .burger span { width: 15px; background: var(--ink) }

/* ---------- Mobile menu ---------- */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--ink); color: var(--white); display: flex; flex-direction: column; padding: 24px; animation: rFade .3s both }
.menu-top { display: flex; justify-content: space-between; align-items: center }
.menu-top img { height: 26px; width: auto }
.menu-close { width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--white); font-size: 20px; cursor: pointer }
.menu-nav { margin-top: auto; display: flex; flex-direction: column; gap: 6px; font-size: 44px; font-weight: 700; letter-spacing: -.04em }
.menu-nav a { color: var(--white); animation: rUp .5s both }
.menu-nav a:hover { color: var(--white) }
.menu-nav a:nth-child(1) { animation-delay: .05s }
.menu-nav a:nth-child(2) { animation-delay: .1s }
.menu-nav a:nth-child(3) { animation-delay: .15s }
.menu-nav a:nth-child(4) { animation-delay: .2s }
.menu-nav a:nth-child(5) { animation-delay: .25s }
.menu-wa { margin-top: 36px; display: flex; justify-content: center; background: var(--terra); color: var(--white); padding: 18px; border-radius: 999px; font-weight: 600; font-size: 17px }
.menu-wa:hover { color: var(--white) }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: calc(100svh - 20px); border-radius: 28px; overflow: hidden; background: #141A21; color: var(--white); display: flex; flex-direction: column }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 78%; animation: rZoom 2.8s cubic-bezier(.2, .7, .2, 1) both }
.hero-shade-1 { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(17, 22, 29, .94) 0%, rgba(17, 22, 29, .82) 42%, rgba(17, 22, 29, .62) 100%) }
.hero-shade-2 { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 22, 29, .35) 0%, rgba(17, 22, 29, 0) 30%, rgba(17, 22, 29, 0) 70%, rgba(17, 22, 29, .55) 100%) }
.hero-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: clamp(20px, 2.4vw, 34px) clamp(20px, 4vw, 60px); animation: rFade .8s .1s both }
.hero-logo { display: flex; align-items: center; gap: 9px }
.hero-logo img:first-child { width: 30px; height: auto }
.hero-logo img:last-child { height: 24px; width: auto }
.hero-nav { display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 17px; font-weight: 500 }
.hero-nav a { color: rgba(255, 255, 255, .85); padding: 11px 22px; border-radius: 999px }
.hero-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--white) }
.hero-nav a.is-current { color: var(--white); background: rgba(255, 255, 255, .14) }
.hero-cta { background: var(--white); color: var(--ink); padding: 15px 28px; border-radius: 999px; font-weight: 500; font-size: 17px; white-space: nowrap; transition: transform .3s }
.hero-cta:hover { transform: translateY(-2px); color: var(--ink) }
.hero .burger { width: 46px; height: 46px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); gap: 5px }
.hero .burger span { width: 16px; background: var(--white) }

.hero-body { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(40px, 5vw, 72px); padding: clamp(24px, 4vw, 40px) clamp(20px, 4vw, 60px) clamp(40px, 6vw, 72px) }
@media (min-width: 1080px) { .hero-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) } }
.hero-copy { display: flex; flex-direction: column; gap: clamp(22px, 2.6vw, 34px); min-width: 0 }
.hero-status { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .88); animation: rUp .8s .25s both }
.hero-status .pulse-dot { width: 10px; height: 10px; background: #3DDC84 }
.hero-title { margin: 0; font-weight: 700; font-size: clamp(44px, 5.7vw, 88px); line-height: .98; letter-spacing: -.055em }
.hero-title > span { display: block; overflow: hidden; padding-bottom: .06em }
.hero-title > span > span { display: block; animation: rLine 1s var(--ease) both }
.hero-title > span:nth-child(1) > span { animation-delay: .35s }
.hero-title > span:nth-child(2) > span { animation-delay: .45s }
.hero-title > span:nth-child(3) > span { animation-delay: .55s }
.hero-sub { margin: 0; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.6; color: rgba(255, 255, 255, .76); max-width: 620px; text-wrap: pretty; animation: rUp .8s .7s both }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; animation: rUp .8s .82s both }
.btn-terra { background: var(--terra); color: var(--white); padding: 20px 34px; border-radius: 999px; font-weight: 600; font-size: 18px; white-space: nowrap; box-shadow: 0 14px 34px -10px rgba(200, 87, 46, .75); transition: transform .3s, box-shadow .3s, background .3s }
.btn-terra:hover { background: var(--terra-hover); color: var(--white); transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(200, 87, 46, .9) }
.btn-glass { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .24); color: var(--white); padding: 19px 34px; border-radius: 999px; font-weight: 600; font-size: 18px; white-space: nowrap; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .3s }
.btn-glass:hover { background: rgba(255, 255, 255, .14); color: var(--white) }

/* Device showcase */
.showcase { display: flex; flex-direction: column; align-items: center; gap: clamp(28px, 4vw, 56px); min-width: 0; animation: rUp 1s .6s both }
.stage { position: relative; width: calc(650px * var(--k, 1)); height: calc(430px * var(--k, 1)) }
.stage-scale { position: absolute; left: 0; top: 0; width: 650px; height: 430px; transform-origin: 0 0; transform: scale(var(--k, 1)) }
/* Scènes (une par projet) : fondu + léger glissement */
.scene { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateX(28px); transition: opacity .7s, transform .9s var(--ease); pointer-events: none }
.scene.is-before { transform: translateX(-28px) }
.scene.is-active { opacity: 1; transform: none }
/* Rendus 3D (scripts/vitrine-mockups/) : fond transparent, à l'échelle de la scène */
.scene-img { width: 650px; height: 430px; display: block; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)) }
/* Photo de mise en scène (fond opaque) : coins arrondis */
.scene-photo { border-radius: 22px; object-fit: cover }
.scene.is-active .scene-img { animation: rSceneIn 1.1s .15s var(--ease) both }
@keyframes rSceneIn { from { opacity: 0; translate: 0 22px; scale: .98 } to { opacity: 1; translate: 0 0; scale: 1 } }
.showcase-ctrl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px }
.proj-caption { font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .82); white-space: nowrap }
.dots { display: flex; align-items: center; gap: 7px }
.dots button { position: relative; height: 6px; width: 7px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .4); cursor: pointer; overflow: hidden; transition: width .5s var(--ease) }
.dots button.is-active { width: 30px; background: rgba(200, 87, 46, .35) }
.dots button span { position: absolute; inset: 0; background: var(--terra); transform-origin: 0 50%; display: none }
.dots button.is-active span { display: block; animation: rProg 7s linear both }
.no-autoplay .dots button.is-active span { animation: none }

/* ---------- Réalisations ---------- */
.realisations { padding: clamp(80px, 10vw, 140px) clamp(14px, 3.4vw, 50px) clamp(40px, 6vw, 80px); scroll-margin-top: 20px }
.sec-stack { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px) }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px }
.sec-head > div { display: flex; flex-direction: column; gap: 18px; max-width: 760px }
.realisations .lead { max-width: 400px }
.work-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 14px }
.work { display: flex; flex-direction: column; gap: 18px; color: var(--ink) }
.work:hover { color: var(--ink) }
.work-media { position: relative; aspect-ratio: 4/4.6; border-radius: 24px; overflow: hidden; background: #EEF0F2 }
.work-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s var(--ease) }
a.work:hover .work-img { transform: scale(1.04) }
a.work-media:hover .work-img { transform: scale(1.04) }
.work-store { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 8px; height: 42px; padding: 0 15px 0 11px; border-radius: 10px; background: #000; color: #fff; line-height: 1; transition: opacity .2s }
.work-store:hover { color: #fff; opacity: .85 }
.work-store svg { width: 21px; height: 21px; fill: currentColor; flex: none }
.work-meta .work-store span { display: flex; flex-direction: column; gap: 2px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: #fff }
.work-store small { font-size: 10px; font-weight: 500; letter-spacing: 0 }
.work-tags { position: absolute; left: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none }
.work-tags span { background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 999px; white-space: nowrap }
.work-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 0 6px }
.work-meta > div { display: flex; flex-direction: column; gap: 5px }
.work-meta b { font-size: 22px; font-weight: 700; letter-spacing: -.03em }
.work-meta > div span { font-size: 16px; color: var(--muted) }
.arrow-ring { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0 }
a.arrow-ring, a.arrow-ring:hover { color: var(--ink) }

/* ---------- Services ---------- */
.services { padding: clamp(60px, 8vw, 120px) clamp(14px, 3.4vw, 50px); scroll-margin-top: 20px }
.services .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 96px); align-items: start }
.services-intro { display: flex; flex-direction: column; gap: 20px }
/* Collant seulement quand l'intro a sa propre colonne : sur tablette (une colonne)
   elle restait figée en haut par-dessus les services. */
@media (min-width: 1080px) { .services-intro { position: sticky; top: 110px } }
.services-intro .lead { max-width: 440px }
.services-intro .pill-btn-dark { align-self: flex-start; margin-top: 8px; padding: 17px 28px; font-size: 16px }
.svc-list { display: flex; flex-direction: column }
.svc { border-top: 1px solid var(--line) }
.svc-row { display: grid; grid-template-columns: 56px 1fr 44px; gap: 16px; padding: 30px 14px; border-radius: 20px; transition: background .35s }
.svc-row:hover { background: var(--soft) }
.svc-n { font-size: 15px; font-weight: 600; color: #9AA2AD; padding-top: 8px; font-variant-numeric: tabular-nums }
.svc-body { display: flex; flex-direction: column; gap: 12px }
.svc-body h3 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.04em }
.svc-body p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty }
.chips { display: flex; flex-wrap: wrap; gap: 6px }
.chips span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); white-space: nowrap }
.svc-arrow { width: 44px; height: 44px; border-radius: 999px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 17px }

/* ---------- Studio ---------- */
.studio { border-radius: 28px; background: var(--dark); color: var(--white); padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 60px); scroll-margin-top: 10px; overflow: hidden; overflow: clip; position: relative }
.studio-glow { position: absolute; right: -10%; top: -20%; width: 60%; height: 70%; background: radial-gradient(closest-side, rgba(200, 87, 46, .22), rgba(200, 87, 46, 0)); pointer-events: none }
.studio .wrap { position: relative }
.studio .eyebrow { color: var(--terra-light) }
.studio .sec-head > div { max-width: 820px }
.studio .lead { color: rgba(255, 255, 255, .68); max-width: 420px }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start }
@media (min-width: 1080px) { .studio-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 8fr) } }
.tabs { display: flex; flex-direction: column; gap: 8px }
.tab { position: relative; text-align: left; border: 1px solid rgba(255, 255, 255, 0); background: transparent; color: var(--white); border-radius: 20px; padding: 20px 22px 22px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; overflow: hidden; transition: background .4s, border-color .4s }
.tab.is-active { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14) }
.tab-title { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; letter-spacing: -.02em; opacity: .6; transition: opacity .4s }
.tab.is-active .tab-title { opacity: 1 }
.tab-title span { font-size: 13px; color: var(--terra-light); font-variant-numeric: tabular-nums }
.tab-desc { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .7); padding-left: 33px; animation: rUp .5s both }
.tab-prog { position: absolute; left: 22px; right: 22px; bottom: 0; height: 2px; background: rgba(255, 255, 255, .1); display: block }
.tab-prog span { position: absolute; inset: 0; background: var(--terra-light); transform-origin: 0 50%; animation: rProg var(--dur, 6000ms) linear both; display: block }
.no-autoplay .tab-prog span { animation: none; transform: scaleX(1) }
.tab:not(.is-active) .tab-desc, .tab:not(.is-active) .tab-prog { display: none }

.app { background: #F6F7F8; color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); border: 1px solid rgba(255, 255, 255, .1) }
.app-chrome { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--white); border-bottom: 1px solid var(--line-2) }
.app-chrome > span:not(.app-url) { width: 10px; height: 10px; border-radius: 99px; background: #E4E6E9; display: block }
.app-url { margin: 0 auto; font-size: 12px; color: var(--muted-2); background: #F3F4F6; padding: 5px 16px; border-radius: 8px }
.app-body { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 440px }
@media (min-width: 1080px) { .app-body { grid-template-columns: 170px minmax(0, 1fr) } }
.app-side { background: var(--white); border-right: 1px solid var(--line-2); padding: 18px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted) }
.app-side-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; color: var(--ink); letter-spacing: -.03em; padding: 0 8px 14px }
.app-side-logo img { width: 15px }
.app-side > span:not(.app-side-logo) { padding: 9px 10px; border-radius: 9px; transition: background .3s }
.app-side > span.is-active { background: var(--terra-tint); color: var(--terra-dark); font-weight: 600 }
.app-main { padding: clamp(16px, 2vw, 26px); display: flex; flex-direction: column; gap: 16px; min-width: 0 }
.panel { display: flex; flex-direction: column; gap: 16px; animation: rUp .5s both }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap }
.panel-head b { font-size: 22px; letter-spacing: -.03em }
.panel-head span, .muted-13 { font-size: 13px; color: var(--muted-2) }
.card { background: var(--white); border: 1px solid var(--line-2); border-radius: 14px }
.kpis { display: grid; gap: 10px }
.kpis-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) }
.kpis-4 { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) }
.kpi { padding: 16px; display: flex; flex-direction: column; gap: 6px }
.kpi > span:first-child { font-size: 13px; color: var(--muted-2) }
.kpi b { font-size: 21px; letter-spacing: -.03em }
.kpi b small { font-size: 12px; color: var(--muted-2) }
.kpi > span:last-child:not(:first-child) { font-size: 12px; color: var(--muted-2) }
.kpi .up { font-weight: 600; color: var(--green-ok) !important }
.kpi.dark { background: var(--ink); color: var(--white); border: 0 }
.kpi.dark > span:first-child { color: #A6AEB9 }
.kpi.dark > span.accent { color: var(--terra-light) }
.kpis-4 .kpi { padding: 14px; gap: 5px }
.kpis-4 .kpi > span:first-child { font-size: 12px }
.kpis-4 .kpi b { font-size: 18px; letter-spacing: 0 }
.proj-list { padding: 6px 16px }
.proj-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #F0F1F3; font-size: 14px; flex-wrap: wrap }
.proj-row:last-child { border-bottom: 0 }
.proj-row > span:first-child { display: flex; flex-direction: column; gap: 3px }
.proj-row > span:first-child span { color: var(--muted-2); font-size: 12px }
.proj-row > span:last-child { display: flex; align-items: center; gap: 10px }
.proj-row > span:last-child b { font-size: 13px }
.meter { width: 90px; height: 6px; border-radius: 99px; background: #EEF0F2; display: flex; overflow: hidden }
.meter span { display: block }
.asuna-note { display: flex; gap: 12px; align-items: flex-start; background: var(--terra-tint); border-radius: 14px; padding: 14px 16px; font-size: 14px; line-height: 1.5 }
.asuna-note img { width: 16px; margin-top: 3px }

.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap }
.inv-head > div { display: flex; flex-direction: column; gap: 4px }
.inv-head b { font-size: 24px; letter-spacing: -.03em }
.badge-terra { background: var(--terra-tint); color: var(--terra-dark); font-size: 13px; font-weight: 700; padding: 8px 13px; border-radius: 999px; white-space: nowrap }
.inv-lines { padding: 6px 18px; font-size: 14px }
.inv-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid #F0F1F3 }
.inv-lines > div:last-child { border-bottom: 0; font-weight: 700 }
.inv-lines > div span:last-child { font-variant-numeric: tabular-nums }
.pay { display: flex; flex-direction: column; gap: 8px }
.pay-bar { height: 8px; border-radius: 99px; background: #EEF0F2; display: flex; overflow: hidden }
.pay-bar span { width: 50%; background: var(--green-ok); display: block; transform-origin: 0 50%; animation: rProg 1.2s .2s var(--ease) both }
.pay-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); gap: 10px; flex-wrap: wrap }
.inv-actions { display: flex; flex-wrap: wrap; gap: 8px }
.inv-actions span { background: var(--white); border: 1px solid var(--line); font-size: 14px; font-weight: 600; padding: 11px 18px; border-radius: 999px; white-space: nowrap }
.inv-actions span.primary { background: var(--green-ok); border: 0; color: var(--white); padding: 12px 18px }

.chart { padding: 18px; display: flex; align-items: flex-end; gap: 12px; height: 190px }
.chart > div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px }
.chart > div > div { width: 100%; background: #E7E9EC; border-radius: 6px 6px 2px 2px; transform-origin: 50% 100%; animation: rProgY .9s var(--ease) both }
.chart > div:last-child > div { background: var(--terra) }
.chart > div > span { font-size: 11px; color: var(--muted-2) }
.apps-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; font-size: 14px; flex-wrap: wrap }
.apps-row span { color: var(--muted) }

.chat { display: flex; flex-direction: column; gap: 10px; min-height: 400px; justify-content: flex-end }
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); margin-bottom: auto }
.chat-avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--terra-tint); display: flex; align-items: center; justify-content: center }
.chat-avatar img { width: 15px }
.chat-head > span:last-child { display: flex; flex-direction: column }
.chat-head b { font-size: 15px }
.chat-head small { font-size: 12px; color: var(--green-ok) }
.msg { max-width: 82%; padding: 11px 14px; font-size: 14px; line-height: 1.5; animation: rMsg .4s var(--ease) both }
.msg.asuna { align-self: flex-start; background: var(--white); border: 1px solid var(--line-2); border-radius: 16px 16px 16px 4px }
.msg.client { align-self: flex-end; background: var(--ink); color: var(--white); border-radius: 16px 16px 4px 16px }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 14px; background: var(--white); border: 1px solid var(--line-2); border-radius: 16px }
.typing.is-client { align-self: flex-end }
.typing span { width: 6px; height: 6px; border-radius: 99px; background: var(--muted-2); display: block; animation: rDot 1s infinite }
.typing span:nth-child(2) { animation-delay: .15s }
.typing span:nth-child(3) { animation-delay: .3s }
.brief { background: var(--white); border: 1.5px solid var(--terra); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; animation: rMsg .5s both }
.brief > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap }
.brief > div b { font-size: 16px }
.brief > div span { font-size: 12px; font-weight: 700; color: var(--terra-dark) }
.brief > span:last-child { font-size: 14px; line-height: 1.6 }

.how { display: flex; flex-direction: column; gap: 28px; padding-top: clamp(24px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, .1) }
.how h3 { margin: 0; font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.04em }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px }
.step { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px }
.step-n { width: 40px; height: 40px; border-radius: 999px; background: var(--terra); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px }
.step b { font-size: 19px; letter-spacing: -.02em }
.step > span:last-child { font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .66) }

/* ---------- Contact ---------- */
/* Questions fréquentes : même grille que Services, réponses en <details> natifs */
.faq { padding: clamp(80px, 10vw, 140px) clamp(14px, 3.4vw, 50px) 0; scroll-margin-top: 20px }
.faq .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 6vw, 96px); align-items: start }
.faq-intro { display: flex; flex-direction: column; gap: 20px }
.faq-intro .lead { max-width: 440px }
.faq-list { border-bottom: 1px solid var(--line) }
.faq-item { border-top: 1px solid var(--line) }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 4px; font-size: clamp(18px, 1.6vw, 21px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3 }
.faq-item summary::-webkit-details-marker { display: none }
.faq-item summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 999px; background: var(--soft); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 500; transition: transform .35s var(--ease), background .35s }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--terra-tint); color: var(--terra) }
.faq-item summary:hover::after { background: var(--line-2) }
.faq-item p { margin: 0; padding: 0 56px 26px 4px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty }
@media (min-width: 1080px) { .faq-intro { position: sticky; top: 110px } }
@media (max-width: 759.98px) {
  .faq { padding: 56px 14px 0 }
  .faq-intro .lead { margin-bottom: 4px }
  .faq-item summary { padding: 20px 2px; font-size: 17px }
  .faq-item p { padding: 0 2px 22px; font-size: 15px; line-height: 1.55 }
}

.contact { padding: clamp(80px, 10vw, 140px) clamp(14px, 3.4vw, 50px); scroll-margin-top: 20px }
.contact .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: start }
.contact-intro { display: flex; flex-direction: column; gap: 26px }
.contact-intro h2 { margin: 0; font-weight: 700; font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -.055em; text-wrap: balance }
.contact-intro .lead { max-width: 460px }
.wa-big { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--green); color: var(--white); padding: 22px 24px; border-radius: 22px; transition: transform .35s, box-shadow .35s; box-shadow: 0 18px 40px -20px rgba(18, 140, 74, .7) }
.wa-big:hover { transform: translateY(-3px); color: var(--white); box-shadow: 0 24px 50px -20px rgba(18, 140, 74, .85) }
.wa-big > span:first-child { display: flex; flex-direction: column; gap: 4px }
.wa-big b { font-size: 20px; letter-spacing: -.02em }
.wa-big > span:first-child span { font-size: 15px; color: #CBEBD8 }
.wa-big > span:last-child { width: 48px; height: 48px; border-radius: 999px; background: var(--white); color: var(--green); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0 }
.asuna-cta { margin: 12px 0 0 }
.asuna-cta button { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; font: inherit; color: var(--white); background: var(--ink); border: 0; padding: 18px 24px 18px 18px; border-radius: 22px; cursor: pointer; transition: transform .35s, background .35s }
.asuna-cta button:hover { transform: translateY(-3px); background: #1A2029 }
.asuna-cta-mark { width: 48px; height: 48px; border-radius: 14px; background: var(--terra-tint); display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.asuna-cta-mark img { width: 24px; height: auto }
.asuna-cta button > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; flex: 1 }
.asuna-cta b { font-size: 20px; letter-spacing: -.02em }
.asuna-cta button > span:nth-child(2) span { font-size: 15px; color: #AEB6C1 }
.asuna-cta button > span:last-child { width: 48px; height: 48px; border-radius: 999px; background: var(--terra); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0 }
.asuna-indispo { margin: 12px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--terra-tint); color: var(--terra-dark); font-size: 15px }
.asuna-try { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 28px; padding: 18px 20px 18px 24px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12) }
.asuna-try > span { font-size: 17px; color: inherit }
.asuna-try button { border: 0; padding: 13px 22px; font: inherit; font-size: 15px; cursor: pointer; border-radius: 999px; font-weight: 600; white-space: nowrap; background: var(--terra); color: var(--white) }
.asuna-try button:hover { background: var(--terra-hover) }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px }
.contact-card { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; color: var(--ink) }
a.contact-card:hover { background: var(--soft); color: var(--ink) }
.contact-card span { font-size: 13px; color: var(--muted-2) }
.contact-card b { font-size: 16px }

.form-box { background: var(--soft); border-radius: 28px; padding: clamp(22px, 3vw, 40px) }
.form { display: flex; flex-direction: column; gap: 18px }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600 }
.field input, .field textarea { border: 1px solid var(--line); border-radius: 14px; font-size: 16px; background: var(--white); color: var(--ink); outline: none }
.field input { height: 54px; padding: 0 16px }
.field textarea { padding: 14px 16px; resize: vertical; line-height: 1.5 }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--ink) }
.ptypes { display: flex; flex-wrap: wrap; gap: 8px }
.ptypes button { border: 1px solid var(--line); background: var(--white); color: var(--ink); padding: 11px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s }
.ptypes button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white) }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px }
.form-foot > span { font-size: 14px; color: var(--muted-2) }
.submit { border: 0; border-radius: 999px; background: var(--terra); color: var(--white); padding: 18px 30px; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(200, 87, 46, .7); transition: background .3s, transform .3s }
.submit:hover { background: var(--terra-hover); transform: translateY(-2px) }
.thanks { display: flex; flex-direction: column; gap: 16px; padding: 32px 4px; animation: rUp .5s both }
.thanks > span:first-child { width: 56px; height: 56px; border-radius: 999px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 24px }
.thanks b { font-size: 32px; letter-spacing: -.04em }
.thanks > span:nth-child(3) { font-size: 17px; line-height: 1.6; color: var(--muted) }
.thanks button { align-self: flex-start; border: 1px solid #D9DDE2; background: var(--white); border-radius: 999px; padding: 13px 20px; font-size: 15px; font-weight: 600; cursor: pointer; color: var(--ink) }
.thanks-secours > span:first-child { background: var(--terra) }
.thanks-actions { display: flex; flex-wrap: wrap; gap: 10px }
.thanks-wa { border-radius: 999px; background: var(--green); color: var(--white); padding: 13px 20px; font-size: 15px; font-weight: 600 }
.thanks-wa:hover { color: var(--white) }
.submit:disabled { opacity: .7; cursor: progress; transform: none }

/* ---------- Footer ---------- */
.footer { border-radius: 28px; background: var(--dark); color: var(--white); padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 60px) 28px; overflow: hidden }
.footer .wrap { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px) }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px }
.footer-cta { display: flex; flex-direction: column; gap: 14px; max-width: 360px }
.footer-cta > span { font-size: 22px; font-weight: 700; letter-spacing: -.03em }
.footer-cta a { align-self: flex-start; background: var(--white); color: var(--ink); padding: 15px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap }
.footer-cta a:hover { background: var(--terra); color: var(--white) }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; font-size: 15px }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px }
.footer-cols > div > span:first-child { color: #7F8995; font-size: 13px }
.footer-cols a, .footer-cols a:hover { color: var(--white) }
.footer-mark { display: flex; align-items: flex-end; gap: clamp(12px, 2vw, 28px) }
.footer-mark img:first-child { width: clamp(70px, 13vw, 190px); height: auto }
.footer-mark img:last-child { width: clamp(180px, 40vw, 560px); height: auto }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: #7F8995 }
.footer-legal > span:last-child { display: flex; gap: 20px }
.footer-legal a, .footer-legal a:hover { color: #7F8995 }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; gap: 10px; background: var(--green); color: var(--white); padding: 15px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; box-shadow: 0 16px 36px -12px rgba(10, 60, 35, .7); transform: translateY(140%); opacity: 0; pointer-events: none; transition: transform .5s var(--ease), opacity .4s }
.wa-float.is-visible { transform: none; opacity: 1; pointer-events: auto }
.wa-float:hover { color: var(--white); background: #0F7A40 }
.wa-float .pulse-dot { width: 8px; height: 8px; background: #7EF0AE }

/* ---------- Version mobile (< 760 px) ----------
   Pas une réduction du bureau : chaque section a sa propre mise en page
   téléphone (barre d'onglets en bas, hero sur un écran, carrousels à glisser,
   onglets en puces, frise verticale, tuiles de contact). */
.tab-note, .dock, .swipe-dots { display: none }
@media (max-width: 759.98px) {
  .page { padding: 8px; gap: 8px }
  .h2 { font-size: 36px; line-height: 1.02 }
  .lead { font-size: 16px }

  /* Carrousel horizontal : la carte suivante dépasse pour inviter à glisser */
  .swipe { display: flex !important; flex-direction: row !important; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 -14px; padding: 0 14px 4px; scroll-padding: 0 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch }
  .swipe::-webkit-scrollbar { display: none }
  .swipe > * { flex: 0 0 84%; scroll-snap-align: start; min-width: 0 }

  /* Hero */
  /* Hero : tient dans un écran. Titre en texte courant (plus de lignes forcées),
     un seul bouton (les réalisations sont juste dessous et dans la barre du bas),
     projets à faire défiler du doigt. */
  .hero { min-height: calc(100svh - 16px); border-radius: 22px } /* plein écran : la barre du bas flotte par-dessus */
  .hero .burger { display: none }
  .hero-top { padding: 18px 20px 4px }
  .hero-body { gap: 26px; padding: 14px 20px calc(96px + env(safe-area-inset-bottom)); align-content: center }
  .hero-copy { gap: 16px }
  .hero-status { font-size: 14px }
  .hero-status .pulse-dot { width: 8px; height: 8px }
  .hero-title { font-size: clamp(35px, 10.4vw, 44px); line-height: 1; text-wrap: balance; animation: rUp .9s .3s both }
  .hero-title > span, .hero-title > span > span { display: inline; overflow: visible; padding: 0; animation: none }
  .hero-sub { font-size: 16px; line-height: 1.5 }
  .hero-btns { flex-direction: column; margin-top: 4px }
  .hero-btns a { text-align: center; padding-top: 17px; padding-bottom: 17px; font-size: 17px }
  .hero-btns .btn-glass { display: none }
  .showcase { gap: 14px }
  .stage { touch-action: pan-y }
  .proj-caption { white-space: normal; text-align: center; font-size: 14px }

  /* Barre d'onglets du bas (remplace en-tête collant, burger et WhatsApp flottant) */
  .bar, .wa-float { display: none }
  .dock { display: flex; gap: 8px; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; transition: transform .45s var(--ease), opacity .3s; -webkit-tap-highlight-color: transparent }
  .dock-tabs { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border: 1px solid rgba(14, 17, 22, .08); box-shadow: 0 14px 40px -12px rgba(14, 17, 22, .4) }
  .dock-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0 6px; border-radius: 999px; font-size: 10.5px; font-weight: 600; line-height: 13px; color: var(--muted); transition: background .3s, color .3s }
  .dock-tabs a.is-active { background: var(--terra-tint); color: var(--terra-dark) }
  .dock svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
  .dock-tabs svg { width: 21px; height: 21px; transition: transform .3s var(--ease) }
  .dock-tabs a:active svg { transform: scale(.88) }
  .dock-wa { flex: none; width: 60px; border-radius: 999px; background: var(--green); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 14px 34px -12px rgba(10, 60, 35, .75); transition: transform .2s }
  .dock-wa:hover { color: var(--white) }
  .dock-wa:active { transform: scale(.94) }
  .dock-wa svg { width: 27px; height: 27px; stroke-width: 1.8 }
  /* Pendant la saisie, la barre s'efface pour laisser la place au clavier */
  .page:has(.form input:focus, .form textarea:focus) .dock { transform: translateY(160%); opacity: 0; pointer-events: none }

  /* Repères sous les carrousels (créés par main.js) */
  .swipe-dots { display: flex; justify-content: center; gap: 6px; order: 1; margin-top: 18px }
  .swipe-dots span { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .4s var(--ease), background .3s }
  .swipe-dots span.is-active { width: 22px; background: var(--terra) }

  /* Réalisations : carrousel */
  .realisations { padding: 64px 14px 40px }
  .sec-stack { gap: 28px }
  .sec-head { gap: 14px }
  .sec-head > div { gap: 12px }
  .work-media { aspect-ratio: 4/4.4; border-radius: 20px }
  .work-tags { left: 12px; top: 12px }
  .work-tags span { font-size: 12px; padding: 6px 10px }
  .work-meta b { font-size: 19px }
  .work-meta > div span { font-size: 14px }
  .arrow-ring { width: 38px; height: 38px; font-size: 16px }

  /* Services : cartes à glisser, bouton après les cartes */
  .services { padding: 56px 14px }
  .services .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 0 }
  .services-intro { display: contents }
  .services-intro .eyebrow { margin-bottom: 12px }
  .services-intro .lead { margin: 14px 0 26px }
  .services-intro .pill-btn-dark { order: 2; align-self: stretch; text-align: center; margin-top: 22px }
  .svc-list { order: 1 }
  .svc { border: 0; display: flex }
  .svc-row, .svc-row:hover { display: flex; flex-direction: column; gap: 18px; width: 100%; padding: 22px; border-radius: 22px; background: var(--soft) }
  .svc-n { padding: 0; width: 40px; height: 40px; border-radius: 999px; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 14px }
  .svc-body { flex: 1; gap: 10px }
  .svc-body h3 { font-size: 23px; line-height: 1.1 }
  .svc-body p { font-size: 15px; line-height: 1.55 }
  .chips { margin-top: auto; padding-top: 6px }
  .svc-arrow { display: none }

  /* Studio : onglets en puces, écran d'app à hauteur fixe, frise */
  .studio { border-radius: 22px; padding: 56px 18px 40px }
  .studio-grid { gap: 14px }
  .tabs { flex-direction: row; gap: 8px; overflow-x: auto; margin: 0 -18px; padding: 0 18px; scrollbar-width: none }
  .tabs::-webkit-scrollbar { display: none }
  .tab { flex: 0 0 auto; padding: 11px 16px 13px; border-radius: 999px; border-color: rgba(255, 255, 255, .14); gap: 0 }
  .tab-title { font-size: 15px; gap: 8px; white-space: nowrap }
  .tab-title span { font-size: 12px }
  .tab .tab-desc { display: none }
  .tab-prog { left: 16px; right: 16px; bottom: 5px; height: 2px }
  .tab-note { display: block; margin: 0; min-height: 4.65em; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .72) }
  .app { border-radius: 20px }
  .app-chrome { padding: 11px 14px }
  .app-body { min-height: 0 }
  .app-main { height: 470px; overflow: hidden; padding: 16px; position: relative }
  .app-main::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(rgba(246, 247, 248, 0), #F6F7F8); pointer-events: none }
  .panel { gap: 12px }
  .panel-head b { font-size: 18px }
  .kpis-3, .kpis-4 { grid-template-columns: 1fr 1fr; gap: 8px }
  .kpis-3 .kpi.dark { grid-column: 1 / -1 }
  .kpi { padding: 12px; gap: 4px }
  .kpi b { font-size: 18px }
  .asuna-note { display: none }
  .inv-head b { font-size: 20px }
  .inv-actions span { padding: 9px 14px; font-size: 13px }
  .inv-actions span:last-child { display: none }
  .chart { height: 150px; padding: 14px; gap: 8px }
  .chat { min-height: 0; height: 100% }
  .msg { max-width: 88%; font-size: 13.5px }
  .asuna-try { flex-direction: column; align-items: stretch; text-align: center; margin-top: 16px; padding: 18px }
  .asuna-try > span { font-size: 16px }
  .asuna-try button { padding: 15px 22px }
  .how { gap: 18px; padding-top: 32px; margin-top: 8px }
  .how h3 { font-size: 26px }
  .steps { display: flex; flex-direction: column; gap: 0 }
  .step { position: relative; display: grid; grid-template-columns: 36px 1fr; column-gap: 16px; row-gap: 4px; background: none; border: 0; border-radius: 0; padding: 0 0 22px }
  .step:last-child { padding-bottom: 0 }
  .step::before { content: ''; position: absolute; left: 17.5px; top: 40px; bottom: 4px; width: 1px; background: rgba(255, 255, 255, .16) }
  .step:last-child::before { display: none }
  .step-n { grid-row: 1 / 3; width: 36px; height: 36px; font-size: 14px }
  .step b { font-size: 17px; padding-top: 7px }
  .step > span:last-child { font-size: 14px; line-height: 1.55 }

  /* Contact : les deux canaux directs d'abord, formulaire compact */
  .contact { padding: 56px 14px 48px }
  .contact .wrap { gap: 28px }
  .contact-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 10px }
  .contact-intro > * { grid-column: 1 / -1; min-width: 0 }
  .contact-intro h2 { font-size: 40px }
  /* WhatsApp et Asuna : deux tuiles côte à côte, pastille en haut, texte en bas */
  .contact-intro > .wa-big, .contact-intro > .asuna-cta { grid-column: auto }
  .wa-big, .asuna-cta button { flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 22px; padding: 16px; border-radius: 22px; min-height: 178px }
  .wa-big > span:last-child { order: -1 }
  .wa-big b, .asuna-cta b { font-size: 18px; line-height: 1.1 }
  .wa-big > span:first-child span, .asuna-cta button > span:nth-child(2) span { font-size: 13px; line-height: 1.4 }
  .wa-big > span:last-child, .asuna-cta-mark { width: 42px; height: 42px; font-size: 18px }
  .asuna-cta { margin: 0; display: flex }
  .asuna-cta button { height: 100% }
  .asuna-cta button > span:nth-child(2) { flex: none }
  .asuna-cta button > span:last-child { display: none }
  .asuna-cta-mark { border-radius: 13px }
  .asuna-indispo { margin: 0 }
  .contact-cards { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 18px }
  .contact-card { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; border: 0; border-radius: 0; padding: 15px 18px; min-width: 0 }
  .contact-card + .contact-card { border-top: 1px solid var(--line) }
  .contact-card b { font-size: 15px; overflow-wrap: anywhere; text-align: right }
  .form-box { border-radius: 22px; padding: 22px 16px }
  .form { gap: 16px }
  .field input { height: 50px }
  .ptypes { gap: 6px }
  .ptypes button { padding: 10px 14px; font-size: 13.5px }
  .form-foot { flex-direction: column-reverse; align-items: stretch; text-align: center }
  .submit { width: 100% }
  .thanks b { font-size: 26px }

  /* Footer */
  /* Le pied descend sous la barre flottante : pas de bande blanche à son niveau */
  .footer { border-radius: 22px; padding: 36px 20px calc(96px + env(safe-area-inset-bottom)) }
  /* « Un projet en tête ? » doublerait la section Contact juste au-dessus */
  .footer-cta { display: none }
  /* La navigation est dans la barre du bas : le pied ne garde que le contact */
  .footer-cols { font-size: 15px }
  .footer-cols > div:first-child { display: none }
  .footer-legal { flex-direction: column; gap: 10px }
}

/* Scroll reveal (only applied by JS to elements below the fold) */
.rv-hidden { opacity: 0; transform: translateY(36px) }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important }
}
