/* ZEYHAK SYSTEMS — feuille de style principale */
:root {
  --navy: #0B1F3A;
  --navy-2: #13294B;
  --blue: #2F6BFF;
  --blue-dark: #1F55DB;
  --blue-soft: #EAF0FF;
  --cyan: #22D3EE;
  --violet: #7C5CFF;
  --text: #0B1F3A;
  --muted: #5B6B82;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FB;
  --border: #E3E8F0;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 58, .04), 0 12px 32px rgba(11, 31, 58, .08);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
body.menu-open { overflow: hidden; }
img, svg, canvas { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); letter-spacing: -.035em; font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.12rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--blue); color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: clamp(18px, 4vw, 24px); }

.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head.center .eyebrow::before { display: none; }

/* Découpage des mots pour les animations */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.word-inner { display: inline-block; will-change: transform; }

.hl .word-inner, .hl:not(:has(.word)) {
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--cyan), var(--blue));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 8s linear infinite;
}
@keyframes gradientShift { to { background-position: 300% 0; } }

/* Préchargeur */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--navy);
  clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.77, 0, .18, 1);
  animation: preloaderFailsafe 0s 4s forwards;
}
.preloader.done { clip-path: inset(0 0 100% 0); }
.preloader-mark { width: 72px; height: 72px; }
.preloader-mark rect { fill: #fff; transform-origin: center; animation: plBox .6s var(--ease) both; }
.preloader-mark path { fill: none; stroke: var(--navy); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 54; stroke-dashoffset: 54; animation: plDraw .7s .35s var(--ease) forwards; }
.preloader-mark circle { fill: var(--blue); transform-origin: 28.5px 11.5px; transform: scale(0); animation: plDot .4s .9s var(--ease) forwards; }
@keyframes plBox { from { transform: scale(.4) rotate(-30deg); opacity: 0; } }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
@keyframes plDot { to { transform: scale(1); } }
@keyframes preloaderFailsafe { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }

/* Barre de progression */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* Curseur personnalisé (souris uniquement) */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 150; border-radius: 50%; transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s; }
.cursor-dot { width: 6px; height: 6px; background: var(--blue); }
.cursor-ring { width: 36px; height: 36px; border: 1.5px solid rgba(47, 107, 255, .5); transition: opacity .3s, width .3s var(--ease), height .3s var(--ease), background-color .3s, border-color .3s; }
.cursor-ring.hover { width: 64px; height: 64px; background: rgba(47, 107, 255, .08); border-color: rgba(47, 107, 255, .25); }
.has-cursor .cursor-dot, .has-cursor .cursor-ring { opacity: 1; }

/* Boutons */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .85rem 1.55rem; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font: 600 .95rem var(--font); color: #fff; background: var(--blue); transition: background .2s, box-shadow .3s, color .2s; will-change: transform; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, .35) 50%, transparent 80%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { background: var(--blue-dark); box-shadow: 0 10px 28px rgba(47, 107, 255, .35); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--bg-alt); box-shadow: none; border-color: #cfd7e3; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); box-shadow: 0 10px 28px rgba(0, 0, 0, .2); }
.btn-sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .9rem; }

/* En-tête */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, transform .45s var(--ease), background .3s; }
.site-header.scrolled { border-color: var(--border); background: rgba(255, 255, 255, .92); }
.site-header.hide { transform: translateY(-100%); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }
.brand { position: relative; z-index: 2; }
.brand img { display: block; height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links > a:not(.btn) { position: relative; font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav-links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn):hover::after, .nav-links > a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links > a.active { color: var(--text); }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; font-size: .8rem; font-weight: 600; }
.lang-switch a, .lang-switch span { padding: .4rem .65rem; }
.lang-switch span { background: var(--navy); color: #fff; }
.lang-switch a { color: var(--muted); transition: background .2s; }
.lang-switch a:hover { background: var(--bg-alt); }
.nav-toggle { display: none; position: relative; z-index: 2; width: 46px; height: 46px; background: none; border: 0; padding: 11px; cursor: pointer; border-radius: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }

/* Hero */
.hero { position: relative; padding: clamp(48px, 9vw, 110px) 0 clamp(56px, 8vw, 100px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(900px 520px at 85% 0%, var(--blue-soft), transparent 70%), radial-gradient(600px 400px at 0% 100%, #F1F5FF, transparent 70%); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.hero .lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin: 2.2rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: .5rem; }
.hero-points svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.hero-visual { position: relative; perspective: 1000px; }
.hero-visual svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 30px 60px rgba(11, 31, 58, .12)); }
.hv-orbit { transform-origin: 230px 210px; animation: spin 40s linear infinite; }
.hv-lines line { stroke-dasharray: 6 6; animation: dashFlow 1.6s linear infinite; }
.hv-halo circle { transform-box: fill-box; transform-origin: center; animation: pulse 3s ease-in-out infinite; }
.hv-halo circle:nth-child(2) { animation-delay: .5s; } .hv-halo circle:nth-child(3) { animation-delay: 1s; }
.hv-halo circle:nth-child(4) { animation-delay: 1.5s; } .hv-halo circle:nth-child(5) { animation-delay: 2s; } .hv-halo circle:nth-child(6) { animation-delay: 2.5s; }
.hv-shield { transform-box: fill-box; transform-origin: center; animation: float 5s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dashFlow { to { stroke-dashoffset: -24; } }
@keyframes pulse { 50% { transform: scale(1.25); opacity: .55; } }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Bandeau défilant */
.marquee { overflow: hidden; border-block: 1px solid var(--border); background: var(--bg-alt); padding: 1.15rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { list-style: none; margin: 0; padding: 0; display: flex; flex: none; }
.marquee li { display: flex; align-items: center; gap: 1.1rem; padding-right: 1.1rem; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 700; letter-spacing: -.01em; color: var(--navy-2); white-space: nowrap; }
.marquee li::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: linear-gradient(135deg, var(--blue), var(--cyan)); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 660px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* Vidéo */
.section-video { padding-bottom: clamp(56px, 8vw, 100px); }
.motion-frame { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(14px, 2.4vw, 24px); overflow: hidden; background: var(--navy); box-shadow: 0 40px 80px -20px rgba(11, 31, 58, .35), 0 0 0 1px rgba(11, 31, 58, .06); }
.motion-frame canvas { display: block; width: 100%; height: 100%; }
.motion-play { position: absolute; inset: 0; margin: auto; width: clamp(64px, 10vw, 92px); height: clamp(64px, 10vw, 92px); border-radius: 50%; border: 0; cursor: pointer; background: rgba(255, 255, 255, .95); color: var(--blue); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); animation: ring 2.2s infinite; transition: transform .3s var(--ease), opacity .3s; }
.motion-play svg { width: 40%; height: 40%; fill: currentColor; margin-left: 6%; }
.motion-play:hover { transform: scale(1.08); }
.motion-frame.playing .motion-play { opacity: 0; transform: scale(.7); pointer-events: none; }
@keyframes ring { 70% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.motion-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .9rem; padding: clamp(.6rem, 2vw, 1rem) clamp(.8rem, 2.4vw, 1.3rem); background: linear-gradient(transparent, rgba(4, 12, 26, .75)); color: #fff; transform: translateY(0); opacity: 1; transition: opacity .4s, transform .4s var(--ease); }
.motion-frame.playing:not(:hover) .motion-controls { opacity: 0; transform: translateY(10px); }
@media (hover: none) { .motion-frame.playing .motion-controls { opacity: 1; transform: none; } }
.motion-controls button { flex: none; width: 40px; height: 40px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.motion-controls button:hover { background: rgba(255, 255, 255, .25); }
.motion-controls svg { width: 18px; height: 18px; fill: currentColor; }
.mc-full svg, .mc-sound svg, .motion-unmute svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mc-sound path:first-child, .motion-unmute path:first-child { fill: currentColor; }
.mc-sound .i-sound, .sound-on .mc-sound .i-mute, .no-sound .mc-sound, .no-sound .motion-unmute { display: none; }
.sound-on .mc-sound .i-sound { display: block; }
.motion-unmute { position: absolute; top: clamp(10px, 2vw, 18px); right: clamp(10px, 2vw, 18px); display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .5rem .95rem; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255, 255, 255, .95); color: var(--navy); font-weight: 600; font-size: .88rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .35s, transform .45s var(--ease); }
.motion-unmute svg { width: 18px; height: 18px; color: var(--blue); }
.motion-frame.playing:not(.sound-on) .motion-unmute { opacity: 1; transform: none; pointer-events: auto; animation: nudge 2.4s 1s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 8% { transform: scale(1.06); } 16% { transform: none; } }
.mc-toggle .i-pause, .motion-frame.playing .mc-toggle .i-play { display: none; }
.motion-frame.playing .mc-toggle .i-pause { display: block; }
.mc-seek { flex: 1; min-width: 0; height: 4px; -webkit-appearance: none; appearance: none; background: linear-gradient(90deg, var(--blue) var(--p, 0%), rgba(255, 255, 255, .25) var(--p, 0%)); border-radius: 4px; cursor: pointer; }
.mc-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .4); }
.mc-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.mc-time { font-size: .82rem; font-variant-numeric: tabular-nums; opacity: .85; white-space: nowrap; }

/* Services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card { position: relative; overflow: hidden; isolation: isolate; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; transition: border-color .3s, box-shadow .4s; transform-style: preserve-3d; will-change: transform; }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(47, 107, 255, .1), transparent 45%); opacity: 0; transition: opacity .4s; }
.card:hover { border-color: #cdd8f0; box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card p { color: var(--muted); margin: 0 0 1rem; }
.card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; font-size: .92rem; color: var(--navy-2); }
.card ul li { display: flex; gap: .5rem; }
.card ul li::before { content: "—"; color: var(--blue); }
.icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); margin-bottom: 1.3rem; transition: background .35s, color .35s, transform .5s var(--ease); }
.card:hover .icon { background: var(--blue); color: #fff; transform: rotate(-8deg) scale(1.06); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-cta { color: #fff; border-color: transparent; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; background: linear-gradient(135deg, var(--navy), #1A3A73, var(--navy)); background-size: 200% 200%; animation: bgShift 10s ease infinite; }
.card-cta::before { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(127, 164, 255, .25), transparent 45%); }
.card-cta p { color: #B8C4D9; }
.card-cta:hover { border-color: transparent; }
@keyframes bgShift { 50% { background-position: 100% 100%; } }

/* Pourquoi nous */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.why .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; transition: box-shadow .4s, transform .5s var(--ease); }
.feature:hover { box-shadow: var(--shadow); }
.feature h3 { display: flex; align-items: center; gap: .6rem; }
.feature h3 svg { width: 22px; height: 22px; color: var(--blue); flex: none; }
.feature p { color: var(--muted); margin: 0; }

/* Méthode */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; }
.steps li { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem; }
.steps li::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 1rem; background: linear-gradient(135deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step-bar { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: 0 50%; }
.steps p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Bandeau CTA */
.cta-band { color: #fff; border-radius: clamp(16px, 3vw, 24px); padding: clamp(2rem, 5vw, 3.6rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(120deg, var(--navy), #163A7A, var(--navy)); background-size: 220% 220%; animation: bgShift 12s ease infinite; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(10px); }
.cta-band::before { width: 420px; height: 420px; right: -120px; top: -220px; background: radial-gradient(circle, rgba(47, 107, 255, .55), transparent 65%); animation: float 7s ease-in-out infinite; }
.cta-band::after { width: 300px; height: 300px; left: 10%; bottom: -220px; background: radial-gradient(circle, rgba(34, 211, 238, .3), transparent 65%); animation: float 9s ease-in-out infinite reverse; }
.cta-band h2 { margin: 0 0 .3em; font-size: clamp(1.45rem, 3vw, 2.1rem); }
.cta-band p { margin: 0; color: #B8C4D9; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; transition: border-color .3s, box-shadow .3s, transform .4s var(--ease); }
.contact-list li:hover { border-color: #cdd8f0; box-shadow: var(--shadow); transform: translateX(6px); }
.contact-list .icon { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-list li:hover .icon { background: var(--blue); color: #fff; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.contact-list a { font-weight: 600; word-break: break-word; }
.contact-list a:hover { color: var(--blue); }
.contact-form { background: #fff; border: 1px solid var(--border); border-radius: 20px; padding: clamp(1.4rem, 4vw, 2.5rem); box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--border); background: #fff; color: var(--text); font: inherit; font-size: 16px; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); }
.field.invalid input, .field.invalid textarea { border-color: #E5484D; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 0; font-size: .92rem; color: #16794C; }
.form-status a { text-decoration: underline; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn.loading { opacity: .75; cursor: progress; }
.btn.loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.form-status.error { color: #E5484D; }

/* Pied de page */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: #B8C4D9; padding: 4rem 0 2rem; margin-top: clamp(72px, 10vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-grid h4 { color: #fff; font-size: .9rem; margin: 0 0 1rem; letter-spacing: .02em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; font-size: .93rem; }
.footer-grid a { transition: color .2s; }
.footer-grid a:hover { color: #fff; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 1rem; font-size: .93rem; max-width: 300px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; font-size: .84rem; }
.footer-word { font-size: clamp(3.5rem, 15vw, 12rem); font-weight: 800; letter-spacing: -.05em; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08); margin: 2.5rem 0 -0.12em; text-align: center; user-select: none; white-space: nowrap; }

/* Bouton retour en haut */
.to-top { position: fixed; right: clamp(14px, 3vw, 28px); bottom: calc(clamp(14px, 3vw, 28px) + env(safe-area-inset-bottom, 0px)); z-index: 90; width: 48px; height: 48px; border-radius: 14px; border: 0; cursor: pointer; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(11, 31, 58, .3); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .3s, transform .4s var(--ease), background .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--blue); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Newsletter (pied de page) */
.footer-news { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: center; padding: 0 0 2.6rem; margin-bottom: 2.6rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-news h3 { color: #fff; font-size: clamp(1.2rem, 2.4vw, 1.5rem); margin: 0 0 .35rem; }
.footer-news p { margin: 0; font-size: .95rem; }
.newsletter { display: grid; gap: .6rem; }
.nl-row { display: flex; gap: .6rem; }
.nl-row input { flex: 1; min-width: 0; min-height: 50px; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 16px; transition: border-color .2s, background .2s; }
.nl-row input::placeholder { color: #8797B2; }
.nl-row input:focus { outline: none; border-color: var(--blue); background: rgba(255, 255, 255, .1); }
.nl-row .btn { min-height: 50px; flex: none; }
.nl-consent { font-size: .78rem; color: #8797B2; margin: 0; }
.nl-status { margin: 0; font-size: .9rem; color: #5EE6A8; min-height: 1.2em; }
.nl-status.error { color: #FF8A8E; }

/* Bouton WhatsApp */
.wa-float, .chat-launcher { position: fixed; z-index: 95; bottom: calc(clamp(14px, 3vw, 24px) + env(safe-area-inset-bottom, 0px)); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(11, 31, 58, .28); transition: transform .4s var(--ease), box-shadow .3s, opacity .3s; }
.wa-float { left: clamp(14px, 3vw, 24px); width: 54px; height: 54px; background: #25D366; color: #fff; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37, 211, 102, .45); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-label { position: absolute; left: calc(100% + 12px); white-space: nowrap; background: var(--navy); color: #fff; font-size: .85rem; font-weight: 600; padding: .45rem .8rem; border-radius: 10px; opacity: 0; transform: translateX(-6px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease); }
.wa-float:hover .wa-label { opacity: 1; transform: none; }

/* Assistant IA */
.chat-launcher { right: clamp(14px, 3vw, 24px); width: 60px; height: 60px; border: 0; cursor: pointer; color: #fff; background: linear-gradient(135deg, var(--blue), #1A3A73); }
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher svg { width: 28px; height: 28px; }
.chat-launcher .cl-close, .chat-open .chat-launcher .cl-open { display: none; }
.chat-open .chat-launcher .cl-close { display: grid; }
.chat-launcher span { display: grid; place-items: center; }
.to-top { bottom: calc(clamp(14px, 3vw, 24px) + 74px + env(safe-area-inset-bottom, 0px)); right: calc(clamp(14px, 3vw, 24px) + 6px); }
.chat-teaser { position: fixed; z-index: 95; right: calc(clamp(14px, 3vw, 24px) + 70px); bottom: calc(clamp(14px, 3vw, 24px) + 10px + env(safe-area-inset-bottom, 0px)); max-width: 230px; text-align: left; border: 0; cursor: pointer; background: #fff; color: var(--navy); font: 600 .9rem var(--font); padding: .75rem 1rem; border-radius: 14px 14px 4px 14px; box-shadow: var(--shadow), 0 0 0 1px var(--border); opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; transition: opacity .35s, transform .5s var(--ease); }
.chat-teaser.show { opacity: 1; transform: none; pointer-events: auto; }
.chat-open .chat-teaser { display: none; }

.chat-panel { position: fixed; z-index: 115; right: clamp(14px, 3vw, 24px); bottom: calc(clamp(14px, 3vw, 24px) + 72px + env(safe-area-inset-bottom, 0px)); width: min(390px, calc(100vw - 28px)); height: min(600px, calc(100vh - 130px)); height: min(600px, calc(100dvh - 130px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(11, 31, 58, .3), 0 0 0 1px rgba(11, 31, 58, .06); transform-origin: bottom right; opacity: 0; transform: translateY(16px) scale(.96); transition: opacity .3s, transform .45s var(--ease); }
.chat-panel.open { opacity: 1; transform: none; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .9rem 1rem; color: #fff; background: linear-gradient(120deg, var(--navy), #163A7A); }
.chat-avatar svg { width: 38px; height: 38px; display: block; }
.chat-id { flex: 1; min-width: 0; line-height: 1.25; }
.chat-id strong { display: block; font-size: .98rem; }
.chat-id span { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: #B8C4D9; }
.chat-id i { width: 7px; height: 7px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); }
.chat-icon-btn { width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; cursor: pointer; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); transition: background .2s; }
.chat-icon-btn:hover { background: rgba(255, 255, 255, .22); }
.chat-icon-btn svg { width: 18px; height: 18px; }
.chat-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--bg-alt); }
.msg { max-width: 86%; padding: .7rem .95rem; border-radius: 16px; font-size: .93rem; line-height: 1.55; word-wrap: break-word; animation: msgIn .4s var(--ease); }
.msg p { margin: 0 0 .45em; } .msg p:last-child { margin: 0; }
.msg ul { margin: .2em 0 .5em; padding-left: 1.1em; } .msg li { margin: .15em 0; }
.msg a { color: var(--blue); text-decoration: underline; font-weight: 600; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.msg-error { border-color: #FFD3D5; background: #FFF6F6; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.typing { display: inline-flex; gap: 4px; padding: .2rem 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9AABC4; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: .45rem; padding: 0 1rem; background: var(--bg-alt); }
.chat-chips:not(:empty) { padding-bottom: .8rem; }
.chat-chips button { border: 1px solid #cdd8f0; background: #fff; color: var(--blue); font: 600 .82rem var(--font); padding: .5rem .8rem; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.chat-chips button:hover { background: var(--blue); color: #fff; }
.chat-form { display: flex; align-items: flex-end; gap: .5rem; padding: .75rem; border-top: 1px solid var(--border); background: #fff; }
.chat-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--border); font: inherit; font-size: 16px; line-height: 1.4; color: var(--text); }
.chat-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.chat-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; cursor: pointer; display: grid; place-items: center; color: #fff; background: var(--blue); transition: background .2s, opacity .2s; }
.chat-send:hover { background: var(--blue-dark); }
.chat-send:disabled { opacity: .5; cursor: progress; }
.chat-send svg { width: 20px; height: 20px; }
.chat-note { margin: 0; padding: 0 .9rem .65rem; font-size: .72rem; color: var(--muted); background: #fff; text-align: center; }
.menu-open .wa-float, .menu-open .chat-launcher, .menu-open .chat-teaser, .menu-open .to-top { opacity: 0; pointer-events: none; }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 880px) {
  :root { --header-h: 66px; }
  .brand img { height: 34px; }
  .hero-grid, .why, .contact { grid-template-columns: 1fr; }
  .why .section-head { position: static; }
  .hero-visual { max-width: 420px; margin-inline: auto; width: 100%; }
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    background: #fff; padding: calc(var(--header-h) + 24px) clamp(18px, 6vw, 32px) calc(32px + env(safe-area-inset-bottom, 0px));
    clip-path: circle(0 at calc(100% - 42px) 33px); visibility: hidden;
    transition: clip-path .7s cubic-bezier(.77, 0, .18, 1), visibility 0s .7s; overflow-y: auto;
  }
  .nav-links.open { clip-path: circle(150% at calc(100% - 42px) 33px); visibility: visible; transition: clip-path .7s cubic-bezier(.77, 0, .18, 1), visibility 0s; }
  .nav-links > * { opacity: 0; transform: translateY(24px); transition: opacity .4s, transform .6s var(--ease); }
  .nav-links.open > * { opacity: 1; transform: none; transition-delay: calc(.2s + var(--i, 0) * .07s); }
  .nav-links > a:not(.btn) { font-size: clamp(1.6rem, 7vw, 2.1rem); font-weight: 700; color: var(--text); letter-spacing: -.02em; padding: .7rem 0; border-bottom: 1px solid var(--border); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links .lang-switch { align-self: flex-start; margin-top: 1.6rem; font-size: .95rem; }
  .nav-links .lang-switch a, .nav-links .lang-switch span { padding: .6rem .95rem; }
  .nav-links .btn { margin-top: 1.2rem; min-height: 54px; font-size: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-open .site-header { background: #fff; transform: none; }
}
@media (max-width: 600px) {
  .cards, .steps, .features, .contact-form, .footer-grid { grid-template-columns: 1fr; }
  .card, .steps li { padding: 1.5rem; }
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: .5rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .cta-band .btn { width: 100%; }
  .contact-form .btn { width: 100%; }
  .mc-time { display: none; }
  .footer-news { grid-template-columns: 1fr; gap: 1.2rem; }
  .nl-row { flex-direction: column; }
  .wa-label, .chat-teaser { display: none; }
  .chat-panel { inset: 0; width: 100%; height: 100%; border-radius: 0; transform-origin: bottom center; }
  .chat-open .chat-launcher, .chat-open .wa-float, .chat-open .to-top { opacity: 0; pointer-events: none; }
  body.chat-open { overflow: hidden; }
  .chat-head { padding-top: calc(.9rem + env(safe-area-inset-top, 0px)); }
  .chat-note { padding-bottom: calc(.65rem + env(safe-area-inset-bottom, 0px)); }
  .motion-controls { gap: .6rem; }
  .motion-controls button { width: 36px; height: 36px; }
}

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