/* ================================================================
   Chloé · L'Agence Digitale — Design System
   Editorial × Glassmorphism × Motion
   ================================================================ */

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

:root {
  /* Palette tirée du logo */
  --bg:        oklch(0.965 0.012 80);   /* crème chaude */
  --bg-2:      oklch(0.935 0.018 75);   /* crème plus dense */
  --paper:     oklch(0.985 0.008 80);   /* papier */
  --ink:       oklch(0.235 0.045 250);  /* bleu encre profond (logo "Chloé") */
  --ink-2:     oklch(0.345 0.040 250);  /* bleu encre intermédiaire */
  --muted:     oklch(0.555 0.022 250);  /* texte secondaire */
  --line:      oklch(0.235 0.045 250 / 0.14);
  --accent:    oklch(0.685 0.170 40);   /* corail (logo "L" et "D") */
  --accent-2:  oklch(0.860 0.045 230);  /* bleu poudré (fond du logo) */
  --sage:      oklch(0.780 0.040 195);  /* sauge (feuilles) */
  --plum:      oklch(0.480 0.090 320);  /* prune (accent secondaire glass) */

  --radius-s: 10px;
  --radius:   18px;
  --radius-l: 28px;

  --shadow-glass: 0 1px 0 rgba(255,255,255,0.7) inset,
                  0 20px 60px -20px rgba(34,42,80,0.18),
                  0 4px 18px -8px rgba(34,42,80,0.12);

  --font-display: 'Instrument Serif', 'Iowan Old Style', 'Garamond', serif;
  --font-sans:    'Geist', 'Inter', system-ui, sans-serif;
  --font-mono:    'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;

  --container: 1280px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

::selection { background: var(--accent); color: var(--paper); }

/* — Grain papier subtil sur tout le site ------------------------ */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.16 0 0 0 0 0.28 0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ================================================================
   Layout
   ================================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; z-index: 2; }

/* ================================================================
   NAV
   ================================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: oklch(0.965 0.012 80 / 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.nav-brand img { width: 36px; height: 36px; border-radius: 50%; }
.nav-brand small {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
  line-height: 1;
}
.nav-brand .brand-text { display: flex; flex-direction: column; }
.nav-brand .brand-text span { line-height: 1; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-2);
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-links a.active {
  background: var(--ink);
  color: var(--paper);
}
.nav-cta {
  padding: 10px 18px !important;
  background: var(--accent);
  color: var(--paper) !important;
  font-weight: 500;
  border-radius: 999px !important;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, background 0.2s !important;
}
.nav-cta:hover { background: oklch(0.65 0.18 38) !important; transform: translateY(-1px); }
.nav-cta:hover { color: var(--paper) !important; }
.nav-cta .arr { display: inline-block; transition: transform 0.2s; }
.nav-cta:hover .arr { transform: translateX(3px); }

/* ================================================================
   BUTTONS & BITS
   ================================================================ */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s;
  font-family: var(--font-sans);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: oklch(0.18 0.04 250); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--paper); }
.btn-accent:hover { transform: translateY(-1px); background: oklch(0.65 0.18 38); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--bg-2); }

.btn .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px) rotate(-45deg); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--muted);
  display: inline-block;
}

.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}

/* ================================================================
   GLASS
   ================================================================ */

.glass {
  background: oklch(0.985 0.008 80 / 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid oklch(1 0 0 / 0.6);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-glass);
}

/* ================================================================
   BLOBS DE FOND (mesh gradient en absolute)
   ================================================================ */

.blob-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.blob.b1 { width: 520px; height: 520px; background: var(--accent); top: -120px; left: -80px; opacity: 0.32; }
.blob.b2 { width: 440px; height: 440px; background: var(--accent-2); top: 80px; right: -100px; opacity: 0.85; }
.blob.b3 { width: 380px; height: 380px; background: var(--sage); bottom: -120px; left: 30%; opacity: 0.55; }
.blob.b4 { width: 320px; height: 320px; background: var(--plum); top: 40%; left: 45%; opacity: 0.18; }

/* ================================================================
   TYPO ÉDITORIALE
   ================================================================ */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.display em { font-style: italic; color: var(--accent); }
.display .ital { font-style: italic; }

h1.display { font-size: clamp(56px, 9vw, 132px); }
h2.display { font-size: clamp(40px, 6vw, 88px); }
h3.display { font-size: clamp(28px, 3.5vw, 48px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head .title { max-width: 720px; }
.section-head .meta { max-width: 380px; color: var(--muted); font-size: 15px; }

/* ================================================================
   MARQUEE (logos clients)
   ================================================================ */

.marquee {
  overflow: hidden;
  padding: 24px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.client-logo {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--ink-2);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0.72;
  transition: opacity 0.2s, color 0.2s;
}
.client-logo:hover { opacity: 1; color: var(--accent); }
.client-logo .mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
}

/* ================================================================
   CARTES
   ================================================================ */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(34,42,80,0.22);
}

/* ================================================================
   FOOTER
   ================================================================ */

.footer {
  position: relative;
  z-index: 2;
  margin-top: 120px;
  background: var(--ink);
  color: oklch(0.92 0.01 80);
  padding: 80px 0 32px;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
  top: -200px; right: -150px;
}
.footer .container { position: relative; z-index: 2; }

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid oklch(1 0 0 / 0.12);
}
.footer .display { color: var(--paper); }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(0.85 0.02 80);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  color: oklch(0.85 0.02 80);
  font-size: 15px;
  transition: color 0.2s;
}
.footer ul a:hover { color: var(--accent); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: oklch(0.75 0.02 80);
}

/* ================================================================
   ANIMATIONS UTILES
   ================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.float-slow { animation: float 8s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

/* ================================================================
   PLACEHOLDERS IMAGE (stripes)
   ================================================================ */

.placeholder-img {
  background:
    repeating-linear-gradient(135deg,
      oklch(0.86 0.04 230) 0,
      oklch(0.86 0.04 230) 12px,
      oklch(0.90 0.03 230) 12px,
      oklch(0.90 0.03 230) 24px);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  overflow: hidden;
}
.placeholder-img.coral {
  background:
    repeating-linear-gradient(135deg,
      oklch(0.78 0.13 40) 0,
      oklch(0.78 0.13 40) 12px,
      oklch(0.83 0.10 40) 12px,
      oklch(0.83 0.10 40) 24px);
}
.placeholder-img.sage {
  background:
    repeating-linear-gradient(135deg,
      oklch(0.78 0.05 195) 0,
      oklch(0.78 0.05 195) 12px,
      oklch(0.83 0.04 195) 12px,
      oklch(0.83 0.04 195) 24px);
}
.placeholder-img.plum {
  background:
    repeating-linear-gradient(135deg,
      oklch(0.55 0.09 320) 0,
      oklch(0.55 0.09 320) 12px,
      oklch(0.60 0.08 320) 12px,
      oklch(0.60 0.08 320) 24px);
  color: var(--paper);
}

/* ================================================================
   MOBILE TWEAKS
   ================================================================ */

@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
}
