/* ============================================================
   style.css — debernardi.li
   Design system: dark navy, Cormorant Garamond + DM Sans
   Accent: warm gold #C9A96E
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:           #111540;
  --bg-alt:       #141946;
  --bg-card:      #181D52;
  --text:         #F4EDDE;
  --text-muted:   rgba(244, 237, 222, 0.72);
  --text-dim:     rgba(244, 237, 222, 0.48);
  --accent:       #C9A96E;
  --accent-hover: #D9BC84;
  --accent-dim:   rgba(201, 169, 110, 0.14);
  --accent-mid:   rgba(201, 169, 110, 0.38);
  --border:       rgba(244, 237, 222, 0.09);
  --border-hover: rgba(244, 237, 222, 0.18);

  --font-h: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'DM Sans', system-ui, -apple-system, sans-serif;

  --nav-h: 72px;
  --max-w: 1240px;
  --pad:   clamp(1.25rem, 5vw, 4rem);

  --ease-out:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: auto; /* Lenis handles smooth scroll */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body { height: auto; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none; /* custom cursor replaces */
}

@media (pointer: coarse) {
  body { cursor: auto; }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; font: inherit; color: inherit; }
ul { list-style: none; }

/* ── LAYOUT ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section-alt { background-color: var(--bg-alt); }

/* ── CUSTOM CURSOR ───────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: translate(-50%, -50%);
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(201, 169, 110, 0.55);
  transform: translate(-50%, -50%);
}

.cursor-dot.hover  { transform: translate(-50%, -50%) scale(2); background: var(--accent); }
.cursor-ring.hover { transform: translate(-50%, -50%) scale(1.6); border-color: var(--accent); opacity: 0.6; }

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-h); font-weight: 400; line-height: 1.1; }

.section-eyebrow {
  display: block;
  font-family: var(--font-b);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 400;
  color: var(--text);
  max-width: 700px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.8em 1.8em;
  border-radius: 4px;
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: background 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  cursor: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── HEADER / NAV ────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease;
}

#header.scrolled {
  background-color: rgba(11, 15, 42, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav-logo {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links .nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  padding: 0.45em 1.1em;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.nav-links .nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.nav-links .nav-cta::after { display: none; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.35em 0.75em;
  border-radius: 3px;
  transition: all 0.2s;
  cursor: none;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  cursor: none;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-photo-wrap {
  position: absolute;
  right: 0;
  top: 0;
  width: 58%;
  height: 100%;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    var(--bg) 28%,
    rgba(11, 15, 42, 0.88) 52%,
    rgba(11, 15, 42, 0.35) 75%,
    rgba(11, 15, 42, 0.15) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: var(--nav-h);
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0;
}

.hero-name {
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 2rem;
}

.hero-name-line {
  display: block;
  opacity: 0;
}

.hero-tagline {
  font-family: var(--font-h);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  opacity: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: var(--pad);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
}

.scroll-line-anim {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-rl;
}

/* ── SCROLL REVEAL ───────────────────────────────────────── */
/* Elements are visible by default. JS progressively enhances with .hidden/.visible. */
.reveal-up { opacity: 1; transform: none; }

/* When JS is running and observer is ready */
.js-ready .reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.js-ready .reveal-up.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .js-ready .reveal-up { opacity: 1; transform: none; transition: none; }
}

/* ── SERVICES ────────────────────────────────────────────── */
.services {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: var(--bg-card);
  padding: clamp(2rem, 4vw, 3rem);
  transition: background 0.3s ease;
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.service-card:hover { background: #131940; }
.service-card:hover::after { border-color: var(--accent-dim); }

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-h);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ── PARCOURS / TIMELINE ─────────────────────────────────── */
.parcours {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 32px 1fr;
  gap: 0 1.5rem;
  align-items: start;
  padding-bottom: 3rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-aside {
  padding-top: 0.15rem;
  text-align: right;
}

.timeline-period {
  font-family: var(--font-b);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  white-space: nowrap;
}

.timeline-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0.35rem;
}

.timeline-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--border-hover);
  background: var(--bg);
  position: relative;
  z-index: 1;
}

.timeline-dot.accent {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px rgba(201, 169, 110, 0.4);
}

.timeline-dot.dim {
  border-color: var(--border);
  opacity: 0.6;
}

.timeline-line {
  flex: 1;
  width: 1px;
  background: var(--border);
  min-height: 2rem;
  margin-top: 6px;
}

.timeline-item:last-child .timeline-line { display: none; }

.timeline-body { padding-bottom: 0.5rem; }

.timeline-company {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.timeline-role {
  font-family: var(--font-h);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.timeline-body > p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
}

/* Education list */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.edu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.edu-school {
  color: var(--text);
  font-weight: 400;
}

.edu-detail {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── OUTILS / TOOLBOX ────────────────────────────────────── */
.outils {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
}

.tool-category {}

.tool-cat-label {
  font-family: var(--font-b);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.9rem;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tool-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35em 0.9em;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.8rem;
  font-family: var(--font-b);
  font-weight: 300;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.tool-tag:hover {
  border-color: var(--accent-mid);
  color: var(--text);
}

.tool-tag-intj {
  border-color: var(--accent-mid);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.tool-tag-intj:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  padding: clamp(5rem, 10vw, 9rem) 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
  align-items: end;
}

.footer-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 2rem;
}

.footer-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 0.5rem;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-link:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-card-link {
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-card-link:hover { color: var(--accent); }

/* ── CHATBOT WIDGET ──────────────────────────────────────── */
.chatbot-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
}

.chatbot-toggle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(201, 169, 110, 0.35);
  transition: transform 0.25s var(--ease-back), box-shadow 0.25s ease;
  cursor: none;
  position: relative;
  z-index: 2;
}

.chatbot-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 32px rgba(201, 169, 110, 0.5);
}

.chatbot-toggle svg { width: 22px; height: 22px; }

.chatbot-toggle .icon-chat { display: block; }
.chatbot-toggle .icon-close { display: none; }

.chatbot-widget.open .chatbot-toggle .icon-chat  { display: none; }
.chatbot-widget.open .chatbot-toggle .icon-close { display: block; }

.chatbot-panel {
  position: absolute;
  bottom: calc(100% + 14px);
  right: 0;
  width: min(380px, calc(100vw - 2rem));
  background: var(--bg-alt);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  overflow: hidden;
  transform: scale(0.88) translateY(16px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s var(--ease-back), opacity 0.25s ease;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.chatbot-widget.open .chatbot-panel {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
}

.chatbot-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.chatbot-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.chatbot-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.chatbot-close-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  cursor: none;
}

.chatbot-close-btn:hover {
  color: var(--text);
  background: var(--border);
}

.chatbot-close-btn svg { width: 16px; height: 16px; }

.chatbot-messages {
  height: 320px;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }

.chat-msg {
  max-width: 85%;
  animation: msgIn 0.3s var(--ease-out);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.chat-msg p {
  font-size: 0.83rem;
  line-height: 1.6;
  padding: 0.7em 1em;
  border-radius: 10px;
}

.bot-msg { align-self: flex-start; }
.bot-msg p {
  background: var(--bg-card);
  color: var(--text);
  border-bottom-left-radius: 3px;
}

.user-msg { align-self: flex-end; }
.user-msg p {
  background: var(--accent-dim);
  color: var(--text);
  border: 1px solid var(--accent-mid);
  border-bottom-right-radius: 3px;
}

/* Typing indicator */
.typing-indicator {
  align-self: flex-start;
}

.typing-indicator p {
  display: none;
}

.typing-indicator::after {
  content: '';
  display: block;
  width: 46px;
  padding: 0.7em 1em;
  background: var(--bg-card);
  border-radius: 10px;
  border-bottom-left-radius: 3px;
}

.typing-dots {
  display: flex;
  gap: 4px;
  padding: 0.85em 1em;
  background: var(--bg-card);
  border-radius: 10px;
  border-bottom-left-radius: 3px;
  width: fit-content;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingDot 1.4s ease infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

.chatbot-input-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.chatbot-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6em 0.9em;
  font-family: var(--font-b);
  font-size: 0.83rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  cursor: text;
}

.chatbot-input::placeholder { color: var(--text-dim); }
.chatbot-input:focus { border-color: var(--accent-mid); }

.chatbot-send {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
  cursor: none;
}

.chatbot-send:hover { background: var(--accent-hover); transform: scale(1.05); }
.chatbot-send svg { width: 15px; height: 15px; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* Mobile nav overlay */
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 42, 0.97);
    backdrop-filter: blur(12px);
    gap: 2.5rem;
    z-index: 99;
    animation: navFadeIn 0.3s ease;
  }

  @keyframes navFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .nav-links.mobile-open a {
    font-size: 1.1rem;
    letter-spacing: 0.12em;
  }

  .hero-photo-wrap {
    width: 100%;
    opacity: 0.25;
  }

  .hero-overlay {
    background: rgba(11, 15, 42, 0.72);
  }

  .hero-content { max-width: 100%; }

  .hero-name { font-size: clamp(3.5rem, 14vw, 6rem); }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 32px 1fr;
    gap: 0 1rem;
  }

  .timeline-aside { display: none; }

  .timeline-dot-wrap { grid-column: 1; }

  .timeline-body {
    padding-left: 0;
    min-width: 0;
    grid-column: 2;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-right {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-scroll-hint { display: none; }

  .tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .chatbot-widget {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}

/* ── INTERACTIVE TOOL TAGS ───────────────────────────────── */
.tool-tag-interactive {
  border-color: var(--accent-mid);
  color: var(--accent);
  cursor: none;
  position: relative;
}

.tool-tag-interactive::after {
  content: '↗';
  font-size: 0.7em;
  margin-left: 0.35em;
  opacity: 0.75;
  display: inline-block;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}

.tool-tag-interactive:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.tool-tag-interactive:hover::after {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* INTJ already has its own accent color — no duplicate ::after needed */
.tool-tag-intj.tool-tag-interactive::after {
  content: '↗';
}

/* ── TOOL MODAL ───────────────────────────────────────────── */
.tool-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 42, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tool-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.tool-modal {
  background: var(--bg-alt);
  border: 1px solid var(--border-hover);
  border-radius: 14px;
  width: min(540px, 100%);
  padding: 2.25rem 2.5rem 2.5rem;
  position: relative;
  transform: translateY(22px) scale(0.96);
  transition: transform 0.32s var(--ease-back);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.tool-modal-overlay.open .tool-modal {
  transform: translateY(0) scale(1);
}

.tool-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  cursor: none;
}

.tool-modal-close:hover {
  color: var(--text);
  background: var(--border);
}

.tool-modal-close svg { width: 16px; height: 16px; }

.tool-modal-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.tool-modal-title {
  font-family: var(--font-h);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.tool-modal-body {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.tool-modal-body ul {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.tool-modal-body li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.tool-modal-body li::before {
  content: '—';
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.7;
  line-height: 1.75;
}

@media (max-width: 560px) {
  .tool-modal {
    padding: 1.75rem 1.5rem 2rem;
  }
}

/* ── SERVICE CARDS — CLICKABLE ───────────────────────────── */
.service-card[data-modal] {
  cursor: pointer;
}

.service-card[data-modal]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: inherit;
}

.service-card-arrow {
  position: absolute;
  bottom: 1.4rem;
  right: 1.5rem;
  width: 18px;
  height: 18px;
  color: var(--accent);
  opacity: 0;
  transform: translate(-5px, 5px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.service-card-arrow svg { width: 100%; height: 100%; }

.service-card[data-modal]:hover .service-card-arrow,
.service-card[data-modal]:focus-visible .service-card-arrow {
  opacity: 0.75;
  transform: translate(0, 0);
}

/* ── TOOL MODAL — SERVICE VARIANT ────────────────────────── */

/* Scroll wrapper: transparent pass-through for regular modals */
.tool-modal-scroll { /* no overflow by default */ }

/* Service modal: flex column, capped height, inner scroll */
.tool-modal--service {
  padding: 0;
  height: min(90vh, 740px);      /* hauteur définie → flex: 1 résolvable */
  max-height: min(90vh, 740px);  /* filet de sécurité viewports petits */
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tool-modal--service .tool-modal-close {
  /* keep close btn positioned against .tool-modal */
  top: 1.1rem;
  right: 1.1rem;
}

.tool-modal--service .tool-modal-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 2.25rem 2.5rem 1.25rem;
  overscroll-behavior: contain;
  /* subtle scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--border-hover) transparent;
}

.tool-modal--service .tool-modal-scroll::-webkit-scrollbar {
  width: 4px;
}
.tool-modal--service .tool-modal-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.tool-modal--service .tool-modal-scroll::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 2px;
}

/* CTA zone — hidden for regular modals */
.tool-modal-cta { display: none; }

.tool-modal--service .tool-modal-cta {
  display: block;
  flex-shrink: 0;
  padding: 1.25rem 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.tool-modal-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-b);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s ease, background 0.2s ease;
  cursor: none;
}

.tool-modal-cta-btn:hover { opacity: 0.85; }

.tool-modal-cta-btn svg { flex-shrink: 0; }

/* ── SERVICE MODAL BODY SECTIONS ─────────────────────────── */
.service-section {
  margin-bottom: 1.5rem;
}

.service-section-label {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin-bottom: 0.65rem;
}

.service-format {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: rgba(244, 237, 222, 0.04);
  border-left: 2px solid var(--accent-mid);
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.service-price-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.55;
  line-height: 1.55;
}

/* ── MOBILE ADJUSTMENTS FOR SERVICE MODAL ────────────────── */
@media (max-width: 560px) {
  .tool-modal--service {
    height: min(92vh, 740px);
    max-height: min(92vh, 740px);
  }

  .tool-modal--service .tool-modal-scroll {
    padding: 1.75rem 1.5rem 1rem;
  }

  .tool-modal--service .tool-modal-cta {
    padding: 1rem 1.5rem 1.5rem;
  }
}

/* ── LOW-PERF MODE ────────────────────────────────────────── */
.low-perf body { cursor: auto; }
.low-perf button, .low-perf .btn, .low-perf a,
.low-perf .lang-toggle, .low-perf .nav-burger,
.low-perf .chatbot-toggle, .low-perf .chatbot-close-btn,
.low-perf .chatbot-send, .low-perf .chatbot-input,
.low-perf .tool-modal-close, .low-perf .tool-modal-cta-btn { cursor: pointer; }
.low-perf .chatbot-input { cursor: text; }

.low-perf .cursor-dot,
.low-perf .cursor-ring { display: none !important; }

.low-perf #header.scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: rgba(17, 21, 64, 0.96);
}

.low-perf .tool-modal-overlay {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(17, 21, 64, 0.92);
}

.low-perf .nav-links.mobile-open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: rgba(17, 21, 64, 0.98);
}

.low-perf .hero-photo { will-change: auto; }
.low-perf .scroll-line-anim { animation: none; opacity: 0.4; }
.low-perf .status-dot { animation: none; }
.low-perf .chat-msg { animation: none; }

/* ── UTILITY ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
