/* ============================================================
   Dochot Consulting — site vitrine
   Tokens, typographie, layout, système d'animations
   Structure inspirée du site De Bouche à Oreille,
   habillée aux couleurs du logo DC (navy → bleu → cyan).
   ============================================================ */

:root {
  /* fonds clairs */
  --cream:      #FFFFFF;
  --cream-2:    #F3F7FC;
  --paper:      #FFFFFF;
  --offwhite:   #E9F1FA;

  /* encre / navy du logo */
  --ink:        #0B1524;
  --ink-2:      #060D18;
  --ink-soft:   #16233A;

  /* accents de marque (dégradé du logo) */
  --blue:       #0A5BFF;
  --blue-2:     #1E74FF;
  --blue-3:     #4A93FF;
  --cyan:       #22D3FF;
  --cyan-soft:  #7FE4FF;
  --slate:      #7C9CC4;
  --steel:      #38BDF8;

  /* textes */
  --text:       #16233A;
  --text-2:     #4C5F7A;
  --text-mute:  #8497B0;
  --on-dark:    #EAF2FB;
  --on-dark-2:  #A9BDD6;

  /* dégradé signature */
  --grad: linear-gradient(100deg, var(--ink) 0%, var(--blue) 48%, var(--cyan) 100%);
  --grad-b: linear-gradient(100deg, var(--blue) 0%, var(--cyan) 100%);

  /* typographie */
  --display: 'Space Grotesk', 'Jost', system-ui, sans-serif;
  --sans:    'Jost', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* motion */
  --ease:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-io: cubic-bezier(0.45, 0, 0.25, 1);

  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* grain très léger sur toute la page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* ---------- layout partagé ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}
.section { position: relative; }

/* ---------- helpers typographiques ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-2);
}
.lead {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text-2);
  font-weight: 300;
  max-width: 46ch;
}
.section-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.08;
}
.section-title.on-dark { color: var(--on-dark); }
.grad-text {
  background: var(--grad-b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* filet dégradé sous les titres (remplace le trait manuscrit) */
.uline {
  display: block;
  width: 132px;
  height: 12px;
  margin-top: 16px;
  color: var(--blue);
}
.uline path.a { stroke: var(--blue); }
.uline path.b { stroke: var(--cyan); }
.uline.light path.a { stroke: var(--cyan); }
.uline.light path.b { stroke: rgba(234,242,251,.5); }
.uline.gold path.a { stroke: var(--cyan); }
.uline.gold path.b { stroke: var(--blue-3); }

/* ============================================================
   BOUTONS — remplissage liquide au survol
   ============================================================ */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  padding: 17px 34px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: color .4s var(--ease), box-shadow .4s var(--ease), transform .2s var(--ease), border-color .4s var(--ease);
  isolation: isolate;
}
.btn > * { position: relative; z-index: 2; }
.btn::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -160%;
  width: 320%;
  aspect-ratio: 1 / 1;
  border-radius: 43% 47% 44% 46%;
  transform: translateX(-50%) scale(0.18);
  transition: transform .62s var(--ease), bottom .62s var(--ease), border-radius .62s var(--ease);
  z-index: 1;
}
.btn:hover::before {
  bottom: -58%;
  transform: translateX(-50%) scale(1) rotate(8deg);
  border-radius: 46% 44% 48% 42%;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* bouton plein sombre -> se remplit de bleu */
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark::before { background: var(--grad-b); }
.btn--dark:hover { color: #04101f; box-shadow: 0 14px 32px -14px rgba(10,91,255,.65); }

/* bouton contour clair */
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(11,21,36,.5);
  padding: 15px 32px;
}
.btn--ghost::before { background: var(--ink); }
.btn--ghost:hover { color: var(--cream); border-color: var(--ink); }

/* bouton contour sur fond sombre */
.btn--ghost-light {
  background: transparent;
  color: var(--on-dark);
  border: 1.5px solid rgba(234,242,251,.4);
  padding: 15px 32px;
}
.btn--ghost-light::before { background: var(--grad-b); }
.btn--ghost-light:hover { color: #04101f; border-color: var(--cyan); }

/* bouton d'envoi contact */
.btn--cta { background: var(--ink); color: #fff; }
.btn--cta::before { background: var(--grad-b); }
.btn--cta:hover { color: #04101f; box-shadow: 0 14px 32px -14px rgba(34,211,255,.6); }

/* ============================================================
   BLOBS LIQUIDES DE FOND
   ============================================================ */
.liquid-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.blob {
  position: absolute;
  border-radius: 42% 58% 57% 43% / 48% 42% 58% 52%;
  filter: blur(56px);
  opacity: .5;
  animation: blob-drift 22s var(--ease-io) infinite alternate;
  will-change: transform, border-radius;
}
@keyframes blob-drift {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); border-radius: 42% 58% 57% 43% / 48% 42% 58% 52%; }
  50%  { transform: translate(34px,-26px) rotate(12deg) scale(1.08); border-radius: 56% 44% 47% 53% / 42% 56% 44% 58%; }
  100% { transform: translate(-22px,22px) rotate(-8deg) scale(0.96); border-radius: 48% 52% 42% 58% / 56% 48% 52% 44%; }
}

/* ============================================================
   RÉVÉLATION AU DÉFILEMENT
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-img {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: opacity .9s var(--ease), clip-path 1s var(--ease);
}
.reveal-img.in { opacity: 1; clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .blob, .float, .orbit, .scan { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   FLOTTAISON (glyphes tech, cartes)
   ============================================================ */
.float { animation: floaty 7s ease-in-out infinite; }
@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(var(--r,0deg)); }
  50%     { transform: translateY(-12px) rotate(var(--r,0deg)); }
}

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