/* ============ ORÉALINK — VERSION DYNAMIQUE (70 % clair / 30 % sombre) ============ */
/* Thème clair par défaut. Une section avec la classe "dark" passe en sombre. */
:root {
  --bg: #ffffff;
  --bg-alt: #f6f5ff;
  --surface: #ffffff;
  --surface-2: #f3f1ff;
  --line: #e8e6f5;
  --text: #0f0d1f;
  --muted: #5d5a75;
  --eyebrow: #6d3df5;
  --ok: #059669;
  --ok-bg: rgba(5, 150, 105, .1);
  --warn: #b45309;
  --warn-bg: rgba(245, 158, 11, .14);
  --input-bg: #fbfaff;
  --shadow: 0 14px 40px -20px rgba(60, 40, 140, .25);
  --sk1: rgba(15, 13, 31, .05);
  --sk2: rgba(15, 13, 31, .11);
  --gradient: linear-gradient(100deg, #0ea5e9, #7c3aed 50%, #db2777);
  --violet: #7c3aed;
  --cyan: #0ea5e9;
  --pink: #db2777;
  --radius: 20px;
  --font-title: 'Space Grotesk', sans-serif;
}
.dark {
  --bg: #06061a;
  --bg-alt: #0b0b24;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --text: #f3f3ff;
  --muted: #9d9cc0;
  --eyebrow: #22d3ee;
  --ok: #34d399;
  --ok-bg: rgba(52, 211, 153, .12);
  --warn: #fbbf24;
  --warn-bg: rgba(251, 191, 36, .12);
  --input-bg: rgba(0, 0, 0, .25);
  --shadow: none;
  --sk1: rgba(255, 255, 255, .06);
  --sk2: rgba(255, 255, 255, .14);
  --gradient: linear-gradient(100deg, #22d3ee, #8b5cf6 50%, #ec4899);
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #ec4899;
  background: var(--bg);
  color: var(--text);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
h1, h2, h3, h4 { font-family: var(--font-title); line-height: 1.1; letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
.muted { color: var(--muted); }
.grad {
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--eyebrow); margin-bottom: 18px;
}

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .95rem 'Inter', sans-serif; color: #fff;
  background: var(--gradient); background-size: 200% 100%;
  box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .6);
  transition: background-position .5s, transform .25s, box-shadow .25s;
}
.btn:hover { background-position: 100% 0; box-shadow: 0 14px 40px -10px rgba(219, 39, 119, .7); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--line); box-shadow: none; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; }
.btn-small { padding: 10px 20px; font-size: .88rem; }
.btn-whatsapp { background: #25d366; box-shadow: 0 10px 30px -10px rgba(37, 211, 102, .6); margin-top: 26px; }
.btn-call { margin-top: 26px; }

/* ---------- En-tête ---------- */
/* Sombre au-dessus de l'accueil, devient blanc quand on descend */
.header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, color .3s; border-bottom: 1px solid transparent; background: transparent; }
.header.scrolled {
  --bg: #ffffff; --text: #0f0d1f; --muted: #5d5a75; --line: #e8e6f5;
  --gradient: linear-gradient(100deg, #0ea5e9, #7c3aed 50%, #db2777);
  color: var(--text);
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); border-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 1.45rem var(--font-title); letter-spacing: -.03em; }
.logo-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gradient); box-shadow: 0 0 18px rgba(139, 92, 246, .7); animation: spin 6s linear infinite; }
.menu { display: flex; align-items: center; gap: 32px; font-size: .93rem; }
.menu a:not(.btn) { color: var(--muted); transition: color .2s; }
.menu a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 32px; height: 32px; position: relative; }
.menu-btn span { position: absolute; left: 4px; right: 4px; height: 2px; background: var(--text); transition: .3s; }
.menu-btn span:first-child { top: 11px; }
.menu-btn span:last-child { top: 19px; }
.menu-btn.open span:first-child { top: 15px; transform: rotate(45deg); }
.menu-btn.open span:last-child { top: 15px; transform: rotate(-45deg); }

/* ---------- Accueil (sombre) ---------- */
.hero { position: relative; padding: 150px 0 70px; overflow: hidden; }
/* Accueil plus lumineux : bleu-violet profond au lieu du noir */
.hero.dark {
  --bg: #1b1f52;
  --muted: #c9c8ec;
  --line: rgba(255, 255, 255, .16);
  --surface: rgba(255, 255, 255, .09);
  background: linear-gradient(150deg, #1f2a6b 0%, #2b2477 45%, #4a2380 80%, #5b2483 100%);
}
.hero-photo {
  position: absolute; inset: 0; pointer-events: none;
  background: url('https://images.unsplash.com/photo-1677442135703-1787eea5ce01?auto=format&fit=crop&w=1800&q=70') center / cover no-repeat;
  opacity: .22; mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 55%);
}
#network { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(34, 211, 238, .28), transparent 70%),
    radial-gradient(700px 500px at 85% 30%, rgba(167, 139, 250, .32), transparent 70%),
    radial-gradient(500px 400px at 60% 95%, rgba(244, 114, 182, .26), transparent 70%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); margin-bottom: 24px; }
.rotator {
  display: inline-block;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: opacity .35s, transform .35s, filter .35s;
}
.rotator.out { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.subtitle { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin-bottom: 36px; }
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }

/* Tableau de bord */
.dash {
  position: relative; padding: 22px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(139, 92, 246, .15) inset;
  animation: float 7s ease-in-out infinite;
}
.dash::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none; }
.dash-top { display: flex; align-items: center; gap: 12px; font-size: .78rem; color: var(--muted); margin-bottom: 16px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.badge.live { margin-left: auto; color: var(--ok); font-weight: 600; animation: blink 2s infinite; }
.dash-title { font: 600 1.1rem var(--font-title); margin-bottom: 14px; }
.agents-mini { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.agents-mini li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; }
.agents-mini .ico { font-size: 1rem; }
.status { margin-left: auto; font-size: .68rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.status.on { color: var(--ok); background: var(--ok-bg); }
.status.on::before { content: '● '; animation: blink 1.6s infinite; }
.status.wip { color: var(--warn); background: var(--warn-bg); }
.dash-chart { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.chart-head strong { font: 700 1.5rem var(--font-title); color: var(--text); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 70px; }
.bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--gradient); height: 30%; transition: height 1s cubic-bezier(.2, .8, .2, 1); opacity: .9; }
.feed-title { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.feed { list-style: none; display: grid; gap: 6px; min-height: 126px; }
.feed li { display: flex; align-items: center; gap: 10px; font-size: .8rem; padding: 7px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); animation: slideIn .5s ease both; }
.feed li .t { margin-left: auto; color: var(--muted); font-size: .7rem; }

/* ----- Tableau de bord : version claire et colorée ----- */
.hero .dash {
  --text: #0f0d1f; --muted: #6b6889; --line: #ece9f8; --surface: #ffffff;
  --ok: #059669; --ok-bg: rgba(5, 150, 105, .12);
  --warn: #c2410c; --warn-bg: rgba(249, 115, 22, .14);
  color: var(--text);
  background: linear-gradient(160deg, #ffffff 0%, #faf8ff 60%, #fff5fb 100%);
  border: 1px solid rgba(255, 255, 255, .7);
  backdrop-filter: none;
  box-shadow: 0 40px 80px -30px rgba(10, 5, 40, .65), 0 0 0 6px rgba(255, 255, 255, .12);
}
.hero .dash::before { opacity: .9; }
.hero .dash-title { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* une couleur par agent */
.hero .agents-mini li { --c: #10b981; background: color-mix(in srgb, var(--c) 10%, #fff); border-color: color-mix(in srgb, var(--c) 30%, #fff); font-weight: 500; }
.hero .agents-mini li:nth-child(2) { --c: #ec4899; }
.hero .agents-mini li:nth-child(3) { --c: #f97316; }
.hero .agents-mini li:nth-child(4) { --c: #3b82f6; }
.hero .dash-chart { background: linear-gradient(135deg, #eef6ff, #f5f0ff 50%, #fff0f7); border-color: #e6e1f7; }
/* barres multicolores */
.hero .bars i:nth-child(1) { background: linear-gradient(180deg, #22d3ee, #0ea5e9); }
.hero .bars i:nth-child(2) { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.hero .bars i:nth-child(3) { background: linear-gradient(180deg, #f472b6, #db2777); }
.hero .bars i:nth-child(4) { background: linear-gradient(180deg, #fdba74, #f97316); }
.hero .bars i:nth-child(5) { background: linear-gradient(180deg, #6ee7b7, #10b981); }
.hero .bars i:nth-child(6) { background: linear-gradient(180deg, #93c5fd, #3b82f6); }
.hero .bars i:nth-child(7) { background: linear-gradient(180deg, #c4b5fd, #8b5cf6); }
/* fil d'activité avec un trait de couleur */
.hero .feed li { --c: #7c3aed; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--c); }
.hero .feed li:nth-child(2) { --c: #ec4899; }
.hero .feed li:nth-child(3) { --c: #0ea5e9; }
.hero .feed li:nth-child(4) { --c: #10b981; }

.hero-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 80px; }
.hero-stats div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.hero-stats strong { display: inline; font: 700 2.4rem var(--font-title); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { display: block; color: var(--muted); font-size: .88rem; }

/* ---------- Bande défilante (transition sombre → clair) ---------- */
.marquee { overflow: hidden; background: var(--gradient); padding: 18px 0; }
.marquee-track { display: flex; gap: 34px; width: max-content; animation: marquee 30s linear infinite; font: 600 1.2rem var(--font-title); color: rgba(255, 255, 255, .75); }
.marquee-track span:nth-child(4n+1) { color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; background: var(--bg); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head .muted { margin-top: 16px; font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split > div > .muted { margin-top: 16px; }

/* Effet projecteur (la lumière suit la souris) */
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(380px circle at var(--x, 50%) var(--y, 50%), rgba(139, 92, 246, .16), transparent 60%);
}
.spot:hover::after { opacity: 1; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service { padding: 34px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, border-color .3s, box-shadow .3s; }
.service:hover { transform: translateY(-6px); border-color: rgba(124, 58, 237, .45); box-shadow: 0 24px 50px -24px rgba(124, 58, 237, .45); }
.icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 1.6rem; background: linear-gradient(140deg, rgba(14, 165, 233, .14), rgba(219, 39, 119, .14)); border: 1px solid var(--line); margin-bottom: 22px; }
/* Photo en haut de chaque carte, l'icône vient se poser dessus */
.service-img { display: block; width: calc(100% + 68px); height: 170px; margin: -34px -34px 0; object-fit: cover; transition: transform .6s; }
.service:hover .service-img { transform: scale(1.06); }
.service .icon { position: relative; margin-top: -27px; background: var(--surface); box-shadow: 0 8px 20px -8px rgba(60, 40, 140, .35); }
.service h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .95rem; }
.service .arrow { display: inline-block; margin-top: 20px; font-size: 1.3rem; color: var(--violet); transition: transform .3s; }
.service:hover .arrow { transform: translateX(6px); }

/* ---------- Méthode (défilement, clair) ---------- */
.seq { position: relative; height: 260vh; background: var(--bg-alt); }
.seq-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.seq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.seq-progress { height: 3px; background: var(--line); border-radius: 3px; margin: 30px 0; overflow: hidden; }
.seq-progress span { display: block; height: 100%; width: 0; background: var(--gradient); }
.seq-steps { list-style: none; display: grid; gap: 10px; }
.seq-steps li { display: flex; gap: 18px; padding: 18px 20px; border-radius: 16px; border: 1px solid transparent; opacity: .4; transition: .4s; }
.seq-steps li > span { font: 700 .9rem var(--font-title); color: var(--violet); padding-top: 4px; }
.seq-steps h3 { font-size: 1.35rem; margin-bottom: 6px; }
.seq-steps p { color: var(--muted); font-size: .95rem; max-height: 0; overflow: hidden; transition: max-height .4s; }
.seq-steps li.active { opacity: 1; background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.seq-steps li.active p { max-height: 100px; }
.seq-visual { position: relative; height: 440px; }
.panel { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 20px; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .5s, transform .5s; pointer-events: none; }
.panel.active { opacity: 1; transform: none; }
.panel-label { text-align: center; color: var(--muted); font-size: .9rem; }
/* panneau 1 : navigateur */
.browser { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.b-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.b-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.b-bar span { margin-left: 12px; font-size: .75rem; color: var(--muted); background: var(--surface-2); padding: 3px 12px; border-radius: 6px; }
.b-body { padding: 30px; display: grid; gap: 14px; }
.sk { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--sk1), var(--sk2), var(--sk1)); background-size: 200% 100%; animation: shimmer 2s infinite; }
.sk.w60 { width: 60%; height: 26px; }
.sk.w40 { width: 40%; }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.sk.box { height: 90px; border-radius: 12px; }
.sk.btnsk { width: 140px; height: 38px; border-radius: 999px; background: var(--gradient); animation: none; }
/* panneau 2 : connexions */
.hub { position: relative; height: 340px; }
.hub-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--font-title); color: #fff; background: var(--gradient); box-shadow: 0 0 60px rgba(139, 92, 246, .5); animation: pulseBig 3s infinite; }
.node { position: absolute; padding: 8px 16px; border-radius: 999px; font-size: .82rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); animation: float 5s ease-in-out infinite; }
.n1 { left: 4%; top: 8%; } .n2 { right: 4%; top: 6%; animation-delay: -1s; }
.n3 { left: 0; top: 46%; animation-delay: -2s; } .n4 { right: 0; top: 48%; animation-delay: -3s; }
.n5 { left: 10%; bottom: 4%; animation-delay: -4s; } .n6 { right: 10%; bottom: 6%; animation-delay: -2.5s; }
.hub::before { content: ''; position: absolute; inset: 14% 10%; border-radius: 50%; border: 1px dashed rgba(124, 58, 237, .35); animation: spin 30s linear infinite; }
/* panneau 3 : discussion */
.chat { display: grid; gap: 12px; padding: 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.msg { max-width: 80%; padding: 12px 16px; border-radius: 16px; font-size: .92rem; }
.msg.in { background: var(--surface-2); border-bottom-left-radius: 4px; }
.msg.out { justify-self: end; color: #fff; background: linear-gradient(120deg, #7c3aed, #db2777); border-bottom-right-radius: 4px; }
.panel.active .msg { animation: slideIn .5s both; }
.panel.active .msg:nth-child(2) { animation-delay: .4s; }
.panel.active .msg:nth-child(3) { animation-delay: .8s; }
.panel.active .msg:nth-child(4) { animation-delay: 1.2s; }

/* ---------- Agents IA (sombre) ---------- */
#agents { overflow: hidden; }
#agents .container { position: relative; }
.agents-photo {
  position: absolute; inset: 0; pointer-events: none;
  background: url('https://images.unsplash.com/photo-1620712943543-bcc4688e7485?auto=format&fit=crop&w=1600&q=70') right center / contain no-repeat;
  opacity: .28;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
}
#agents::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 400px at 90% 0%, rgba(139, 92, 246, .2), transparent 70%), radial-gradient(600px 400px at 0% 100%, rgba(34, 211, 238, .12), transparent 70%); }
.agents { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.agent { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .3s, border-color .3s; }
.agent:hover { transform: translateY(-6px); border-color: rgba(52, 211, 153, .45); }
.agent .status { position: absolute; top: 22px; right: 22px; }
.agent h3 { font-size: 1.2rem; margin-bottom: 8px; }
.agent p { color: var(--muted); font-size: .92rem; }
.agent-count { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem !important; }
.agent-count strong { display: block; font: 700 1.8rem var(--font-title); color: var(--text); }

/* ---------- Simulateur ---------- */
.calc { padding: 34px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 24px; }
.calc label { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; font-size: .95rem; color: var(--muted); }
.calc label input { grid-column: 1 / -1; }
.calc output { font: 700 1.05rem var(--font-title); color: var(--text); }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--violet) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--violet); cursor: pointer; box-shadow: 0 0 12px rgba(124, 58, 237, .5); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--violet); cursor: pointer; }
.calc-result { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-result div { padding: 20px; border-radius: 16px; background: var(--surface-2); border: 1px solid rgba(124, 58, 237, .2); }
.calc-result strong { display: block; font: 700 2.4rem var(--font-title); background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-result span { font-size: .85rem; color: var(--muted); }
.calc .btn { justify-self: start; }
.calc-photo { position: relative; margin-top: 30px; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.calc-photo img { display: block; width: 100%; height: 260px; object-fit: cover; }
.calc-photo figcaption {
  position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  background: rgba(255, 255, 255, .92); color: #0f0d1f; backdrop-filter: blur(6px);
}

/* ---------- Réalisations ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case { padding: 14px 14px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s; }
.case:hover { transform: translateY(-6px); }
.case-visual { height: 220px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px; overflow: hidden; position: relative; }
.case-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case:hover .case-visual img { transform: scale(1.06); }
.case-visual::after { content: ''; position: absolute; inset: 0; opacity: .62; background: var(--tint); }
.case-visual span { position: relative; z-index: 1; font: 700 3.6rem var(--font-title); color: #fff; text-shadow: 0 10px 40px rgba(0,0,0,.35); transition: transform .5s; }
.case:hover .case-visual span { transform: scale(1.15) rotate(-4deg); }
.v1 { --tint: linear-gradient(135deg, #0ea5e9, #8b5cf6); }
.v2 { --tint: linear-gradient(135deg, #ec4899, #f59e0b); }
.v3 { --tint: linear-gradient(135deg, #10b981, #0ea5e9); }
.case-tag { padding-inline: 12px; font-size: .78rem; color: var(--eyebrow); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.case h3 { padding-inline: 12px; font-size: 1.2rem; }

/* ---------- Parcours ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tl-line { position: absolute; top: 28px; left: 12%; right: 12%; height: 2px; background: var(--line); }
.tl-line span { display: block; height: 100%; width: 0; background: var(--gradient); transition: width .2s linear; }
.tl-step { position: relative; text-align: center; }
.tl-dot { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; font: 700 1rem var(--font-title); background: var(--bg); border: 2px solid var(--line); transition: .4s; }
.tl-step.lit .tl-dot { color: #fff; border-color: transparent; background: var(--gradient); box-shadow: 0 0 30px rgba(124, 58, 237, .45); }
.tl-step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.tl-step p { color: var(--muted); font-size: .92rem; }

/* ---------- Appel à l'action (bloc sombre) ---------- */
.cta { padding: 40px 0 120px; }
.cta .container {
  position: relative; overflow: hidden; text-align: center; padding: 90px 30px; border-radius: 32px;
  background: radial-gradient(600px 300px at 20% 0%, rgba(34, 211, 238, .25), transparent 70%), radial-gradient(600px 300px at 80% 100%, rgba(236, 72, 153, .3), transparent 70%), var(--bg-alt);
  border: 1px solid var(--line);
}
.cta-photo {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: url('https://images.unsplash.com/photo-1674027444485-cec3da58eef4?auto=format&fit=crop&w=1600&q=70') center / cover no-repeat;
  opacity: .3; mix-blend-mode: screen;
}
.cta .container > :not(.cta-photo) { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin-bottom: 16px; }
.cta .muted { margin-bottom: 34px; }

/* ---------- Contact ---------- */
.contact-info { list-style: none; margin-top: 30px; display: grid; gap: 14px; }
.contact-info li { display: flex; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-info span { width: 130px; flex-shrink: 0; color: var(--muted); font-size: .9rem; }
/* Formulaire : version sombre Komynova (bleu nuit → violet) */
.form {
  display: grid; gap: 18px; padding: 36px; border-radius: 24px; color: #f3f3ff;
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(34, 211, 238, .22), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgba(236, 72, 153, .22), transparent 70%),
    linear-gradient(135deg, #1c2565 0%, #27206f 50%, #431f78 100%);
  border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 60px -25px rgba(39, 32, 111, .7);
}
.form label { display: grid; gap: 8px; font-size: .9rem; font-weight: 500; color: #d9d6f5; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font: inherit; color: #fff;
  background: rgba(6, 6, 26, .35); border: 1px solid rgba(255, 255, 255, .16); transition: border-color .2s, box-shadow .2s;
}
.form select option { background: #1c2565; color: #fff; }
.form ::placeholder { color: rgba(255, 255, 255, .45); }
.form .form-msg { color: #34d399; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .2); }
.form-msg { color: var(--ok); font-size: .92rem; }

/* ---------- Pied de page (sombre) ---------- */
.footer { padding: 70px 0 30px; background: #04040f; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid .muted { margin-top: 16px; max-width: 320px; font-size: .92rem; }
.footer h4 { font-size: .95rem; margin-bottom: 16px; }
.footer-grid div > a:not(.logo) { display: block; color: var(--muted); font-size: .92rem; margin-bottom: 10px; transition: color .2s; }
.footer-grid div > a:not(.logo):hover { color: var(--text); }
.footer-bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
.services .reveal:nth-child(3n+2), .agents .reveal:nth-child(2), .cases .reveal:nth-child(2) { transition-delay: .1s; }
.services .reveal:nth-child(3n), .agents .reveal:nth-child(3), .cases .reveal:nth-child(3) { transition-delay: .2s; }
.agents .reveal:nth-child(4) { transition-delay: .3s; }

/* ---------- Animations ---------- */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); } 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes pulseBig { 0%, 100% { box-shadow: 0 0 40px rgba(139, 92, 246, .45); } 50% { box-shadow: 0 0 80px rgba(236, 72, 153, .55); } }
@keyframes blink { 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Tablette ---------- */
@media (max-width: 1000px) {
  .hero-grid, .split, .seq-grid { grid-template-columns: 1fr; gap: 50px; }
  .services, .cases { grid-template-columns: 1fr 1fr; }
  .agents { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* La méthode s'affiche en simple liste */
  .seq { height: auto; padding: 110px 0; }
  .seq-sticky { position: static; height: auto; }
  .seq-progress, .seq-visual { display: none; }
  .seq-steps { margin-top: 36px; }
  .seq-steps li { opacity: 1; background: var(--surface); border-color: var(--line); }
  .seq-steps p { max-height: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .menu {
    position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 20px 24px; transform: translateY(calc(-100% - 90px)); visibility: hidden;
    transition: transform .35s, visibility .35s; z-index: -1;
  }
  .menu.open { transform: none; visibility: visible; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 18px; justify-content: center; }
  .header:has(.menu.open) { background: var(--bg); }
  .hero { padding-top: 120px; }
  .services, .cases, .agents { grid-template-columns: 1fr; }
  .agents-mini { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; text-align: left; gap: 30px; }
  .tl-line { display: none; }
  .tl-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; text-align: left; }
  .tl-dot { grid-row: span 2; margin: 0; }
  .section { padding: 90px 0; }
  .calc-result { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Respecte les personnes qui préfèrent moins d'animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =================== TOUCHES 3D =================== */
/* Scènes 3D (Three.js) */
#nova3d, #cta3d { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#nova3d { display: none; }
.has-3d #nova3d { display: block; }
.has-3d #network { display: none; }
#cta3d { z-index: 0; opacity: .85; }

/* Tableau de bord présenté en 3D */
.dash-scene { perspective: 1400px; position: relative; }
.dash-3d {
  position: relative; transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(6deg);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.dash-3d .dash { transform-style: preserve-3d; }
.chip3d {
  position: absolute; z-index: 2; padding: 10px 16px; border-radius: 14px;
  font: 600 .82rem 'Inter', sans-serif; color: #0f0d1f; white-space: nowrap;
  background: rgba(255, 255, 255, .92); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 20px 40px -12px rgba(10, 5, 40, .55);
  pointer-events: none;
}
.chip3d.c1 { top: 18%; left: -48px; transform: translateZ(90px); animation: chipA 6s ease-in-out infinite; }
.chip3d.c2 { bottom: 22%; right: -36px; transform: translateZ(120px); animation: chipB 7s ease-in-out infinite; }
.chip3d.c3 { top: -18px; right: 18%; transform: translateZ(60px); animation: chipC 5s ease-in-out infinite; }
@keyframes chipA { 50% { transform: translateZ(90px) translateY(-10px); } }
@keyframes chipB { 50% { transform: translateZ(120px) translateY(10px); } }
@keyframes chipC { 50% { transform: translateZ(60px) translateY(-8px); } }

/* Cartes inclinables : réaction rapide pendant le survol */
.tilting { transition: transform .15s ease-out, border-color .3s, box-shadow .3s !important; will-change: transform; }

/* Méthode : l'anneau du hub couché en 3D */
.hub { perspective: 700px; }
.hub::before { transform: rotateX(62deg); animation: spin3d 30s linear infinite; }
.hub::after {
  content: ''; position: absolute; inset: 22% 18%; border-radius: 50%;
  border: 1px solid rgba(236, 72, 153, .35); transform: rotateX(62deg) rotateY(20deg);
  animation: spin3d2 22s linear infinite reverse;
}
@keyframes spin3d { to { transform: rotateX(62deg) rotateZ(360deg); } }
@keyframes spin3d2 { to { transform: rotateX(62deg) rotateY(20deg) rotateZ(360deg); } }

/* Grand titre de l'accueil : légère profondeur */
.hero h1 { text-shadow: 0 1px 0 rgba(255, 255, 255, .08), 0 18px 40px rgba(10, 5, 40, .45); }

@media (max-width: 1000px) {
  .dash-3d { transform: rotateY(-6deg) rotateX(4deg); }
  .chip3d.c1 { left: -8px; }
  .chip3d.c2 { right: -8px; }
}
@media (max-width: 760px) {
  .dash-3d { transform: none; }
  .chip3d { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-3d { transform: rotateY(-8deg) rotateX(4deg); }
}

/* 🔒 Champ piège anti-robots : invisible pour les humains */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =================== À PROPOS / FONDATEUR =================== */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }
.about-lead { font-size: 1.15rem; font-weight: 500; margin: 22px 0 14px; }
.about-points { list-style: none; display: grid; gap: 12px; margin: 26px 0 34px; }
.about-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.about-points span {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%;
  font-size: .75rem; color: var(--ok); background: var(--ok-bg);
}
.about-photo { position: relative; max-width: 420px; justify-self: end; width: 100%; }
.about-photo::before {
  content: ''; position: absolute; inset: -14px -14px 14px 14px; border-radius: calc(var(--radius) + 6px);
  background: var(--gradient); opacity: .9; z-index: 0;
}
.about-photo img {
  position: relative; z-index: 1; display: block; width: 100%; height: auto;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.about-photo figcaption {
  position: absolute; z-index: 2; left: -24px; bottom: 28px;
  display: flex; flex-direction: column; padding: 12px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .95); color: #0f0d1f; box-shadow: 0 20px 40px -12px rgba(10, 5, 40, .35);
  font-size: .85rem; line-height: 1.35;
}
.about-photo figcaption strong { font-family: var(--font-title); font-size: 1.05rem; }
.about-photo figcaption span { color: #5d5a75; }
.about-photo.reveal { transition-delay: .15s; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 56px; }
  .about-photo { order: -1; justify-self: center; max-width: 340px; }
  .about-photo figcaption { left: 12px; bottom: 16px; }
}

/* ===== Petite note sous le formulaire + lien du pied de page ===== */
.form-note { font-size: .82rem; color: #c9c6ea; margin-top: 4px; }
.form-note a, .footer-bottom a { color: inherit; text-decoration: underline; }

/* ===== Page « Politique de confidentialité » ===== */
.legal-header { position: sticky; }
.legal { padding-top: 70px; }
.legal-body { max-width: 780px; }
.legal-body h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 10px 0 8px; }
.legal-body h2 { font-size: 1.3rem; margin: 38px 0 10px; }
.legal-body p { margin: 10px 0; line-height: 1.7; }
.legal-body ul { margin: 8px 0 8px 22px; line-height: 1.7; }
.legal-body a:not(.btn) { color: var(--eyebrow); text-decoration: underline; }
.legal-back { margin-top: 44px; }

/* ===== Coordonnées : lisibles sur petit téléphone (l'e-mail ne déborde plus) ===== */
.contact-info a { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 520px) {
  .contact-info li { flex-direction: column; gap: 4px; }
  .contact-info span { width: auto; }
}
