/* CompaToon — feuille de style du site */

:root {
  --ink: #111418;
  --night: #0E1014;
  --night-line: #262A31;
  --night-line-2: #3A3F48;
  --text-2: #4A505B;
  --text-3: #6A707C;
  --on-night-2: #B9BEC8;
  --on-night-3: #8D93A0;
  --line: #E3E5E9;
  --line-2: #C9CCD3;
  --soft: #F4F5F7;
  --accent: #FFB020;
  --link: #B4430A;
  --radius: 16px;
  --max: 1200px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
a:hover { color: #8A3307; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
}
.h2 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -.02em;
}
.muted { color: var(--text-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Boutons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: background .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--night); }
.btn-accent:hover { color: var(--night); background: #FFC04D; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: #2A2F37; }
.btn-ghost { border-color: var(--night-line-2); color: #fff; }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.08); }

/* En-tête */
.site-header { background: var(--night); color: #fff; }
.site-header .container {
  padding-block: 20px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav a { color: #C9CCD3; text-decoration: none; }
.nav a:hover { color: #fff; }
.lang { display: flex; gap: 4px; font-size: 13px; font-weight: 600; }
.lang a { padding: 4px 8px; border-radius: 6px; }
.lang a[aria-current="true"] { color: #fff; border: 1px solid var(--night-line-2); }

/* Héro */
.hero { background: var(--night); color: #fff; padding: 56px 0 88px; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.025em;
}
.hero-lead { font-size: 19px; color: var(--on-night-2); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { font-size: 14px; color: var(--on-night-3); }
.hero-meta a { color: #C9CCD3; }
.hero-figure {
  flex: 1 1 420px; min-width: 0; margin: 0; border-radius: 18px; overflow: hidden;
  background: #fff; border: 1px solid var(--night-line);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.hero-figure img { width: 100%; height: 470px; object-fit: cover; object-position: top; }

/* Séries */
.series { background: var(--soft); padding: 88px 0 72px; }
.series-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.series-head > div { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.arrows { display: flex; gap: 10px; }
.arrow {
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.arrow:hover { background: var(--ink); color: #fff; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.chip {
  min-height: 40px; padding: 0 16px; border-radius: 999px; font: inherit;
  font-size: 14px; font-weight: 600; cursor: pointer;
  background: #fff; color: #3A3F48; border: 1px solid var(--line-2);
}
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { margin-left: 8px; font-size: 14px; color: var(--text-3); }

.track {
  --gutter: max(24px, calc((100% - var(--max)) / 2 + 24px));
  margin: 28px 0 0; padding: 4px var(--gutter) 20px; list-style: none;
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.track::-webkit-scrollbar { height: 6px; }
.track::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.tile {
  flex: 0 0 220px; scroll-snap-align: start; background: #fff;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.tile-media {
  height: 260px; overflow: hidden; background: var(--line);
  display: flex; align-items: center; justify-content: center;
}
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-media.contain { background: #fff; }
.tile-media.contain img { object-fit: contain; padding: 20px; }
.tile-media.text {
  padding: 20px; text-align: center; color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.1;
}
.tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 2px; }
.tile-body h3 { font-size: 16px; font-weight: 600; }
.tile-body p { font-size: 13px; color: var(--text-3); }

/* ToonBox */
.section { padding: 96px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-bottom: 48px; }
/* Jobs & tâches */
.jobs {
  display: flex; flex-wrap: wrap; gap: 40px; align-items: center;
  padding: 40px; border-radius: 20px; border: 1px solid var(--line); margin-bottom: 40px;
}
.jobs-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.jobs-text h3 { font-family: var(--font-head); font-weight: 700; font-size: 28px; letter-spacing: -.01em; }
.jobs-text p { color: var(--text-2); }
.jobs-text strong { color: var(--ink); }
.jobs-points { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.jobs-points li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15px; }
.jobs-points li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px;
  border-radius: 3px; background: var(--accent);
}
.job-diagram {
  flex: 1 1 320px; min-width: 0; margin: 0; padding: 24px; border-radius: 16px;
  background: var(--night); color: #fff; display: flex; flex-direction: column; gap: 14px;
}
.job-diagram figcaption { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-3); }
.job-name {
  font-weight: 600; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--accent); color: #fff;
}
.job-name::before { content: "Job  "; color: var(--accent); font-size: 13px; margin-right: 6px; }
.job-diagram ol { margin: 0 0 0 18px; padding: 0 0 0 18px; list-style: none; border-left: 2px solid var(--night-line-2); display: flex; flex-direction: column; gap: 10px; }
.job-diagram li { padding: 10px 14px; border-radius: 10px; background: #1A1D23; font-size: 15px; }
.job-diagram li span { display: block; font-size: 12px; color: var(--on-night-3); }

.tasks { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.task {
  padding: 28px; border-radius: var(--radius); background: var(--soft);
  display: flex; flex-direction: column; gap: 12px;
}
.task h3 { font-size: 19px; font-weight: 600; }
.task h3 small { font-size: 13px; font-weight: 600; color: var(--text-3); margin-left: 6px; }
.task p { color: var(--text-2); }
.task .task-tags { margin-top: auto; font-size: 13px; font-weight: 600; color: var(--text-3); }
.task-wide { grid-column: 1 / -1; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--ink);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
}

.pipeline {
  margin-top: 48px; border-radius: 20px; background: var(--night); color: #fff;
  padding: 40px; display: flex; flex-direction: column; gap: 28px;
}
.pipeline h3 { font-family: var(--font-head); font-weight: 600; font-size: 24px; }
.steps {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px;
}
.step {
  padding: 18px; border-radius: 12px; border: 1px solid var(--night-line-2);
  display: flex; flex-direction: column; gap: 6px;
}
.step span:first-child { font-size: 13px; color: var(--on-night-3); }
.step strong { font-weight: 600; }
.step span:last-child { font-size: 14px; color: var(--on-night-2); }
.step.tb { border-color: var(--accent); }
.step.tb span:first-child { color: var(--accent); }
.pipeline-note { font-size: 14px; color: var(--on-night-3); }

.download {
  margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 20px; padding: 28px 32px;
  border-radius: var(--radius); border: 1px solid var(--line);
}
.download h3 { font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.download .muted { font-size: 15px; }
.download-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Studios */
.studios { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.studios .container { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.studios ul {
  margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 32px;
  font-family: var(--font-head); font-weight: 600; font-size: 20px; color: #3A3F48;
}

/* Tarifs */
.pricing .container { display: flex; flex-wrap: wrap; gap: 56px; }
.pricing-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pricing-text .btn { align-self: flex-start; }
.pricing-table { flex: 1 1 460px; min-width: 0; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
caption { text-align: left; padding-bottom: 12px; font-size: 14px; color: var(--text-3); }
th { text-align: left; padding: 12px 0; border-bottom: 2px solid var(--ink); font-weight: 600; }
td { padding: 14px 0; border-bottom: 1px solid var(--line); }
th:last-child, td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 16px; }

/* Autres outils */
.tools { padding: 0 0 96px; }
.tools h2 { font-family: var(--font-head); font-weight: 700; font-size: 28px; margin-bottom: 24px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tool {
  display: flex; gap: 20px; padding: 20px; border-radius: var(--radius);
  border: 1px solid var(--line); align-items: flex-start;
}
.tool-media {
  width: 96px; height: 104px; border-radius: 10px; flex: 0 0 auto; object-fit: cover;
  background: var(--soft); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
}
.tool > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tool h3 { font-size: 17px; font-weight: 600; }
.tool p { font-size: 15px; color: var(--text-2); }
.tool p.links { font-size: 14px; }
.badge {
  font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--soft);
  padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle;
}

/* Pied de page */
.site-footer { background: var(--night); color: #fff; padding: 80px 0 40px; }
.cta { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.cta > div { display: flex; flex-direction: column; gap: 12px; max-width: 620px; }
.cta p { color: var(--on-night-2); font-size: 18px; }
.footer-bottom {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--night-line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  font-size: 14px; color: var(--on-night-3);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-bottom a { color: #C9CCD3; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (max-width: 640px) {
  .hero { padding: 32px 0 56px; }
  .hero-figure img { height: 320px; }
  .section { padding: 64px 0; }
  .series { padding: 64px 0 48px; }
  .pipeline, .jobs { padding: 24px; }
  .tile { flex-basis: 180px; }
  .tile-media { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile-media img { transition: none; }
}
