/* ============================================================
   Dr François Lozach — Design System
   Off-white créme · Encre profonde · Or chaud
   ============================================================ */

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

/* Soft dynamic animation — gentle wave */
@keyframes softDynamic {
  0%, 100% { transform: translateY(0) skewX(0deg); letter-spacing: 0; }
  25%      { transform: translateY(-4px) skewX(-1.5deg); letter-spacing: 0.005em; }
  50%      { transform: translateY(0) skewX(0deg); letter-spacing: 0; }
  75%      { transform: translateY(2px) skewX(1deg); letter-spacing: -0.003em; }
}
.soft-dynamic {
  animation: softDynamic 7s var(--ease-in-out) infinite;
  transform-origin: center center;
  will-change: transform, letter-spacing;
}

:root {
  /* Palette — bleu tech, futuriste, sportif */
  --bg: #0a0e1a;             /* fond profond bleu nuit */
  --bg-deep: #060912;         /* plus profond */
  --bg-light: #f4f7fb;        /* light surface */
  --ink: #e8eef7;             /* texte clair */
  --ink-2: #a8b4c8;
  --muted: #6a7689;
  --line: rgba(120, 160, 220, 0.15);
  --gold: #00d4ff;            /* cyan électrique */
  --gold-deep: #0099cc;       /* deep cyan */
  --rose: #4a7fff;            /* bleu vif */
  --olive: #7c5cff;           /* violet electric */
  --bone: #f4f7fb;

  /* Type */
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(120, 160, 220, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}

body {
  cursor: none;
}

@media (max-width: 900px) {
  body { cursor: auto; }
}

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

/* ============== TYPE ============== */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.sans  { font-family: var(--sans); }
.mono  { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: 0.95; }

.display {
  font-family: var(--serif);
  font-size: clamp(36px, 11vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.italic { font-style: italic; }

/* ============== LAYOUT ============== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
}

section {
  position: relative;
  padding: 120px 0;
}

@media (max-width: 720px) {
  section { padding: 80px 0; }
}

/* ============== CUSTOM CURSOR ============== */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.7);
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s;
}
.cursor-ring.hover {
  width: 64px;
  height: 64px;
  border-color: rgba(255,255,255,1);
}

/* ============== NAV ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(10,14,26,0.85), rgba(10,14,26,0));
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid transparent;
}
.nav.dark {
  background: linear-gradient(180deg, rgba(20,19,17,0.85), rgba(20,19,17,0));
  color: var(--bone);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .mark {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--gold) 0%, var(--gold-deep) 70%);
  position: relative;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.55), 0 0 0 1px rgba(0, 212, 255, 0.4);
  flex-shrink: 0;
  animation: mark-pulse 3.4s ease-in-out infinite;
}
.nav-logo .mark::before {
  /* outer rotating ring with notches */
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 255, 0.55);
  animation: mark-rotate 7s linear infinite;
}
.nav-logo .mark::after {
  /* inner core: dark dot, with a small bright orbital pip */
  content: '';
  position: absolute;
  inset: 8px;
  background: var(--bg);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.5),
    0 0 0 0 rgba(0, 212, 255, 0);
}
.nav-logo:hover .mark {
  animation-duration: 1.6s;
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.85), 0 0 0 1px rgba(0, 212, 255, 0.7);
}
.nav-logo:hover .mark::before { animation-duration: 2.2s; }
.nav-logo:hover .mark::after {
  box-shadow:
    inset 0 0 0 1px rgba(0, 212, 255, 0.8),
    0 0 8px rgba(0, 212, 255, 0.6);
}
@keyframes mark-rotate {
  to { transform: rotate(360deg); }
}
@keyframes mark-pulse {
  0%, 100% { box-shadow: 0 0 22px rgba(0, 212, 255, 0.45), 0 0 0 1px rgba(0, 212, 255, 0.4); }
  50% { box-shadow: 0 0 36px rgba(0, 212, 255, 0.85), 0 0 0 1px rgba(0, 212, 255, 0.7); }
}
.nav-logo .mark .mark-orbit {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 212, 255, 0.18);
  animation: mark-rotate 11s linear infinite reverse;
  pointer-events: none;
}
.nav-logo .mark .mark-orbit::before {
  /* small bright orbital pip on the outer ring */
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}
.nav-logo .mark .mark-pip {
  /* central bright dot */
  position: absolute;
  inset: 13px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: mark-pip-blink 2.4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.nav-logo:hover .mark .mark-orbit { animation-duration: 3.5s; }
@keyframes mark-pip-blink {
  0%, 100% { opacity: 0.9; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
/* Floating Doctolib button */
.doctolib-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  background: #00bfa5;
  color: #000;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 30px;
  box-shadow: 0 8px 32px rgba(0, 191, 165, 0.35);
  animation: doctolib-pulse 3s ease-in-out infinite;
  transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}
.doctolib-float:hover {
  background: #fff;
  color: #000;
  animation-play-state: paused;
}
@keyframes doctolib-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@media (max-width: 720px) {
  .doctolib-float {
    left: 16px;
    right: 16px;
    bottom: 16px;
    text-align: center;
    padding: 16px;
    border-radius: 12px;
  }
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.nav.dark .nav-cta:hover {
  background: var(--bone);
  color: var(--ink);
  border-color: var(--bone);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
}

/* ============== HAMBURGER BUTTON ============== */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 200;
}
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  .nav-cta { display: none; }
}
.bar {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  transform-origin: center;
}
.bar1.open { transform: translateY(6.5px) rotate(45deg); }
.bar2.open { opacity: 0; transform: scaleX(0); }
.bar3.open { transform: translateY(-6.5px) rotate(-45deg); }

/* ============== MOBILE MENU OVERLAY ============== */
.nav-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(6, 9, 18, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.nav-mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 100vw);
  height: 100dvh;
  background: var(--bg-deep);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 24px 28px 40px;
  overflow-y: auto;
  z-index: 160;
  animation: slideIn 0.35s var(--ease-out);
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);   opacity: 1; }
}
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}
.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.nav-mobile-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--serif);
  font-size: clamp(28px, 7vw, 38px);
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  animation: fadeUp 0.4s var(--ease-out) both;
  transition: color 0.2s;
}
.nav-mobile-links a:hover,
.nav-mobile-links a.active { color: var(--gold); }
.nav-mobile-num {
  font-size: 11px;
  color: var(--gold);
  opacity: 0.7;
  min-width: 24px;
}
.nav-mobile-cta {
  margin-top: 40px;
  text-align: center;
  justify-content: center;
  width: 100%;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 30px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #001318;
  font-weight: 600;
  box-shadow: 0 8px 32px -8px rgba(0, 212, 255, 0.6), 0 0 0 1px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  background: #1ee5ff;
  box-shadow: 0 12px 40px -8px rgba(0, 212, 255, 0.8), 0 0 0 1px rgba(0, 212, 255, 0.5);
}
.btn-outline {
  border: 1px solid var(--ink-2);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn .arrow {
  width: 16px; height: 16px;
  transition: transform 0.4s var(--ease-out);
}
.btn:hover .arrow { transform: translate(3px, -3px); }

/* ============== SECTION LABEL ============== */
.eyebrow {
  font-family: var(--mono);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  margin-bottom: 32px;
  font-weight: 500;
  letter-spacing: 0.12em;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow.center { justify-content: center; text-align: center; }
.eyebrow.gold { color: var(--gold); }
.eyebrow.bone { color: var(--bone); opacity: 0.7; }

/* ============== MARQUEE ============== */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  background: rgba(0, 212, 255, 0.03);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 60px;
  flex-shrink: 0;
}
.marquee-item .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

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

.line-mask { overflow: hidden; }
.line-mask > * {
  display: block;
  transform: translateY(110%);
  transition: transform 1.2s var(--ease-out);
}
.line-mask.in > * { transform: translateY(0); }

/* ============== FOOTER ============== */
.footer {
  background: var(--bg-deep);
  color: var(--ink);
  padding: 100px 0 40px;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.footer-display {
  font-family: var(--serif);
  font-size: clamp(80px, 16vw, 280px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin-bottom: 80px;
  pointer-events: none;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  border-top: 1px solid rgba(253, 250, 243, 0.15);
  padding-top: 60px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-col h4 {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-col p, .footer-col a {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(253, 250, 243, 0.75);
  display: block;
  margin-bottom: 6px;
}
.footer-col a:hover { color: var(--bone); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid rgba(253,250,243,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(253,250,243,0.5);
}

/* ============== ANATOMY SVG STYLE ============== */
.anatomy-line {
  fill: none;
  stroke: var(--ink-2);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.anatomy-line.gold { stroke: var(--gold); }
.anatomy-line.thin { stroke-width: 0.5; opacity: 0.3; }

/* ============== PLACEHOLDER IMAGE ============== */
.ph {
  position: relative;
  background: linear-gradient(135deg, #0e1422 0%, #142038 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  color: var(--ink-2);
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,212,255,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,212,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}
.ph > * { position: relative; z-index: 1; }
.ph.dark {
  background: linear-gradient(135deg, #060912 0%, #0e1830 100%);
  color: rgba(232,238,247,0.4);
}

/* ============== UTILS ============== */
.flex { display: flex; }
.col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.gap-48 { gap: 48px; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.bone { background: var(--bg-deep); }
.deep { background: var(--bg-deep); color: var(--ink); }

/* ============================================================
   Decorative blob accents
   ============================================================ */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.blob-gold { background: rgba(0, 212, 255, 0.18); }
.blob-rose { background: rgba(74, 127, 255, 0.18); }
.blob-olive { background: rgba(124, 92, 255, 0.15); }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.3);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.tag-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.card-warm {
  background: linear-gradient(180deg, rgba(20,28,48,0.6), rgba(10,14,26,0.4));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px -12px rgba(0, 212, 255, 0.2), 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.card-warm:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 16px 40px -16px rgba(0, 212, 255, 0.4), 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   Scrollbar
   ============================================================ */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; border: 3px solid var(--bg); }
