/* StudioBlanc — design tokens + base */

:root {
  --bg: #0a0a0c;
  --bg-elev: #111115;
  --bg-elev-2: #16161b;
  --line: #1f1f25;
  --line-strong: #2a2a32;
  --fg: #e8e8ea;
  --fg-muted: #a0a0a8;
  --fg-dim: #6c6c75;

  --accent: #ff5c1f;
  --accent-soft: rgba(255, 92, 31, 0.12);
  --accent-line: rgba(255, 92, 31, 0.35);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

:root[data-theme="light"] {
  --bg: #f4f3ee;
  --bg-elev: #ffffff;
  --bg-elev-2: #ebeae3;
  --line: #d9d7cf;
  --line-strong: #b8b6ae;
  --fg: #14141a;
  --fg-muted: #5a5a64;
  --fg-dim: #8a8a92;
  --accent-soft: rgba(255, 92, 31, 0.10);
  --accent-line: rgba(255, 92, 31, 0.45);
}

* {
  box-sizing: border-box;
  transition: background-color 0.5s ease, border-color 0.5s ease, color 0.3s ease;
}
html, body { margin: 0; padding: 0; }

/* Reset global des liens — WordPress injecte du bleu par défaut */
a {
  color: inherit;
  text-decoration: none;
}
a:hover { color: inherit; }

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0c; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  font-weight: 400;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: 2px;
}

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -0.01em; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 124px);
  line-height: 0.96;
  letter-spacing: -0.025em;
}
.display em { font-style: italic; color: var(--fg-muted); }

.display-md {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-md em { font-style: italic; color: var(--fg-muted); }

.display-sm {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.display-sm em { font-style: italic; color: var(--fg-muted); color:var(--accent); }

p { margin: 0; }
.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 60ch;
}
.body { font-size: 16px; line-height: 1.65; color: var(--fg-muted); }
.body strong { color: var(--fg); font-weight: 500; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }
.section-pad { padding: clamp(80px, 12vh, 160px) 0; }
.section-pad-sm { padding: clamp(56px, 8vh, 100px) 0; }

.divider { height: 1px; background: var(--line); width: 100%; }

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.brand-mark {
  width: 22px;
  height: 22px;
  border: 1px solid var(--fg);
  border-radius: 50%;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.brand-name {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand-name em { font-style: italic; color: var(--fg-muted); }

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover { color: var(--fg); }
.nav-link.active { color: var(--fg); }
.nav-link.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }
.nav-cta .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 31, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(255, 92, 31, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 31, 0); }
}

/* BUTTONS */
.btn {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid #f4f3ee;
  background: #f4f3ee;
  color: #14141a;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a0a0c;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #14141a;
}
.btn-primary:hover {
  background: #ff7340;
  border-color: #ff7340;
  color: #0a0a0c;
}

/* CARD */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: var(--line-strong); }

/* TAG */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 80px 0 32px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 80px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-link {
  display: block;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-link-sm {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
  text-decoration: none;
}
.footer-link-sm:hover { color: var(--fg); }

/* PAGES LÉGALES */
.legal-wrap {
  max-width: 72ch;
  margin: 0 auto;
}
.legal-content h2 { margin-top: 48px; margin-bottom: 16px; }
.legal-content h3 { margin-top: 32px; margin-bottom: 12px; }
.legal-content p  { margin-bottom: 16px; line-height: 1.7; }
.legal-content ul { margin-bottom: 16px; padding-left: 24px; }
.legal-content li { margin-bottom: 8px; line-height: 1.7; }
.legal-content a  { color: var(--accent); }

/* UTILITIES */
.flex { display: flex; }
.gap-sm { gap: 12px; }
.gap-md { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--fg-muted); }
.text-dim { color: var(--fg-dim); }
.text-accent { color: var(--accent); }

/* GRAIN */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='200' height='200' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-dim); }

/* SECTION HEADER */
.section-header { margin-bottom: 56px; }
.section-header .display-md { max-width: 20ch; }
.section-header .lead { margin-top: 18px; max-width: 55ch; }

.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ── Journal — encadré essentiel à retenir ── */
.journal-tldr {
  background: var(--bg-elev-2);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--line-strong);
  padding: 24px 28px;
  margin-bottom: 40px;
  border-radius: 2px;
}

.journal-tldr p {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg);
}

/* ── Services page ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.service-card--featured {
  background: var(--bg-elev);
  position: relative;
}

.service-card--featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}

.services-section .section-header-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 56px;
}

/* NAV BURGER */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  height: 1px;
  background: var(--fg);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* MOBILE NAV OVERLAY */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 80px var(--gutter) 48px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  gap: 0;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  margin-bottom: 48px;
}
.mobile-nav-link {
  font-family: var(--serif);
  font-size: clamp(32px, 8vw, 56px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--fg); }
.mobile-nav-link.active { color: var(--accent); }
.mobile-nav-cta { align-self: flex-start; }

/* MÉTHODE PAGE */
.methode-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.methode-step-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .hero-availability-link { display: none; }
  .case-body { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .services-section .section-header-grid { grid-template-columns: 1fr; gap: 24px; }
  .methode-cards-grid { grid-template-columns: 1fr; }
  .methode-step-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* STACK TABLE — mobile : masquer cat/rôle/depuis, empiler logo + nom */
@media (max-width: 640px) {
  /* Colonnes 2, 3, 4 (Catégorie, Rôle, Depuis) masquées */
  #stack-table th:nth-child(2),
  #stack-table td:nth-child(2),
  #stack-table th:nth-child(3),
  #stack-table td:nth-child(3),
  #stack-table th:nth-child(4),
  #stack-table td:nth-child(4) { display: none; }

  /* Logo au-dessus du nom dans la colonne Outil */
  #stack-table td:nth-child(1) > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Colonne Note prend toute la largeur disponible */
  #stack-table td:nth-child(5) { max-width: none; }

  /* Padding réduit pour gagner de la place */
  #stack-table th, #stack-table td { padding: 12px 14px !important; }
}
