/* =====================================================
   VIRGULE STUDIO — v2
   Système de design enrichi (palette + contrastes)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #0a0a0a;
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }

/* ===== TOKENS — v2 enrichis ===== */
:root {
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --gray-900: #262626;
  --gray-700: #404040;
  --gray-500: #737373;
  --gray-400: #a3a3a3;
  --gray-300: #c4c4c4;
  --gray-200: #dadada;
  --gray-100: #f0f0f0;
  --gray-50: #f7f7f7;

  /* Fonds variés */
  --paper: #fefdfb;
  --cream: #f5efe2;
  --cream-deep: #ede4d0;
  --sand: #ebe4d5;

  /* Couleurs accent */
  --indigo: #1e2a78;
  --indigo-deep: #141d54;
  --indigo-soft: #dde0ee;
  --indigo-vivid: #2e3eaa;

  /* Accent secondaire chaud */
  --terra: #c4956c;
  --terra-soft: #e8d4ba;

  /* Vert acide pour vie & ponctuation discrète */
  --accent-green: #5e7c4a;

  --font-sans: 'Inter Tight', -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1280px;
  --container-narrow: 980px;
  --container-tight: 720px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --shadow-card: 0 1px 2px rgba(10,10,10,0.04);
  --shadow-card-hover: 0 12px 32px rgba(30, 42, 120, 0.12), 0 4px 8px rgba(10,10,10,0.06);
}

/* ===== LAYOUT ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 32px; }

@media (max-width: 768px) {
  .container, .container-narrow, .container-tight { padding: 0 20px; }
}

/* ===== TYPO ===== */
h1, h2, h3, h4, h5 { font-family: var(--font-sans); font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; color: var(--ink); }
.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--indigo);
}

.virgule { color: var(--indigo); font-weight: 500; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.25s var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--indigo); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(30,42,120,0.25); }
.btn-primary .arrow { transition: transform 0.25s var(--ease-out); }
.btn-primary:hover .arrow { transform: translate(3px, -3px); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--gray-300); }
.btn-secondary:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); padding: 8px 0; font-size: 14px; border-radius: 0; }
.btn-ghost .arrow { transition: transform 0.25s var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-large { padding: 18px 28px; font-size: 15px; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(254, 253, 251, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease-out);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}

/* Logo image v2 */
.logo {
  display: inline-flex;
  align-items: center;
  height: 36px;
  flex-shrink: 0;
}
.logo img {
  height: 100%;
  width: auto;
  display: block;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 13.5px;
  color: var(--gray-700);
  font-weight: 400;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: var(--indigo);
}

/* Dropdown expertises */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--paper);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--gray-700);
  transition: all 0.2s;
}
.nav-dropdown-link:hover { background: var(--indigo-soft); color: var(--indigo-deep); }
.nav-dropdown-link .ind {
  width: 4px; height: 4px;
  background: var(--indigo);
  border-radius: 50%;
  opacity: 0.5;
}

.lang-toggle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-400);
  padding-left: 16px;
  border-left: 1px solid var(--gray-200);
  cursor: default;
}
.lang-toggle .active-lang { color: var(--ink); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  font-size: 13px;
  border-radius: 5px;
  transition: all 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--indigo); transform: translateY(-1px); }

.menu-toggle {
  display: none;
  width: 32px; height: 32px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 110;
}
.menu-toggle span {
  width: 18px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.menu-toggle span::before, .menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease-out);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle.is-open span { background: transparent; }
.menu-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.menu-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta { padding: 8px 14px; font-size: 12.5px; }
  .header-inner { padding: 12px 20px; }
}

/* Mobile menu */
.mobile-nav {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  z-index: 99;
  padding: 32px 20px 80px 20px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  padding: 14px 16px;
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--gray-200);
}
.mobile-nav a.section-header {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-top: 24px;
  border: none;
  padding-bottom: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--ink);
  color: var(--gray-300);
  padding: 80px 0 32px 0;
  margin-top: 120px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
  position: relative;
}
.footer-brand-block { max-width: 360px; }
.footer-logo {
  display: inline-block;
  margin-bottom: 24px;
  height: 40px;
}
.footer-logo img {
  height: 100%;
  width: auto;
  display: block;
  filter: invert(1) brightness(1.1);
  opacity: 0.95;
}
.footer-tagline { font-size: 14px; line-height: 1.6; color: var(--gray-400); margin-bottom: 24px; }
.footer-address { font-family: var(--font-mono); font-size: 11px; color: var(--gray-500); line-height: 1.8; }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 13.5px; color: var(--gray-300); transition: color 0.2s; }
.footer-link:hover { color: var(--paper); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid #262626;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gray-500);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--paper); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; }
}

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== SECTIONS ===== */
.section { padding: 120px 0; }
.section-tight { padding: 80px 0; }
.section-header { margin-bottom: 64px; max-width: 720px; }
.section-header .eyebrow { margin-bottom: 20px; }
.section-title { font-size: clamp(36px, 4.5vw, 56px); line-height: 1.02; margin-bottom: 20px; }
.section-subtitle { font-size: 17px; color: var(--gray-700); line-height: 1.55; max-width: 580px; }

/* Variantes de fond */
.section-cream { background: var(--cream); }
.section-sand { background: var(--sand); }
.section-indigo { background: var(--indigo); color: var(--paper); }
.section-indigo h2, .section-indigo h3 { color: var(--paper); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: var(--paper); }

/* ===== PAGE WRAPPER ===== */
.page { padding-top: 64px; }

/* ===== CURSOR ===== */
@media (hover: hover) and (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    will-change: transform;
  }
  .cursor-dot {
    width: 5px; height: 5px;
    background: var(--indigo);
    transition: transform 0.1s var(--ease-out), opacity 0.2s;
  }
  .cursor-ring {
    width: 28px; height: 28px;
    border: 1px solid var(--ink);
    transition: width 0.25s, height 0.25s, opacity 0.2s, background 0.25s;
  }
  body.cursor-hover .cursor-ring {
    width: 44px; height: 44px;
    background: rgba(30, 42, 120, 0.08);
    border-color: var(--indigo);
  }
}
@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ===== Signature graphique virgule (rappels) ===== */
.virgule-mark-divider {
  padding: 60px 0;
  text-align: center;
}
.virgule-mark-divider img {
  width: 56px;
  height: auto;
  margin: 0 auto;
  opacity: 0.4;
  display: block;
}

/* ===== VENDOR PILL — mention récurrente ===== */
.vendor-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--terra-soft);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  border-radius: 100px;
  border: 1px solid rgba(196,149,108,0.3);
}
.vendor-note::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terra);
}

/* ===== WIDGET RAPPEL — bouton flottant ===== */
.callback-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(30,42,120,0.35);
  transition: all 0.3s var(--ease-out);
  border: none;
  animation: fab-pulse 2.5s infinite;
}
.callback-fab:hover {
  background: var(--indigo-deep);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(30,42,120,0.45);
}
.callback-fab svg { width: 24px; height: 24px; }
@keyframes fab-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(30,42,120,0.35), 0 0 0 0 rgba(30,42,120,0.4); }
  50% { box-shadow: 0 8px 24px rgba(30,42,120,0.35), 0 0 0 12px rgba(30,42,120,0); }
}

@media (max-width: 768px) {
  .callback-fab { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* Modale rappel */
.callback-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.callback-overlay.is-open { display: flex; animation: fade-in 0.25s; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.callback-modal {
  background: var(--paper);
  border-radius: 8px;
  padding: 40px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  animation: modal-in 0.35s var(--ease-out);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.callback-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  color: var(--gray-500);
  transition: all 0.2s;
}
.callback-close:hover { background: var(--gray-100); color: var(--ink); }

.callback-modal h3 {
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.callback-modal h3 .serif { color: var(--gray-500); }
.callback-modal .intro {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.55;
  margin-bottom: 28px;
}
.callback-form-group { margin-bottom: 18px; }
.callback-form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  margin-bottom: 8px;
}
.callback-form-group input,
.callback-form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  transition: all 0.2s;
}
.callback-form-group input:focus,
.callback-form-group textarea:focus {
  outline: none;
  border-color: var(--indigo);
  background: var(--paper);
}
.callback-form-group textarea { min-height: 80px; resize: vertical; }

.callback-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}
.callback-slot {
  padding: 9px 8px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 6px;
  text-align: center;
  font-size: 12.5px;
  color: var(--gray-700);
  cursor: pointer;
  transition: all 0.2s;
}
.callback-slot:hover { border-color: var(--ink); }
.callback-slot.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.callback-slot-custom { grid-column: 1 / -1; margin-top: 4px; }
.callback-slot-custom input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  border-radius: 6px;
  font-size: 13px;
  color: var(--ink);
  font-family: var(--font-sans);
}

.callback-submit {
  width: 100%;
  padding: 15px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  margin-top: 12px;
}
.callback-submit:hover { background: var(--indigo); }
.callback-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.callback-success {
  text-align: center;
  padding: 24px 0;
}
.callback-success .check-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-green);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.callback-success h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.callback-success p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.55;
}

/* Page hero générique */
.page-hero {
  padding: 100px 0 60px 0;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  align-items: end;
}
.page-hero h1 {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.page-hero h1 .serif { color: var(--gray-500); }
.page-hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.8;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}
.page-hero-meta strong { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
