/* ==================================================================
   GRAFTIC — Design system
   1. Tokens & thèmes      5. Sections & composants
   2. Base & typographie   6. Formulaire
   3. Layout               7. Animations
   4. Header / Footer      8. Responsive
   ================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --brand:        #2E8BE6;
  --brand-ink:    #0F6FBF;
  --brand-2:      #5FD3F3;
  --brand-3:      #7C5CFF;

  --bg:           #070A12;
  --bg-2:         #0A0F1C;
  --bg-3:         #0E1524;
  --surface:      rgba(255,255,255,.035);
  --surface-2:    rgba(255,255,255,.06);
  --border:       rgba(255,255,255,.09);
  --border-2:     rgba(255,255,255,.16);
  --text:         #E8EEF9;
  --text-2:       #AEBBCF;
  --muted:        #7C8AA3;
  --on-brand:     #04101F;

  --shadow-sm:    0 2px 8px rgba(0,0,0,.28);
  --shadow:       0 18px 44px -18px rgba(0,0,0,.7);
  --shadow-lg:    0 40px 90px -32px rgba(0,0,0,.8);
  --glow:         0 0 0 1px rgba(46,139,230,.28), 0 18px 60px -18px rgba(46,139,230,.55);

  --r-xs: 8px; --r-sm: 12px; --r: 16px; --r-lg: 22px; --r-xl: 30px; --r-full: 999px;

  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  --mk-bg:    #0C1322;
  --mk-bg2:   #070A12;
  --mk-bar:   rgba(255,255,255,.05);
  --mk-card:  rgba(255,255,255,.045);
  --mk-side:  rgba(255,255,255,.025);
  --mk-soft:  rgba(255,255,255,.10);
  --mk-soft2: rgba(255,255,255,.20);
  --mk-stroke:rgba(255,255,255,.12);
}

[data-theme="light"] {
  --brand:      #0F6FBF;
  --brand-ink:  #0B5590;
  --brand-2:    #0EA5E9;
  --brand-3:    #6D4AFF;

  --bg:         #FFFFFF;
  --bg-2:       #F4F7FC;
  --bg-3:       #EAF1F9;
  --surface:    #FFFFFF;
  --surface-2:  #F7FAFD;
  --border:     rgba(12,25,45,.10);
  --border-2:   rgba(12,25,45,.18);
  --text:       #0B1524;
  --text-2:     #3B4B63;
  --muted:      #64748B;
  --on-brand:   #FFFFFF;

  --shadow-sm:  0 1px 3px rgba(12,25,45,.08);
  --shadow:     0 16px 40px -20px rgba(12,25,45,.28);
  --shadow-lg:  0 40px 80px -34px rgba(12,25,45,.34);
  --glow:       0 0 0 1px rgba(15,111,191,.18), 0 20px 50px -22px rgba(15,111,191,.35);

  --mk-bg:    #FFFFFF;
  --mk-bg2:   #EEF3F9;
  --mk-bar:   rgba(12,25,45,.045);
  --mk-card:  rgba(12,25,45,.035);
  --mk-side:  rgba(12,25,45,.025);
  --mk-soft:  rgba(12,25,45,.10);
  --mk-soft2: rgba(12,25,45,.22);
  --mk-stroke:rgba(12,25,45,.12);
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background:
    radial-gradient(60rem 40rem at 78% -8%, rgba(46,139,230,.16), transparent 62%),
    radial-gradient(48rem 34rem at 8% 6%, rgba(124,92,255,.12), transparent 60%),
    radial-gradient(46rem 34rem at 50% 108%, rgba(95,211,243,.09), transparent 62%);
}
[data-theme="light"] body::before {
  background:
    radial-gradient(60rem 40rem at 80% -10%, rgba(15,111,191,.10), transparent 60%),
    radial-gradient(46rem 32rem at 5% 4%, rgba(109,74,255,.07), transparent 58%);
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.5rem + 2.1vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.5vw, 3.05rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); }
h4 { font-size: 1.075rem; }
p  { text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

::selection { background: var(--brand); color: var(--on-brand); }

:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: var(--on-brand);
  padding: .8rem 1.2rem; border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip:focus { left: 0; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
      clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1400px; }
main { position: relative; z-index: 1; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-2) 12%, var(--bg-2) 88%, transparent); }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.wrap    { flex-wrap: wrap; }
.gap-sm  { gap: .5rem; } .gap { gap: 1rem; } .gap-lg { gap: 1.75rem; }
.center  { text-align: center; }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}.mt-5{margin-top:3.4rem}

/* ---------- Titres de section ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand);
  padding: .4rem .85rem .4rem .6rem;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
  border-radius: var(--r-full);
  background: color-mix(in srgb, var(--brand) 10%, transparent);
}
.kicker .ic { width: 15px; height: 15px; }
.sec-head { max-width: 62ch; }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin-top: 1.1rem; }
.sec-head p { color: var(--text-2); margin-top: 1rem; font-size: 1.06rem; }
.lead { color: var(--text-2); font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 600; font-size: .96rem;
  padding: .92rem 1.5rem; border-radius: var(--r-full);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .22s cubic-bezier(.2,.8,.3,1), box-shadow .22s, background .22s, border-color .22s, color .22s;
}
.btn .ic { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-ink));
  color: #fff; box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent), 0 26px 60px -20px color-mix(in srgb, var(--brand) 75%, transparent); }

.btn-ghost { background: var(--surface); border-color: var(--border-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }

.btn-line { background: transparent; border-color: var(--border-2); color: var(--text-2); }
.btn-line:hover { color: var(--text); border-color: var(--text-2); }

.btn-sm { padding: .62rem 1.1rem; font-size: .875rem; }
.btn-lg { padding: 1.08rem 1.9rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Cartes ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(1.4rem, 2.4vw, 2rem);
  backdrop-filter: blur(14px);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), border-color .3s, box-shadow .3s, background .3s;
  overflow: hidden;
}
.card--hover:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
[data-theme="light"] .card { box-shadow: var(--shadow-sm); }

.card-ico {
  width: 50px; height: 50px; border-radius: 15px;
  display: grid; place-items: center; flex: none;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  transition: transform .3s, background .3s;
}
.card--hover:hover .card-ico { transform: scale(1.06) rotate(-4deg); }
.card h3 { margin-top: 1.15rem; }
.card p  { color: var(--text-2); margin-top: .7rem; font-size: .975rem; }

.tick { display: flex; gap: .6rem; align-items: flex-start; color: var(--text-2); font-size: .93rem; padding: .3rem 0; }
.tick .ic { width: 17px; height: 17px; flex: none; margin-top: .28rem; color: var(--brand); stroke-width: 2.4; }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .38rem .8rem; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: .82rem; color: var(--text-2); font-weight: 500;
  transition: border-color .25s, color .25s, transform .25s;
}
.chip:hover { border-color: var(--brand); color: var(--text); transform: translateY(-2px); }

/* ---------- 4. HEADER ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -22px rgba(0,0,0,.9);
}
.hdr-in { display: flex; align-items: center; gap: 1.2rem; height: 78px; }
.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand img { height: 42px; width: auto; transition: transform .3s; }
.brand:hover img { transform: scale(1.05); }
.brand-txt { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.15rem; }
.brand-txt span { color: var(--brand); }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: .66rem;
             letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 1px; }

.nav { display: flex; align-items: center; gap: .15rem; margin-left: auto; }
.nav a {
  position: relative; padding: .55rem .85rem; border-radius: var(--r-full);
  font-size: .93rem; font-weight: 500; color: var(--text-2); transition: color .25s, background .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 50%; bottom: .28rem; translate: -50% 0;
  width: 0; height: 2px; border-radius: 2px; background: var(--brand); transition: width .3s;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { width: 18px; }

.hdr-act { display: flex; align-items: center; gap: .5rem; flex: none; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-full); background: var(--surface); border: 1px solid var(--border);
  color: var(--text-2); cursor: pointer; transition: color .25s, border-color .25s, transform .25s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); transform: translateY(-2px); }
.lang-sw { display: flex; border: 1px solid var(--border); border-radius: var(--r-full); overflow: hidden; background: var(--surface); }
.lang-sw a { padding: .42rem .68rem; font-size: .78rem; font-weight: 700; color: var(--muted); transition: background .25s, color .25s; }
.lang-sw a.is-on { background: var(--brand); color: #fff; }
.burger { display: none; }

.drawer {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px);
  padding: 1.4rem var(--gutter) 2.4rem;
  overflow-y: auto;
}
.drawer.is-open { display: block; animation: fadeIn .25s ease both; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 78px; margin-bottom: 1rem; }
.drawer nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.05rem .25rem; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.drawer nav a .ic { color: var(--brand); }

/* ---------- 5. HERO ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .48rem 1rem .48rem .55rem; border-radius: var(--r-full);
  background: var(--surface-2); border: 1px solid var(--border-2);
  font-size: .84rem; color: var(--text-2); font-weight: 500;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2.4s infinite; flex: none; }
.hero h1 { margin-top: 1.5rem; }
.hero-kick { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem);
             margin-top: .9rem; letter-spacing: -.02em; color: var(--text); }
.hero-kick::before { content: ""; display: inline-block; width: 26px; height: 2px; border-radius: 2px;
             background: var(--brand); vertical-align: middle; margin-right: .7rem; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 45%, var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { margin-top: 1.3rem; max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.hero-mini { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.6rem; padding-top: 1.8rem; border-top: 1px solid var(--border); }
.hero-mini div { min-width: 100px; }
.hero-mini b { font-family: var(--font-display); font-size: 1.95rem; font-weight: 800; display: block; letter-spacing: -.03em; }
.hero-mini b i { font-style: normal; color: var(--brand); }
.hero-mini .hm-label { display: block; font-size: .82rem; color: var(--text-2); }

.hero-vis { position: relative; }
.hero-vis .mock-wrap {
  transform: perspective(1600px) rotateY(-11deg) rotateX(5deg) translateZ(0);
  box-shadow: var(--shadow-lg); border-radius: var(--r);
  animation: floaty 9s ease-in-out infinite;
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: .7rem;
  padding: .7rem .95rem; border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--bg-3) 86%, transparent);
  border: 1px solid var(--border-2); box-shadow: var(--shadow);
  backdrop-filter: blur(14px); font-size: .82rem; font-weight: 600;
}
[data-theme="light"] .float-card { background: #fff; }
.float-card .ic { width: 18px; height: 18px; }
.float-card small { display: block; font-weight: 500; color: var(--muted); font-size: .72rem; }
.fc-1 { top: 4%; left: -8%; animation: floaty 7s ease-in-out infinite; }
.fc-2 { bottom: 16%; right: -4%; animation: floaty 8.5s ease-in-out .8s infinite; }
.fc-3 { bottom: -3%; left: 8%; animation: floaty 7.8s ease-in-out .4s infinite; }
.fc-1 .ic { color: #22C55E; } .fc-2 .ic { color: var(--brand-3); } .fc-3 .ic { color: var(--brand-2); }

/* ---------- Bandeau de références ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 3.4rem; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(.95rem, 1.6vw, 1.15rem);
  color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: .8rem;
  opacity: .8; transition: color .3s, opacity .3s;
}
.marquee span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .55; }
.marquee span:hover { color: var(--text); opacity: 1; }
.ref-label { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 1.6rem; font-weight: 600; }

/* ---------- Applications ---------- */
.app { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.8rem, 4vw, 4rem); align-items: center; }
.app + .app { margin-top: clamp(4rem, 7vw, 7rem); }
.app:nth-child(even) .app-txt { order: 2; }
.app-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem;
  border-radius: var(--r-full); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--app); background: color-mix(in srgb, var(--app) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--app) 32%, transparent);
}
.app-name { font-size: clamp(2rem, 1.3rem + 2.4vw, 2.9rem); margin-top: 1rem; letter-spacing: -.035em; }
.app-name em { font-style: normal; color: var(--app); }
.app-tag { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem,1rem+.4vw,1.25rem); margin-top: .7rem; color: var(--text); }
.app-txt p.desc { color: var(--text-2); margin-top: 1rem; }
.app-feats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .35rem 1.4rem; margin-top: 1.7rem; }
.app-feats .tick .ic { color: var(--app); }
.app-for { margin-top: 1.5rem; padding: .9rem 1.1rem; border-radius: var(--r-sm); font-size: .9rem; color: var(--text-2);
           background: color-mix(in srgb, var(--app) 7%, transparent); border-left: 3px solid var(--app); }
.app-for b { color: var(--text); font-weight: 600; }
.app-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; align-items: center; }
.btn-app { background: linear-gradient(135deg, var(--app), color-mix(in srgb, var(--app) 62%, #000)); color: #fff;
           box-shadow: 0 18px 46px -20px color-mix(in srgb, var(--app) 80%, transparent); }
.btn-app:hover { box-shadow: 0 26px 60px -20px color-mix(in srgb, var(--app) 90%, transparent); }
.trial-tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--muted); }
.trial-tag .ic { width: 16px; height: 16px; color: #22C55E; }

.app-vis { position: relative; }
.app-vis::before {
  content: ""; position: absolute; inset: -14% -8%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--app) 34%, transparent), transparent 76%);
  filter: blur(46px); z-index: 0; opacity: .85;
}
.app-vis .mock-wrap { position: relative; z-index: 1; border-radius: var(--r); box-shadow: var(--shadow-lg);
  transform: perspective(1500px) rotateY(9deg) rotateX(3deg); transition: transform .55s cubic-bezier(.2,.8,.3,1); }
.app:nth-child(even) .app-vis .mock-wrap { transform: perspective(1500px) rotateY(-9deg) rotateX(3deg); }
.app-vis .mock-wrap:hover { transform: perspective(1500px) rotateY(0) rotateX(0) scale(1.02); }
.mock { width: 100%; height: auto; display: block; border-radius: var(--r); }
.mk-bg{fill:var(--mk-bg)} .mk-bg2{fill:var(--mk-bg2)} .mk-bar{fill:var(--mk-bar)} .mk-card{fill:var(--mk-card)}
.mk-side{fill:var(--mk-side)} .mk-soft{fill:var(--mk-soft)} .mk-soft2{fill:var(--mk-soft2)}
.mk-stroke{fill:none;stroke:var(--mk-stroke)} .mk-rule{stroke:var(--mk-soft);stroke-width:1}

/* ---------- Solutions secondaires ---------- */
.sol { border-top: 3px solid var(--app); }
.sol .card-ico { color: var(--app); background: color-mix(in srgb, var(--app) 13%, transparent); border-color: color-mix(in srgb, var(--app) 28%, transparent); }
.sol-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.2rem; }
.sol-tags .chip { font-size: .75rem; padding: .28rem .65rem; }
.sol-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--app); font-weight: 700; margin-top: 1.1rem; }
.sol-more { border-style: dashed; border-color: color-mix(in srgb, var(--brand) 42%, transparent);
            background: color-mix(in srgb, var(--brand) 6%, transparent); }
.sol-more h3 { margin-top: 0; }

/* Bandeau de prévisualisation des cartes solutions */
.card--flush { padding: 0; display: flex; flex-direction: column; position: relative; }
.sol-body { padding: clamp(1.3rem, 2.2vw, 1.8rem); display: flex; flex-direction: column; flex: 1; }
.sol-body .btn { align-self: flex-start; margin-top: auto; }
.sol-preview {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(120% 110% at 78% 0%, color-mix(in srgb, var(--app) 26%, transparent), transparent 62%),
    linear-gradient(150deg, color-mix(in srgb, var(--app) 12%, transparent), transparent 70%),
    var(--bg-3);
}
[data-theme="light"] .sol-preview { background:
    radial-gradient(120% 110% at 78% 0%, color-mix(in srgb, var(--app) 20%, transparent), transparent 62%),
    linear-gradient(150deg, color-mix(in srgb, var(--app) 10%, transparent), transparent 70%),
    var(--bg-3); }
.sol-preview::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 0);
  background-size: 20px 20px; opacity: .45;
}
.mini { display: block; width: 100%; height: 172px; }
.sol-preview .mini { position: relative; z-index: 1; transition: transform .5s cubic-bezier(.2,.8,.3,1); }
.card--hover:hover .sol-preview .mini { transform: translateY(-5px) scale(1.03); }
.sol-chip {
  position: absolute; left: 1.2rem; top: 151px; z-index: 2;
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(140deg, var(--app), color-mix(in srgb, var(--app) 58%, #000));
  box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--app) 85%, transparent), 0 0 0 4px var(--bg);
  transition: transform .35s cubic-bezier(.2,.8,.3,1);
}
[data-theme="light"] .sol-chip { box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--app) 70%, transparent), 0 0 0 4px var(--surface); }
.card--hover:hover .sol-chip { transform: scale(1.08) rotate(-6deg); }
.sol-body .sol-label { margin-top: 1.5rem; }
.sol-more .sol-body { padding-top: 2.4rem; }
.sol h3 { margin-top: .35rem; }

/* ---------- Statistiques ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--border);
         border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--bg); padding: clamp(1.4rem,3vw,2.2rem); text-align: center; transition: background .3s; }
[data-theme="light"] .stat { background: var(--surface); }
.stat:hover { background: var(--surface-2); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em;
          font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.4rem);
          background: linear-gradient(120deg, var(--text), var(--brand)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .88rem; }

/* ---------- Méthode ---------- */
.steps { counter-reset: s; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
         grid-template-columns: repeat(4, minmax(0,1fr)); }
.step { background: var(--bg); padding: clamp(1.5rem,2.6vw,2.1rem); position: relative; transition: background .3s; }
[data-theme="light"] .step { background: var(--surface); }
.step:hover { background: var(--surface-2); }
.step-n { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.05em;
          color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--brand) 55%, transparent); line-height: 1; }
.step h3 { margin-top: 1rem; font-size: 1.16rem; }
.step p { color: var(--text-2); font-size: .94rem; margin-top: .6rem; }

/* ---------- Réalisations ---------- */
.proof { display: flex; gap: 1.2rem; align-items: flex-start; }
.proof .card-ico { width: 46px; height: 46px; border-radius: 14px; }
.proof-tag { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.proof h3 { font-size: 1.12rem; margin-top: .4rem; }
.proof p { color: var(--text-2); font-size: .94rem; margin-top: .55rem; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(2rem,4vw,4rem); align-items: start; }
.portrait { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.portrait img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.portrait-ph {
  aspect-ratio: 4/5; display: grid; place-items: center; position: relative;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 26%, var(--bg-3)), var(--bg-3) 62%);
}
.portrait-ph .mono { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); letter-spacing: -.06em;
                     background: linear-gradient(140deg, #fff, color-mix(in srgb, var(--brand) 70%, #fff));
                     -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .95; }
.portrait-ph::after { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.16) 1px, transparent 0); background-size: 22px 22px; opacity: .5; }
.portrait-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem;
  background: linear-gradient(transparent, rgba(4,8,16,.9)); color: #fff; }
.portrait-cap b { font-family: var(--font-display); font-size: 1.2rem; display: block; }
.portrait-cap span { font-size: .86rem; opacity: .82; }
.badge-cert { display: inline-flex; align-items: center; gap: .5rem; margin-top: .7rem; padding: .3rem .7rem;
  border-radius: var(--r-full); background: rgba(34,197,94,.16); border: 1px solid rgba(34,197,94,.4); color: #4ADE80; font-size: .76rem; font-weight: 600; }

.tl { position: relative; padding-left: 1.9rem; }
.tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--brand), transparent); opacity: .45; }
.tl-item { position: relative; padding-bottom: 1.8rem; }
.tl-item::before { content: ""; position: absolute; left: -1.9rem; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border-2); }
.tl-item.is-now::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.tl-when { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.tl-role { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; margin-top: .25rem; }
.tl-org  { font-size: .9rem; color: var(--muted); }
.tl-desc { font-size: .93rem; color: var(--text-2); margin-top: .5rem; }

.edu { display: flex; gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.edu:last-child { border-bottom: 0; }
.edu b { font-family: var(--font-display); color: var(--brand); font-size: .82rem; letter-spacing: .04em; flex: none; width: 92px; }
.edu div span { display: block; font-size: .86rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem .25rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.02rem,1rem+.25vw,1.16rem);
  transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary .ic { flex: none; color: var(--brand); transition: transform .3s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .ans { padding: 0 3rem 1.5rem .25rem; color: var(--text-2); font-size: .98rem; }

/* ---------- Pourquoi ---------- */
.why { display: flex; gap: 1rem; align-items: flex-start; }
.why .card-ico { width: 42px; height: 42px; border-radius: 13px; }
.why .card-ico .ic { width: 20px; height: 20px; }
.why h4 { font-family: var(--font-display); }
.why p { color: var(--text-2); font-size: .93rem; margin-top: .35rem; }

/* ---------- CTA final ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(2.4rem, 5vw, 4.4rem); text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 20%, var(--bg-3)), var(--bg-3) 55%, color-mix(in srgb, var(--brand-3) 20%, var(--bg-3)));
  border: 1px solid var(--border-2);
}
.cta-band::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 12%, transparent) 1px, transparent 0);
  background-size: 26px 26px; opacity: .5; }
.cta-band > * { position: relative; }
.cta-band p { color: var(--text-2); max-width: 56ch; margin: 1rem auto 0; }

/* ---------- 6. FORMULAIRE ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: clamp(2rem,4vw,3.6rem); align-items: start; }
.info-item { display: flex; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.info-item:last-of-type { border-bottom: 0; }
.info-item .card-ico { width: 44px; height: 44px; border-radius: 13px; }
.info-item .card-ico .ic { width: 20px; height: 20px; }
.info-item small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.info-item b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.info-item a:hover b { color: var(--brand); }

.form { display: grid; gap: 1.05rem; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
.field label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .45rem; color: var(--text-2); }
.field label i { font-style: normal; color: var(--muted); font-weight: 400; }
.field .req { color: var(--brand); }
.field input, .field select, .field textarea {
  width: 100%; padding: .88rem 1.05rem; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  transition: border-color .25s, background .25s, box-shadow .25s; font-size: .97rem;
}
[data-theme="light"] .field input, [data-theme="light"] .field select, [data-theme="light"] .field textarea { background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .75; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent);
}
.field textarea { min-height: 148px; resize: vertical; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237C8AA3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--text-2); }
.consent input { width: 18px; height: 18px; margin-top: .18rem; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.alert { display: flex; gap: .8rem; padding: 1rem 1.15rem; border-radius: var(--r-sm); font-size: .93rem; align-items: flex-start; }
.alert .ic { flex: none; margin-top: .15rem; }
.alert-ok  { background: rgba(34,197,94,.12);  border: 1px solid rgba(34,197,94,.4);  color: #4ADE80; }
.alert-err { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.4);  color: #FCA5A5; }
[data-theme="light"] .alert-ok { color: #15803D; }
[data-theme="light"] .alert-err { color: #B91C1C; }

/* ---------- FOOTER ---------- */
.ftr { border-top: 1px solid var(--border); margin-top: clamp(3rem,6vw,5rem); background: var(--bg-2); position: relative; z-index: 1; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.4rem; padding-block: clamp(2.8rem,5vw,4.2rem); }
.ftr h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.1rem; }
.ftr li { padding: .32rem 0; }
.ftr li a, .ftr .f-link { color: var(--text-2); font-size: .93rem; transition: color .25s, padding-left .25s; }
.ftr li a:hover { color: var(--brand); padding-left: 4px; }
.ftr p { color: var(--text-2); font-size: .93rem; margin-top: 1rem; max-width: 40ch; }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.ftr-bot { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
           padding-block: 1.4rem 4.6rem; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }

.to-top { position: fixed; right: 1.3rem; bottom: 5.3rem; z-index: 90; opacity: 0; pointer-events: none;
          transition: opacity .3s, transform .3s; transform: translateY(10px); }
.to-top.is-on { opacity: 1; pointer-events: auto; transform: none; }

.wa-float {
  position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 90;
  display: flex; align-items: center; gap: .55rem; padding: .8rem 1.1rem;
  border-radius: var(--r-full); background: #25D366; color: #04301A; font-weight: 700; font-size: .9rem;
  box-shadow: 0 16px 40px -14px rgba(37,211,102,.7); transition: transform .25s, box-shadow .25s;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 22px 50px -14px rgba(37,211,102,.85); }
.wa-float .ic { width: 20px; height: 20px; }

/* ---------- 7. ANIMATIONS ---------- */
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55) } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0) } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0) } }
@keyframes floaty { 0%,100% { translate: 0 0 } 50% { translate: 0 -12px } }
@keyframes slide { from { transform: translateX(0) } to { transform: translateX(-50%) } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.2,.8,.3,1), transform .75s cubic-bezier(.2,.8,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s } .reveal.d2 { transition-delay: .16s } .reveal.d3 { transition-delay: .24s }
.reveal.d4 { transition-delay: .32s } .reveal.d5 { transition-delay: .4s }

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

/* ---------- 8. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .nav, .hdr-act .lang-sw { display: none; }
  .burger { display: grid; }
  .hero-grid, .app, .about, .contact-grid { grid-template-columns: minmax(0,1fr); }
  .app:nth-child(even) .app-txt { order: 0; }
  .hero-vis { order: -1; margin-inline: auto; max-width: 560px; }
  .hero-vis .mock-wrap, .app-vis .mock-wrap, .app:nth-child(even) .app-vis .mock-wrap { transform: none; }
  .fc-1 { left: -2%; } .fc-2 { right: -2%; } .fc-3 { display: none; }
  .g3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .g2, .g3, .g4, .form-2 { grid-template-columns: minmax(0,1fr); }
  .app-feats { grid-template-columns: minmax(0,1fr); }
  .steps { grid-template-columns: minmax(0,1fr); }
  .ftr-grid { grid-template-columns: minmax(0,1fr); gap: 2rem; }
  .hdr-in { height: 68px; }
  .brand img { height: 36px; }
  .wa-float span { display: none; }
  .wa-float { padding: .9rem; }
  .float-card { padding: .55rem .75rem; font-size: .76rem; }
  .faq .ans { padding-right: 1rem; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: minmax(0,1fr); }
  .hero-cta .btn { width: 100%; }
}

@media print {
  .hdr, .ftr, .to-top, .wa-float, .drawer, .hero-vis, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Compléments ---------- */
.to-top .ic { transform: rotate(180deg); }
.hide-sm { display: inline-flex; }
@media (max-width: 980px) { .hide-sm { display: none; } }

/* ================================================================== *
 * Bulle GRAFTIC — elle dérive en fond de page ; un clic la fait éclater
 * et le nom de la marque apparaît. Purement décoratif (aria-hidden).
 * ================================================================== */
.bubble-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; }

.bubble {
  position: absolute; top: 0; left: 0;
  width: 58px; height: 58px; padding: 0; border-radius: 50%;
  pointer-events: auto; cursor: pointer;
  border: 1px solid rgba(255,255,255,.36);
  background:
    radial-gradient(circle at 70% 76%, color-mix(in srgb, var(--brand-3) 70%, transparent), transparent 58%),
    radial-gradient(circle at 30% 26%, rgba(255,255,255,.55), transparent 44%),
    linear-gradient(140deg, color-mix(in srgb, var(--brand) 60%, transparent), color-mix(in srgb, var(--brand-2) 42%, transparent));
  box-shadow: inset 0 -8px 18px -6px color-mix(in srgb, var(--brand-3) 60%, transparent),
              inset 0 8px 16px -6px rgba(255,255,255,.5),
              0 14px 34px -12px color-mix(in srgb, var(--brand) 75%, transparent);
  opacity: .82;
  transition: opacity .3s, filter .3s;
  animation: bubbleWobble 6s ease-in-out infinite;
  will-change: transform;
}
[data-theme="light"] .bubble { border-color: rgba(255,255,255,.7); opacity: .72; }
.bubble:hover { opacity: 1; filter: brightness(1.12); }
.bubble-shine {
  position: absolute; top: 20%; left: 22%; width: 26%; height: 20%;
  border-radius: 50%; background: rgba(255,255,255,.85); filter: blur(1.5px);
}
.bubble.is-pop { animation: bubblePop .42s cubic-bezier(.2,.8,.3,1) forwards; pointer-events: none; }
.bubble.is-hidden { display: none; }

.bubble-drop {
  position: absolute; top: 0; left: 0; border-radius: 50%;
  width: 9px; height: 9px; pointer-events: none;
  background: linear-gradient(140deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 0 12px -2px color-mix(in srgb, var(--brand-2) 80%, transparent);
}

.bubble-word {
  position: absolute; top: 0; left: 0; opacity: 0;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1;
  white-space: nowrap; translate: -50% -50%;
  text-shadow: 0 18px 50px color-mix(in srgb, var(--brand) 45%, transparent);
}
.bubble-word span { color: var(--text); }
.bubble-word em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand-2), var(--brand) 55%, var(--brand-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bubble-word.is-on { animation: bubbleWord 2s cubic-bezier(.2,.8,.3,1) forwards; }

@keyframes bubbleWobble {
  0%, 100% { border-radius: 50% 50% 50% 50%; }
  33%      { border-radius: 54% 46% 48% 52%; }
  66%      { border-radius: 46% 54% 53% 47%; }
}
@keyframes bubblePop {
  0%   { transform: scale(1);   opacity: .85; }
  35%  { transform: scale(1.45); opacity: .5; }
  100% { transform: scale(1.9); opacity: 0; }
}
@keyframes bubbleWord {
  0%   { opacity: 0; scale: .72; filter: blur(6px); }
  22%  { opacity: 1; scale: 1.04; filter: blur(0); }
  32%  { scale: 1; }
  72%  { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1.06; filter: blur(3px); }
}

@media (max-width: 720px) { .bubble { width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) {
  .bubble { animation: none; }
  .bubble-word.is-on { animation: bubbleWordSoft 2.4s ease forwards; }
  @keyframes bubbleWordSoft { 0%,100% { opacity: 0 } 15%,70% { opacity: 1 } }
}
@media print { .bubble-layer { display: none; } }
