/* Patoon.ai : feuille de style unique.
   DA tirée des maquettes de Studio Patoon : fond crème, panneaux marine arrondis,
   boutons corail en pilule, accents menthe, typographie géométrique grasse.
   Tous les blocs ont des angles légèrement arrondis. */

@font-face { font-family: "Outfit"; src: url("/assets/fonts/outfit-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --navy: #0f193c;
  --navy-2: #18244f;
  --navy-3: #222f63;
  --ink: #0a1128;
  --cream: #f3eee8;
  --cream-2: #ebe6e1;
  --paper: #fffcf9;
  /* Couleur d'action : le vert du logo, partout (boutons, puces, chiffres). */
  --accent: #00f2a4;
  --accent-2: #6ff8c9;
  --accent-soft: #d4f5e8;
  --accent-ink: #00936a; /* même vert, plus soutenu, pour du texte sur fond clair */
  --mint: #00f2a4;
  --text: rgba(15, 25, 60, .74);
  --muted: rgba(15, 25, 60, .58);
  --line: rgba(15, 25, 60, .13);
  --l-text: rgba(243, 238, 232, .8);
  --l-muted: rgba(243, 238, 232, .58);
  --l-line: rgba(243, 238, 232, .14);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --edge: 10px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--mint); color: var(--navy); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1376px; margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }
.panel { margin-inline: var(--edge); border-radius: var(--r-xl); background: var(--navy); color: var(--l-text); position: relative; overflow: hidden; }
.card { border-radius: var(--r-lg); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--navy); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Icônes au trait */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--fill { fill: currentColor; stroke: none; }
.ic--lg { width: 30px; height: 30px; stroke-width: 1.5; }

/* Typographie */
.eyebrow { font: 600 12px/1.4 var(--body); letter-spacing: .22em; text-transform: uppercase; color: var(--navy); display: flex; align-items: center; gap: 14px; }
.eyebrow--light { color: var(--cream); }
.h1, .h2 { font-family: var(--display); color: var(--navy); letter-spacing: -.035em; text-wrap: balance; }
.h1 { font-weight: 800; font-size: clamp(2.5rem, 6.6vw, 6rem); line-height: .95; }
.h2 { font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 4.1rem); line-height: 1.02; }
.h1 em, .h2 em { font-style: normal; color: var(--mint); }
.panel .h1, .panel .h2 { color: var(--cream); }
.head { margin-bottom: clamp(36px, 5vw, 72px); display: grid; gap: 22px; }

/* Boutons : pilules, flèche qui file au survol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 26px; border-radius: 999px; font: 600 15px/1 var(--body); letter-spacing: .01em; transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; white-space: nowrap; }
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translate(3px, -3px); }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: var(--navy); box-shadow: 0 10px 30px -12px rgba(0, 242, 164, .55); }
.btn--accent:hover { background: var(--accent-2); }
.btn--glass { color: var(--cream); background: rgba(243, 238, 232, .1); box-shadow: inset 0 0 0 1px rgba(243, 238, 232, .4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn--glass:hover { background: var(--cream); color: var(--navy); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--full { width: 100%; }

.round { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(243, 238, 232, .55); transition: background .25s, color .25s, box-shadow .25s, transform .2s; }
.round:hover { background: var(--cream); color: var(--navy); box-shadow: none; }
.round:active { transform: scale(.94); }
.round--sm { width: 40px; height: 40px; }
.round--sm .ic { width: 15px; height: 15px; }
.round--ink { color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(15, 25, 60, .35); }
.round--ink:hover { background: var(--navy); color: var(--cream); }
.round--accent {background: var(--accent); color: var(--navy); box-shadow: none; }
.round--accent:hover { background: var(--accent-2); color: var(--navy); }

.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 12px; border-radius: 999px; font: 600 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: rgba(255, 252, 249, .92); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--navy); }
.chip--client::before { background: var(--mint); box-shadow: none; }

/* Sélecteur de langue discret */
.lang { display: inline-flex; align-items: center; gap: 2px; font: 600 11px/1 var(--body); letter-spacing: .12em; }
.lang a { padding: 8px 6px; border-radius: 8px; opacity: .5; transition: opacity .2s; }
.lang a:hover, .lang a[aria-current] { opacity: 1; }
.lang a + a::before { content: ""; }

/* Navigation : posée sur le hero, puis pilule flottante au défilement */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: calc(var(--edge) + 10px) calc(var(--edge) + 10px) 0; pointer-events: none; }
.nav__bar { pointer-events: auto; margin-inline: auto; max-width: 1376px; height: 64px; padding: 0 10px 0 22px; display: flex; align-items: center; gap: 26px; border-radius: 999px; color: var(--cream); transition: background .35s, box-shadow .35s, max-width .5s var(--ease); }
.nav.is-scrolled .nav__bar { background: rgba(15, 25, 60, .88); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 14px 40px -18px rgba(10, 17, 40, .6); max-width: 1180px; }
.nav__logo { margin-right: auto; display: block; }
.nav__logo img { height: 28px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links > a { font: 500 14px/1 var(--body); color: var(--cream); padding: 10px 0; position: relative; }
.nav__links > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--mint); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links > a:hover::after, .nav__links > a.is-active::after { transform: scaleX(1); }
.lang--menu { display: none; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--cream); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }

/* 01 Hero : une seule vidéo en fond */
.hero { margin-top: var(--edge); min-height: calc(100vh - 2 * var(--edge)); min-height: calc(100svh - 2 * var(--edge)); display: flex; background: var(--ink); }
.hero__bg, .hero__shade { position: absolute; inset: 0; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-ready { opacity: 1; }
.hero__shade { background: linear-gradient(90deg, rgba(10, 17, 40, .82) 0%, rgba(10, 17, 40, .45) 45%, rgba(10, 17, 40, .1) 75%), linear-gradient(0deg, rgba(10, 17, 40, .78) 0%, rgba(10, 17, 40, 0) 45%), linear-gradient(180deg, rgba(10, 17, 40, .5) 0%, rgba(10, 17, 40, 0) 22%); }
.hero__pause { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(48px, 7vh, 80px); }
.hero__grid { position: relative; width: 100%; max-width: 1376px; margin-inline: auto; padding: 130px var(--gutter) clamp(48px, 7vh, 80px); display: grid; align-content: end; }
.hero__copy { container-type: inline-size; max-width: 1000px; }
.hero__eyebrow { font: 500 15px/1.4 var(--body); color: var(--cream); margin-bottom: 20px; }
/* « IMAGINATION. » mesure environ 6,7 fois la taille du texte : on la cale sur la largeur de la colonne. */
.hero__title { font: 800 clamp(2.6rem, 14.6cqi, 10.5rem)/.86 var(--display); letter-spacing: -.045em; text-transform: uppercase; color: var(--cream); margin-left: -.04em; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) .2s forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .32s; }
.hero__title i { font-style: normal; color: var(--mint); }
@keyframes rise { to { transform: none; } }
.hero__sub { max-width: 46ch; margin-top: 24px; color: var(--l-text); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.55; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
#heroPause[aria-pressed="true"] .ic { display: none; }
#heroPause[aria-pressed="true"]::before { content: ""; border-left: 11px solid currentColor; border-block: 7px solid transparent; margin-left: 3px; }

/* Promesse et piliers */
.promise { padding-block: clamp(80px, 12vw, 170px) clamp(60px, 8vw, 110px); display: grid; gap: clamp(28px, 4vw, 48px); }
.promise__text { font: 700 clamp(1.9rem, 4.6vw, 4.3rem)/1.06 var(--display); letter-spacing: -.035em; color: var(--navy); max-width: 22ch; }
.promise__text .w { color: rgba(15, 25, 60, .16); transition: color .35s; }
.promise__text .w.is-on { color: var(--navy); }
.promise__text .w--key.is-on { color: var(--mint); }
.pillars { margin-top: clamp(16px, 3vw, 40px); background: var(--navy); color: var(--l-text); border-radius: var(--r-xl); padding: clamp(26px, 3.4vw, 44px); display: grid; gap: 30px; }
.pillars__brand { display: flex; align-items: center; gap: 18px; }
.pillars__rabbit { width: 54px; height: auto; fill: var(--cream); flex: none; }
.pillars__brand p { font: 600 13px/1.5 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--cream); max-width: 14ch; }
.pillars__list { display: grid; gap: 26px; }
.pillars__list li { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 6px; align-content: start; }
.pillars__list .ic { grid-row: span 2; color: var(--mint); }
.pillars__list h3 { font: 700 1.2rem/1.2 var(--display); color: var(--cream); }
.pillars__list p { font-size: 14px; line-height: 1.5; color: var(--l-muted); }

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

/* 02 Projets : carrousel, le fond suit la création affichée */
.projects { margin-bottom: var(--edge); min-height: min(94vh, 940px); display: flex; background: var(--ink); }
.projects__bg, .projects__layer, .projects__shade { position: absolute; inset: 0; }
.projects__layer { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 1s var(--ease), transform 7s linear; }
.projects__layer.is-on { opacity: 1; transform: scale(1); }
.projects__shade { background: linear-gradient(90deg, rgba(10, 17, 40, .9) 0%, rgba(10, 17, 40, .6) 40%, rgba(10, 17, 40, .15) 72%), linear-gradient(0deg, rgba(10, 17, 40, .82) 0%, rgba(10, 17, 40, 0) 45%); }
.projects__grid { position: relative; width: 100%; max-width: 1376px; margin-inline: auto; padding: clamp(64px, 8vw, 110px) var(--gutter) 44px; display: grid; gap: 40px; align-content: space-between; }
.projects__copy { display: grid; gap: 22px; align-content: start; max-width: 660px; }
.projects__now { margin-top: clamp(10px, 4vh, 50px); display: grid; gap: 10px; justify-items: start; }
.projects__now.is-swap > * { animation: swapIn .6s var(--ease) both; }
.projects__now.is-swap > :nth-child(2) { animation-delay: .06s; }
.projects__now.is-swap > :nth-child(3) { animation-delay: .12s; }
@keyframes swapIn { from { transform: translateY(14px); } to { transform: none; } }
.projects__name { font: 800 clamp(1.9rem, 3.2vw, 3rem)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; color: var(--cream); }
.projects__name small { display: block; margin-bottom: 10px; font: 600 12px/1 var(--body); letter-spacing: .2em; color: var(--mint); }
.projects__desc { max-width: 40ch; color: var(--l-text); }
.projects__watch { margin-top: 10px; }
.projects__watch .ic { width: 14px; height: 14px; }
.projects__side { display: grid; gap: 18px; min-width: 0; align-self: end; }

.rail { overflow: hidden; margin-right: calc(-1 * var(--gutter)); padding: 6px 0 6px 2px; }
.rail__track { display: flex; gap: 14px; transition: transform .8s cubic-bezier(.65, 0, .25, 1); will-change: transform; }
.rail__track.is-instant, .rail__track.is-instant .rcard { transition: none; }
.rcard { position: relative; flex: none; width: 168px; aspect-ratio: 2 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--navy-2); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); transition: opacity .6s var(--ease), transform .6s var(--ease), box-shadow .3s; }
.rcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(10, 17, 40, 0) 45%, rgba(10, 17, 40, .85) 100%); }
.rcard__label { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; text-align: left; color: var(--cream); }
.rcard__label b { display: block; font: 800 15px/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.rcard__label span { display: block; margin-top: 4px; font: 500 11px/1.2 var(--body); color: var(--l-muted); }
.rcard:hover img { transform: scale(1.06); }
.rcard:hover { box-shadow: 0 0 0 2px var(--mint), 0 18px 40px -20px rgba(0, 0, 0, .8); }
.rcard.is-past { opacity: 0; transform: translateX(-30px) scale(.9); pointer-events: none; }

.projects__ctrl { display: flex; align-items: center; gap: 12px; }
.projects__progress { flex: 1; height: 2px; border-radius: 2px; background: rgba(243, 238, 232, .22); overflow: hidden; margin-left: 8px; }
.projects__progress i { display: block; height: 100%; width: 100%; background: var(--mint); transform-origin: left; transform: scaleX(0); }
.projects__count { display: flex; align-items: baseline; gap: 8px; color: var(--cream); }
.projects__num { display: block; font: 800 clamp(2.2rem, 3.4vw, 3.2rem)/1 var(--display); letter-spacing: -.03em; overflow: hidden; height: 1em; }
.projects__num span { display: block; }
.projects__num span.is-in { animation: countIn .5s var(--ease); }
@keyframes countIn { from { transform: translateY(100%); } to { transform: none; } }
.projects__count small { font: 500 14px/1 var(--body); color: var(--l-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 03 Our model */
.model { padding-block: clamp(80px, 11vw, 150px); }
.model__q { font: 500 clamp(1.15rem, 2vw, 1.55rem)/1.3 var(--display); color: var(--cream); }
.model__intro { display: grid; gap: 14px; max-width: 62ch; color: var(--l-text); }
.model__intro p:first-child { color: var(--cream); font: 600 clamp(1.15rem, 1.7vw, 1.4rem)/1.35 var(--display); }

.demo { display: grid; gap: 12px; }
.demo > .card { background: var(--navy-2); padding: clamp(20px, 2.4vw, 32px); }
.demo__panel { display: grid; gap: 24px; align-content: start; }
.step { display: grid; gap: 12px; }
.step__n { font: 700 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.step__n b { color: var(--accent); }
.step__n span { font: 400 13px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--l-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip-btn { min-height: 42px; padding: 7px 16px; border-radius: 999px; font: 500 13px/1.15 var(--body); color: var(--cream); background: rgba(243, 238, 232, .06); box-shadow: inset 0 0 0 1px rgba(243, 238, 232, .22); transition: background .2s, color .2s, box-shadow .2s; text-align: left; }
.chips .chip-btn:hover { box-shadow: inset 0 0 0 1px var(--mint); }
.chips .chip-btn[aria-pressed="true"] { background: var(--mint); color: var(--navy); box-shadow: none; font-weight: 600; }
.chips .chip-btn small { display: block; font-size: 11px; opacity: .7; margin-top: 2px; }
.demo__count { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--l-line); font-size: 14px; }
.demo__count b { font: 800 1.6rem/1 var(--display); color: var(--mint); }
.demo__count .ic { width: 15px; height: 15px; color: var(--l-muted); }

.demo__stage { display: grid; justify-items: center; align-content: center; gap: 18px; min-height: 520px; background: radial-gradient(110% 80% at 50% 40%, var(--navy-3), var(--navy-2) 70%) !important; }
.device { --ratio: .5625; --h: min(60vh, 540px, calc((100vw - 2 * var(--gutter) - 2 * var(--edge) - 80px) / var(--ratio))); display: grid; position: relative; transition: padding .5s var(--ease), border-radius .5s var(--ease), background .5s; }
.device__screen { height: var(--h); width: calc(var(--h) * var(--ratio)); background: #000 center / cover no-repeat; overflow: hidden; border-radius: 10px; transition: width .65s cubic-bezier(.7, 0, .2, 1), height .65s cubic-bezier(.7, 0, .2, 1), border-radius .5s; }
.device__screen video { width: 100%; height: 100%; object-fit: cover; }
.device__top, .device__bottom, .device__foot { display: none; }
.device__top u, .device__bottom u { display: block; height: 7px; border-radius: 4px; background: rgba(243, 238, 232, .22); }
.device[data-channel="social"] { padding: 9px; background: #060a1a; border-radius: 36px; box-shadow: 0 0 0 1px rgba(243, 238, 232, .25), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.device[data-channel="social"] .device__screen { border-radius: 28px; }
.device[data-channel="social"] .device__top { display: block; position: absolute; z-index: 2; top: 18px; left: 50%; width: 64px; height: 18px; margin-left: -32px; background: #060a1a; border-radius: 10px; }
.device[data-channel="social"] .device__top * { display: none; }
.device[data-channel="ads"] { background: #0b1230; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--l-line), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.device[data-channel="ads"] .device__screen { border-radius: 0; }
.device[data-channel="ads"] .device__top { display: flex; align-items: center; gap: 10px; padding: 12px; }
.device[data-channel="ads"] .device__top i { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); }
.device[data-channel="ads"] .device__top u { width: 34%; }
.device[data-channel="ads"] .device__bottom { display: flex; align-items: center; gap: 10px; padding: 12px; }
.device[data-channel="ads"] .device__bottom u { width: 22%; }
.device[data-channel="ads"] .device__bottom i { margin-left: auto; width: 84px; height: 28px; border-radius: 999px; background: var(--accent); }
.device[data-channel="shop"] { background: var(--paper); padding: 10px; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.device[data-channel="shop"] .device__bottom { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; padding: 14px 4px 4px; align-items: center; }
.device[data-channel="shop"] .device__bottom u { background: rgba(15, 25, 60, .22); height: 8px; width: 70%; }
.device[data-channel="shop"] .device__bottom u + u { width: 34%; grid-row: 2; }
.device[data-channel="shop"] .device__bottom i { grid-row: 1 / span 2; grid-column: 2; width: 96px; height: 36px; border-radius: 999px; background: var(--navy); }
.device[data-channel="dooh"] { padding: 12px 12px 26px; border-radius: 16px; background: #060a1a; box-shadow: 0 0 0 1px rgba(243, 238, 232, .25), 0 0 90px -10px rgba(0, 242, 164, .25); justify-items: center; margin-bottom: 34px; --h: min(52vh, 470px, calc((100vw - 2 * var(--gutter) - 2 * var(--edge) - 80px) / var(--ratio))); }
.device[data-channel="dooh"] .device__screen { border-radius: 6px; }
.device[data-channel="dooh"] .device__foot { display: block; position: absolute; top: 100%; left: 50%; width: 46%; height: 34px; margin-left: -23%; background: linear-gradient(#060a1a, #060a1a) center top / 22% 100% no-repeat, linear-gradient(rgba(243, 238, 232, .28), rgba(243, 238, 232, .28)) center bottom / 100% 5px no-repeat; border-radius: 0 0 4px 4px; }
.demo__caption { font: 600 12px/1.5 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--l-muted); text-align: center; min-height: 3em; }
.demo__caption b { color: var(--cream); font-weight: 600; }

.demo__cluster { display: grid; gap: 16px; align-content: start; }
.demo__clusterTitle { font: 600 12px/1.4 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--l-muted); }
.cluster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.cluster button { display: grid; gap: 6px; font: 500 11px/1.2 var(--body); color: var(--l-muted); text-align: left; }
.cluster img { width: 100%; height: auto; object-fit: cover; border-radius: 8px; opacity: .5; transition: opacity .25s, box-shadow .25s; }
.cluster button:hover img { opacity: .9; }
.cluster button[aria-pressed="true"] { color: var(--mint); }
.cluster button[aria-pressed="true"] img { opacity: 1; box-shadow: 0 0 0 2px var(--navy-2), 0 0 0 4px var(--mint); }
.demo__fine { font-size: 12px; line-height: 1.5; color: var(--l-muted); }

.benefits { display: grid; gap: 12px; margin-block: clamp(36px, 5vw, 64px); }
.benefits li { padding: 26px; border-radius: var(--r-lg); background: rgba(243, 238, 232, .05); box-shadow: inset 0 0 0 1px var(--l-line); display: grid; gap: 10px; align-content: start; }
.benefits .ic { color: var(--mint); margin-bottom: 6px; }
.benefits h3 { font: 700 clamp(1.1rem, 1.5vw, 1.3rem)/1.15 var(--display); color: var(--cream); }
.benefits p { font-size: 15px; }

/* 04 Solutions */
.solutions { padding-block: clamp(80px, 11vw, 160px) clamp(50px, 6vw, 80px); }
.sol { display: grid; gap: 14px; }
.sol__item { padding: clamp(26px, 2.6vw, 36px); border-radius: var(--r-lg); background: var(--paper); box-shadow: 0 1px 0 rgba(15, 25, 60, .05), 0 24px 50px -36px rgba(15, 25, 60, .35); display: grid; gap: 12px; align-content: start; transition: transform .45s var(--ease), background .45s var(--ease), color .45s, box-shadow .45s; }
.sol__n { font: 800 1rem/1 var(--display); color: var(--accent-ink); letter-spacing: .04em; }
.sol__n::after { content: " /"; }
.sol__item h3 { font: 800 clamp(1.5rem, 2.2vw, 1.95rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: var(--navy); margin-top: 18px; transition: color .45s; }
.sol__lead { font: 600 clamp(1.05rem, 1.4vw, 1.25rem)/1.3 var(--display); color: var(--navy); transition: color .45s; }
.sol__item p:not(.sol__n):not(.sol__lead) { font-size: 15px; }
.sol__tags { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px !important; color: var(--muted); transition: border-color .45s, color .45s; }
@media (hover: hover) {
  .sol__item:hover { transform: translateY(-6px); background: var(--navy); color: var(--l-text); box-shadow: 0 30px 60px -30px rgba(15, 25, 60, .6); }
  .sol__item:hover h3, .sol__item:hover .sol__lead { color: var(--cream); }
  .sol__item:hover .sol__tags { border-color: var(--l-line); color: var(--l-muted); }
}

/* 05 How it works */
.how { padding-block: clamp(50px, 6vw, 80px) clamp(90px, 12vw, 170px); }
.how__head { gap: 22px 60px; }
.how__head > div { display: grid; gap: 22px; }
.how__lead { max-width: 46ch; font: 500 clamp(1.05rem, 1.5vw, 1.25rem)/1.45 var(--display); color: var(--navy); align-self: end; }
.steps { display: grid; gap: 34px; }
.steps__item { display: grid; gap: 10px; align-content: start; position: relative; }
.tile { width: 76px; height: 76px; border-radius: 20px; background: var(--accent-soft); color: var(--navy); display: grid; place-items: center; margin-bottom: 10px; }
.steps__n { font: 800 clamp(1.15rem, 1.6vw, 1.35rem)/1.1 var(--display); text-transform: uppercase; letter-spacing: -.005em; color: var(--navy); }
.steps__n b { color: var(--accent-ink); font-weight: 800; margin-right: 4px; }
.steps__lead { font: 600 1.02rem/1.35 var(--display); color: var(--navy); }
.steps__item p:last-child { font-size: 15px; }
.js .steps__item { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * .22s); }
.js .steps.is-in .steps__item { opacity: 1; transform: none; }
.js .steps__item .tile { transform: scale(.6); transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--i, 0) * .22s + .2s); }
.js .steps.is-in .steps__item .tile { transform: none; }

/* 06 Contact */
.endpanel { margin-block: 0 var(--edge); }
.contact { position: relative; padding-block: clamp(80px, 11vw, 150px) clamp(60px, 8vw, 110px); overflow: hidden; }
.contact__rabbit { position: absolute; right: -3vw; bottom: -5vw; width: min(56vw, 700px); fill: rgba(0, 242, 164, .05); pointer-events: none; }
.contact__grid { position: relative; display: grid; gap: clamp(36px, 5vw, 80px); }
.contact .h1 { font-size: clamp(2.3rem, 5.2vw, 4.7rem); margin-top: 22px; }
.contact__lead { margin-top: 24px; max-width: 44ch; color: var(--l-text); font-size: clamp(1rem, 1.3vw, 1.12rem); }
.contact__direct { margin-top: 30px; display: grid; gap: 10px; justify-items: start; }
.contact__direct span { font: 600 11px/1.4 var(--body); letter-spacing: .18em; text-transform: uppercase; color: var(--l-muted); }
.contact__direct a { display: inline-flex; align-items: center; gap: 10px; font: 600 clamp(1.05rem, 1.6vw, 1.3rem)/1.2 var(--display); color: var(--cream); padding: 12px 18px; border-radius: 999px; background: rgba(243, 238, 232, .08); transition: background .25s, color .25s; }
.contact__direct a:hover { background: var(--mint); color: var(--navy); }
.form { background: var(--paper); color: var(--text); padding: clamp(24px, 3vw, 38px); display: grid; gap: 18px; align-content: start; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.field { display: grid; gap: 7px; }
.field span { font: 600 12px/1.3 var(--body); color: var(--navy); }
.field span i { font-style: normal; font-weight: 400; color: var(--muted); }
.form__row { display: grid; gap: 18px; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field input, .field textarea { width: 100%; background: var(--cream); border: 1.5px solid transparent; border-radius: var(--r-sm); padding: 13px 15px; color: var(--navy); font: 400 16px/1.4 var(--body); resize: vertical; transition: border-color .2s, background .2s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--navy); background: var(--paper); }
.field.is-bad input, .field.is-bad textarea { border-color: #e2412b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__rgpd { font-size: 12px; color: var(--muted); }
.form__status { font-size: 14px; font-weight: 500; color: var(--navy); min-height: 1.5em; }
.form__status.is-ok { color: #087a55; }
.form__status.is-err { color: #c4321d; }

/* Pied de page */
.footer { position: relative; padding-top: clamp(44px, 5vw, 70px); }
.footer::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--l-line); }
.footer__grid { display: grid; gap: 36px; }
.footer__claim { margin-top: 22px; max-width: 48ch; font-size: 15px; color: var(--l-muted); }
.footer__mail { display: inline-block; margin-top: 18px; font: 600 15px/1 var(--body); color: var(--cream); border-bottom: 1.5px solid var(--mint); padding-bottom: 4px; }
.footer__nav { display: grid; gap: 4px; align-content: start; justify-items: start; }
.footer__nav > a { font: 500 14px/1 var(--body); color: var(--cream); padding: 10px 0; }
.footer__nav > a:hover { color: var(--mint); }
.footer__nav .lang { color: var(--cream); margin-top: 10px; margin-left: -6px; }
.footer__big { font: 800 8.4vw/.8 var(--display); letter-spacing: -.045em; text-transform: uppercase; white-space: nowrap; text-align: center; color: var(--navy); -webkit-text-stroke: 2px rgba(243, 238, 232, .22); paint-order: stroke fill; margin-top: clamp(40px, 6vw, 80px); user-select: none; }
.footer__legal { font-size: 12px; color: var(--l-muted); padding-block: 20px 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__legal a:hover { color: var(--cream); }
.form__rgpd a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* Pages légales */
.legal-page .nav__bar { gap: 14px; }
.legal-page .lang--bar { display: inline-flex; color: var(--cream); }
.legal { padding-top: 130px; padding-bottom: 60px; max-width: 860px; }
.legal .h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.legal__updated { margin-top: 14px; font-size: 13px; color: var(--muted); }
.legal__body { margin-top: 36px; padding: clamp(24px, 4vw, 44px); background: var(--paper); border-radius: var(--r-lg); display: grid; gap: 14px; }
.legal__body h2 { font: 700 1.25rem/1.25 var(--display); color: var(--navy); margin-top: 18px; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { font-size: 16px; }
.legal__body ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; }
.legal__body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.legal__body code { font-size: .92em; background: var(--cream); padding: 1px 6px; border-radius: 6px; }
.legal__foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 40px; font-size: 13px; color: var(--muted); }
.legal__foot a:hover { color: var(--navy); }

/* Lecteur plein écran */
.lightbox { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 13, 32, .97); color: var(--l-text); overflow: hidden; }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(8, 13, 32, .9); }
.lightbox__stage { position: relative; min-height: 0; }
.lightbox__stage video { position: absolute; left: 16px; top: 74px; width: calc(100% - 32px); height: calc(100% - 82px); object-fit: contain; border-radius: var(--r-md); }
.lightbox__bar { display: flex; gap: 18px 40px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; padding: 16px var(--gutter) 26px; }
.lightbox__bar h3 { font: 800 clamp(1.4rem, 2.4vw, 2rem)/1.1 var(--display); color: var(--cream); margin-top: 12px; text-transform: uppercase; letter-spacing: -.01em; }
.lightbox__bar p { font-size: 14px; color: var(--l-muted); margin-top: 4px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.lightbox__close span, .lightbox__close span::after { content: ""; display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transform: rotate(45deg); }
.lightbox__close span::after { transform: rotate(90deg); }

/* Tablette et plus */
@media (min-width: 700px) {
  .pillars__list { grid-template-columns: repeat(2, 1fr); }
  .benefits { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 44px 32px; }
  .footer__grid { grid-template-columns: 1fr auto; }
  .rcard { width: 190px; }
}
@media (min-width: 980px) {
  .projects__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: end; gap: 56px; }
  .projects__copy { align-self: stretch; align-content: space-between; }
  .rcard { width: 200px; }
  .pillars { grid-template-columns: auto 1fr; align-items: center; gap: 40px; }
  .pillars__brand { padding-right: 36px; border-right: 1px solid var(--l-line); align-self: stretch; }
  .pillars__list { grid-template-columns: repeat(4, 1fr); gap: 28px; }
  .demo { grid-template-columns: minmax(280px, 330px) minmax(0, 1fr) minmax(240px, 300px); }
  .demo__stage { min-height: 680px; }
  .sol { grid-template-columns: repeat(3, 1fr); }
  .sol__item { min-height: 440px; }
  .how__head { grid-template-columns: 1fr 1fr; align-items: end; }
  .steps { grid-template-columns: repeat(4, 1fr); gap: 0 30px; }
  .steps__item:not(:last-child)::after { content: ""; position: absolute; top: 37px; left: 92px; right: -18px; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--accent-ink) 0 6px, transparent 6px 12px); opacity: 0; transition: opacity .6s; transition-delay: calc(var(--i, 0) * .22s + .5s); }
  .steps.is-in .steps__item:not(:last-child)::after { opacity: .55; }
  .contact__grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
}
@media (min-width: 1280px) {
  .rcard { width: 214px; }
}

/* Mobile : menu plein écran */
@media (max-width: 899px) {
  :root { --edge: 8px; }
  .nav { padding: calc(var(--edge) + 6px) calc(var(--edge) + 6px) 0; }
  .nav__bar { height: 56px; padding: 0 6px 0 16px; gap: 6px; }
  .nav__logo img { height: 24px; }
  .nav__cta, .lang--bar { display: none; }
  .nav__burger { display: block; z-index: 2; }
  .nav__logo { position: relative; z-index: 2; }
  .nav__links { position: fixed; inset: 0; background: var(--navy); flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 0 32px; transform: translateY(-100%); transition: transform .5s cubic-bezier(.7, 0, .2, 1); visibility: hidden; border-radius: 0 0 var(--r-xl) var(--r-xl); }
  .nav.is-open .nav__links { transform: none; visibility: visible; }
  .nav__links > a { font: 800 clamp(2.4rem, 11vw, 3.6rem)/1.05 var(--display); letter-spacing: -.03em; padding: 6px 0; }
  .nav__links > a::after { display: none; }
  .nav__links > a:hover, .nav__links > a.is-active { color: var(--mint); }
  .lang--menu { display: inline-flex; margin-top: 26px; font-size: 14px; color: var(--cream); }
  .nav.is-open .nav__burger span:first-child { top: 21px; transform: rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { top: 21px; transform: rotate(-45deg); }
  .hero__grid { padding-top: 110px; padding-bottom: 92px; }
  .hero__pause { bottom: 28px; }
  .projects { min-height: 0; }
  .projects__grid { padding-top: 64px; padding-bottom: 28px; }
  .projects__shade { background: linear-gradient(0deg, rgba(10, 17, 40, .92) 0%, rgba(10, 17, 40, .6) 55%, rgba(10, 17, 40, .45) 100%); }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__shade { background: linear-gradient(0deg, rgba(10, 17, 40, .92) 0%, rgba(10, 17, 40, .5) 55%, rgba(10, 17, 40, .3) 100%); }
  .rcard { width: 128px; }
  .rcard__label b { font-size: 13px; }
}

/* Respect des préférences de réduction des animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .steps__item, .js .steps__item .tile, .hero__title .line > span { opacity: 1 !important; transform: none !important; }
  .projects__layer { transform: none; }
  .promise__text .w { color: var(--navy); }
  .promise__text .w--key { color: var(--mint); }
}
