/* krozix.pro — « atelier éditorial » : papier chaud, typo contrastée, rouge KroziX ; univers Gaming en mode nuit */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --paper: #f4f1ea; --paper-2: #ebe6db; --ink: #15171b; --ink-2: #3d424b; --muted: #555a63;
  --line: #d8d1c3; --red: #c8202f; --red-ink: #a3121f; --teal: #0e6973;
  --night: #0c0d11; --night-2: #15171e; --night-line: #262a35; --night-ink: #eceef3; --night-muted: #9aa1ae;
  --neon: #ff3b4a; --violet: #8a6cff;
  --display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Inter", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1240px; --radius: 14px;
  --s1: clamp(1.25rem, 1rem + 1vw, 2rem); --s2: clamp(3.5rem, 2.5rem + 4vw, 7rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
.theme-night {
  --paper: var(--night); --paper-2: var(--night-2); --ink: var(--night-ink); --ink-2: #c9cdd6;
  --muted: var(--night-muted); --line: var(--night-line); --red: var(--neon); --red-ink: #ff6b76;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* grain très léger, pour la matière du papier */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body.theme-night::before { opacity: .07; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2.5px solid var(--red); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2 * var(--s1), var(--wrap)); margin-inline: auto; }
.narrow { max-width: 860px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 200; background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.mono-label { font: 400 .78rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.mono-label .num { color: var(--red); }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--ink-2); max-width: 44ch; }
.small { font-size: .88rem; color: var(--muted); }

/* ------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.35em; border-radius: 999px;
  background: var(--ink); color: var(--paper); font: 600 .98rem/1 var(--body); text-decoration: none;
  border: 1.5px solid var(--ink); cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-small { padding: .6em 1em; font-size: .9rem; }
.btn-light { background: #fff; color: #111; border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.card-link { font-weight: 600; display: inline-flex; gap: .4em; }
.card-link span { transition: transform .3s var(--ease); }
a:hover .card-link span, .card-link:hover span { transform: translateX(5px); }

/* ------------------------------------------------------------- en-tête */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.05rem var(--display); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--red);
  color: #fff; font-size: 1.15rem; transform: rotate(-6deg); transition: transform .35s var(--ease); }
.brand:hover .brand-mark { transform: rotate(0deg) scale(1.05); }
.brand-sep { color: var(--red); margin: 0 .35em; }
.nav { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; font-size: .95rem; }
.nav a:not(.btn) { text-decoration: none; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-toggle, .menu-btn { display: none; }

/* ------------------------------------------------------------- accueil */
.hero { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: end;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) var(--s2); }
.hero-name { font: 700 clamp(4.5rem, 2rem + 12vw, 11rem)/.82 var(--display); letter-spacing: -.055em; margin: 0 0 .25em; }
.hero-name span { color: var(--red); }
.hero h1 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.7rem); max-width: 22ch; }
.h1-kicker { display: block; font: 500 .95rem/1.3 var(--mono); letter-spacing: .04em; color: var(--red); margin-bottom: .6rem; text-transform: none; }
.status-card { background: var(--ink); color: #eceef3; border-radius: var(--radius); padding: 1.6rem;
  box-shadow: 0 30px 60px -30px rgba(21, 23, 27, .55); transform: rotate(1.2deg); }
.status { font: 400 .85rem var(--mono); display: flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem; color: #b7f5d6; }
.status i { width: 9px; height: 9px; border-radius: 50%; background: #35d49a; box-shadow: 0 0 0 0 rgba(53, 212, 154, .6); animation: pulse 2.2s infinite; }
.status-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 0; }
.status-card dt { font: 700 1.6rem/1 var(--display); color: #fff; }
.status-card dd { margin: .3rem 0 0; font-size: .85rem; color: #9aa1ae; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(53, 212, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 212, 154, 0); } }

.universes { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.universe { display: block; text-decoration: none; padding: clamp(1.6rem, 3vw, 2.6rem); border-radius: var(--radius);
  min-height: 300px; position: relative; overflow: hidden; transition: transform .4s var(--ease); }
.universe:hover { transform: translateY(-6px); color: inherit; }
.universe h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); max-width: 14ch; }
.universe p:not(.mono-label) { max-width: 38ch; }
.u-day { background: var(--paper-2); border: 1px solid var(--line); }
.u-night { background: var(--night); color: var(--night-ink); }
.u-night .mono-label { color: var(--night-muted); }
.u-night::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 74, .45), transparent 70%); transition: transform .6s var(--ease); }
.u-night:hover::after { transform: scale(1.3); }
.u-night .card-link { color: var(--neon); }

/* ------------------------------------------------------------- sections */
.section { padding-block: var(--s2) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 3rem; align-items: end; margin-bottom: 2.5rem;
  border-top: 1.5px solid var(--ink); padding-top: 1.2rem; }
.section-head .mono-label { grid-column: 1 / -1; }
.section-head h2 { margin: 0; }
.section-head .lead { margin: 0; font-size: 1.05rem; }
.more { margin-top: 1.5rem; }
.page-hero { padding-block: clamp(2.5rem, 2rem + 3vw, 5rem) clamp(1rem, 2vw, 2rem); max-width: 980px; }
.page-hero h1 { max-width: 20ch; }
.breadcrumb { padding-top: 1.4rem; font: 400 .8rem var(--mono); color: var(--muted); }
.breadcrumb a { text-decoration: none; }

/* ------------------------------------------------------------- listes numérotées */
.steps, .promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.steps li, .promises li { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.steps .num, .promises .num { display: block; font: 700 2.8rem/1 var(--display); color: transparent;
  -webkit-text-stroke: 1.5px var(--red); margin-bottom: .9rem; }
.steps p, .promises p { color: var(--ink-2); font-size: .98rem; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.service { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  transition: border-color .3s, transform .3s var(--ease); }
.service:hover { border-color: var(--red); transform: translateY(-3px); }
.service p { color: var(--ink-2); margin: 0; font-size: .98rem; }

/* ------------------------------------------------------------- projets */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
/* mosaïque asymétrique : [grand 2 col][1 col] puis [1 col][large horizontal 2 col] */
.bento .big { grid-column: span 2; }
.bento > :nth-child(4) { grid-column: span 2; }
.bento > :nth-child(4) a { flex-direction: row; }
.bento > :nth-child(4) .frame { flex: 0 0 46%; border-bottom: 0; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; }
.bento > :nth-child(4) .frame > :last-child { flex: 1; aspect-ratio: auto; min-height: 240px; }
.bento > :nth-child(4) .card-body { justify-content: center; padding: 2rem 2.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.project-card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.project-card a:hover { transform: translateY(-5px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .45); border-color: var(--red); color: inherit; }
.project-card .frame { margin: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); }
.card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .35em; }
.card-body p:not(.mono-label) { color: var(--ink-2); font-size: .97rem; }
.card-body .card-link { margin-top: auto; }
.big .card-body h3 { font-size: 1.9rem; }
.frame { margin: 0; background: #0e0f13; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1b1d24; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a3e4a; }
.frame-bar i:first-child { background: #ff5f57; } .frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-bar span { margin-left: 10px; font: 400 .72rem var(--mono); color: #8a90a0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .8s var(--ease); }
.project-card a:hover .frame img { transform: scale(1.03); }
.frame-placeholder { aspect-ratio: 16 / 10; display: grid; grid-template-columns: repeat(3, 1fr); place-items: center;
  background: linear-gradient(135deg, #1a1c24, #2a1418); font-size: clamp(2rem, 5vw, 3.4rem); color: #f3d7a8; }
.frame-placeholder span { opacity: .85; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: .4rem 0 1.2rem; }
.tags li { font: 400 .74rem/1 var(--mono); padding: .45em .7em; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.filters button { font: 500 .9rem var(--body); padding: .55em 1.1em; border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filterable > [hidden] { display: none; }

/* page projet */
.project-hero .lead { max-width: 58ch; }
.project-visual { margin-top: 1rem; }
.project-body { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 2.5rem; padding-block: var(--s2) 0; }
.project-body h2 { font-size: 1.35rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: .55rem 0 .55rem 1.8rem; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-2); }
.checklist li::before { content: "↗"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.note { font-size: .92rem; color: var(--muted); border-left: 3px solid var(--red); padding-left: .9rem; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; padding-top: var(--s1); }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.next-project a { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 1rem; text-decoration: none;
  margin-top: var(--s2); padding: 2rem 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); }
.next-title { font: 700 clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem) var(--display); letter-spacing: -.02em; }

/* ------------------------------------------------------------- contenus */
.prose { max-width: 980px; padding-bottom: 1rem; }
.prose > * { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2rem; }
.prose p { color: var(--ink-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font: 700 1.12rem var(--display); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font-size: 1.5rem; color: var(--red); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 1rem; margin: 0; }

.cta { margin-top: var(--s2); }
.cta-in { background: var(--red); color: #fff; border-radius: calc(var(--radius) * 1.6); padding: clamp(2rem, 5vw, 4.5rem);
  position: relative; overflow: hidden; }
.cta-in::after { content: "K"; position: absolute; right: -.08em; bottom: -.3em; font: 700 clamp(12rem, 25vw, 22rem)/1 var(--display);
  color: rgba(255, 255, 255, .09); pointer-events: none; }
.cta-in h2 { max-width: 16ch; } .cta-in p { max-width: 50ch; font-size: 1.1rem; opacity: .92; }
.theme-night .cta-in { background: linear-gradient(135deg, #b3121f, #5d1a8a); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 3rem; padding-bottom: 2rem; }
.contact-form { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: .95rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper-2);
  border: 1.5px solid var(--line); border-radius: 10px; padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 18%, transparent); }
.hp { position: absolute; left: -9999px; }
.contact-aside { border-left: 1.5px solid var(--ink); padding-left: 2rem; }
.contact-aside h2 { font-size: 1.4rem; }

/* 404 */
.not-found .hero-name { font-size: clamp(5rem, 3rem + 10vw, 10rem); }

/* ------------------------------------------------------------- pied de page */
.site-footer { margin-top: var(--s2); background: var(--ink); color: #c9cdd6; padding-top: var(--s2); }
.theme-night .site-footer { background: #07080b; border-top: 1px solid var(--night-line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; }
.footer-title { font: 700 clamp(1.8rem, 1.3rem + 1.8vw, 2.8rem)/1.05 var(--display); color: #fff; letter-spacing: -.02em; }
.footer-lead { max-width: 40ch; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .95rem; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .mono-label { color: #8a90a0; }
.site-footer .btn { background: #fff; color: #111; border-color: #fff; }
.site-footer .btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-block: 1.5rem;
  border-top: 1px solid #2c3039; font-size: .85rem; color: #8a90a0; }
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------- apparition au défilement (si JS) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .status-card { transform: none; max-width: 480px; }
  .bento { grid-template-columns: 1fr 1fr; } .bento .big, .bento > :nth-child(4) { grid-column: span 2; }
  .steps, .promises { grid-template-columns: 1fr 1fr; }
  .project-body { grid-template-columns: 1fr 1fr; } .project-body section:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .3s; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; }
  .menu-btn span::before { top: -7px; } .menu-btn span::after { top: 7px; }
  .menu-toggle { display: block; position: absolute; opacity: 0; width: 44px; height: 44px; right: 0; cursor: pointer; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: flex-start;
    gap: 1.1rem; padding: 1.4rem var(--s1) 1.8rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .menu-toggle:checked + .menu-btn span { background: transparent; }
  .menu-toggle:checked + .menu-btn span::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle:checked + .menu-btn span::after { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .universes, .grid-2, .bento, .gallery, .contact-grid, .section-head { grid-template-columns: 1fr; }
  .bento .big, .bento > :nth-child(4) { grid-column: auto; }
  .bento > :nth-child(4) a { flex-direction: column; }
  .bento > :nth-child(4) .frame { border-right: 0; border-bottom: 1px solid var(--line); }
  .bento > :nth-child(4) .card-body { padding: 1.3rem 1.4rem 1.5rem; }
  .steps, .promises, .project-body, .footer-grid { grid-template-columns: 1fr; }
  .contact-aside { border-left: 0; padding-left: 0; border-top: 1.5px solid var(--ink); padding-top: 1.5rem; }
  .universe { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.prose .checklist { margin: .6rem 0 1.2rem; }
.prose h2 { scroll-margin-top: 90px; }
.area li { font-size: .82rem; }
