html, body {
  overscroll-behavior-y: none;
}


:root {
  --canvas: #e7e7e7;
  --sidebar: #dcdae6;
  --paper: #e7e7e7;
  --ink: #171622;
  --muted: #8e8b98;
  --lavender: #aaa7b4;
  --burgundy: #60343b;
  --main-heading: #070707;
  --main-text: #000000;
  --sidebar-width: 220px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.45 Arial, Helvetica, sans-serif; letter-spacing: 0; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: var(--sidebar-width); height: 100vh; padding: 32px 28px 20px; background: var(--sidebar); display: flex; flex-direction: column; }
.brand { color: var(--ink); text-decoration: none; display: grid; justify-items: center; margin-bottom: 42px; }
.brand-logo { display: none; width: min(100%, clamp(140px, 13vw, 170px)); max-height: min(500px, 40vh, 170px); height: auto; object-fit: contain; mix-blend-mode: multiply; }
.brand.has-logo .brand-logo { display: block; }
.brand.has-logo .brand-mark, .brand.has-logo .brand-sub { display: none; }
.brand-mark { font: 700 21px/1 'DM Mono', monospace; letter-spacing: -2px; transform: rotate(-8deg); }
.brand-sub { font: 8px 'DM Mono', monospace; text-transform: uppercase; letter-spacing: 2px; margin-top: 3px; }
.nav { display: grid; gap: 14px; }
.nav-link { color: var(--muted); text-decoration: none; font-size: 13px; text-transform: lowercase; }
.portfolio-subnav { display: grid; gap: 10px; padding-left: 18px; margin-top: -4px; }
.portfolio-subnav:not(.is-visible) { display: none; }
.portfolio-subnav .nav-link { font-size: 13px; }
.portfolio-link { margin-bottom: -2px; }
.nav-link span { color: var(--ink); float: right; opacity: 1; }
.nav-link.is-active, .nav-link:hover { color: var(--ink); font-weight: 600; }
.nav-link.is-active span { opacity: 1; }
.sidebar-foot { color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: auto; }
.main { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; width: calc(100% - var(--sidebar-width)); min-height: 100vh; margin-left: var(--sidebar-width); padding: 0 3rem 0; overflow-x: hidden; }
.page-section { width: 100%; max-width: 1100px; margin-left: 0; margin-right: auto; padding: 0 0 10px; margin-top: 0px; text-align: left; }
.section-kicker { color: var(--main-text); font: 600 13px/1 Arial, Helvetica, sans-serif; text-transform: lowercase; margin-bottom: 18px; }
.section-kicker span { color: var(--burgundy); }
.home-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: 22px 28px; align-items: start; }
.home-art { grid-column: 1 / -1; height: clamp(180px, 19vw, 270px); overflow: hidden; }
.art-surface, .gallery-tile, .game-card { background-color: var(--lavender); background-size: cover; background-position: center; }
.art-home { background: linear-gradient(90deg, #9995a4, #c3c0c8 55%, #6d6878); position: relative; overflow: hidden; }
.art-home::after { position: absolute; right: 18px; bottom: 12px; color: #f7f6f8; font: 10px 'DM Mono'; opacity: .8; }
.home-feature { grid-column: 1; height: 150px; background: var(--lavender); overflow: hidden; }
.home-feature:has(img), .home-feature:has(.admin-media-image) { height: auto; }
.home-copy { grid-column: 2; padding: 0 2px; }
h1, .section-heading, .contact-block .section-kicker { margin: 0 0 14px; color: var(--main-heading); font: 700 34px/1.1 Arial, Helvetica, sans-serif; text-transform: uppercase; }
.home-copy h1, .section-heading { font-size: 34px; }
.home-copy p { color: var(--main-text); margin: 0 0 28px; }
.home-copy, .contact-block, .game-section, .project-top { text-align: left; }
.contact-block { grid-column: 1; margin-top: 0; }.contact-block .section-kicker { display: block; margin-bottom: 11px; }.contact-block a { color: var(--ink); text-decoration: none; }.contact-link { display: inline-block; }
.contact-block a { color: var(--main-text); }
.home-contact-art { grid-column: 2; height: 150px; background: #171622; overflow: hidden; }
.home-contact-art:has(img), .home-contact-art:has(.admin-media-image) { height: auto; }
.social-links { display: flex; align-items: center; gap: 14px; margin-top: 14px; }.social-links a { display: grid; width: 28px; height: 28px; place-items: center; color: var(--ink); border-radius: 50%; transition: color .2s ease, background-color .2s ease, transform .2s ease; }.social-links a:hover, .social-links a:focus-visible { color: #fff; background: var(--burgundy); transform: translateY(-3px); outline: 0; }.social-links svg { width: 21px; height: 21px; fill: currentColor; }.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; }
.vgen-icon { display: block; width: 21px; height: 21px; background-color: currentColor; -webkit-mask: url('../img/VG_Logo_Badge_-_for_light_bg-removebg-preview.png') no-repeat center / contain; mask: url('../img/VG_Logo_Badge_-_for_light_bg-removebg-preview.png') no-repeat center / contain; }
.tos-section, .illustration-section, .game-section { background: var(--paper); padding: 35px 28px 68px; margin-bottom: 0; text-align: left; }
#tos, #illustration, #gamedev { margin-top: 0; }
#tos { padding-top: 48px; }
.tos-section .section-kicker, .game-section .section-kicker { color: var(--ink); text-transform: uppercase; }
.section-kicker { font-size: 34px;}
.tos-list { display: grid; max-width: 800px; text-align: left; }.tos-list article { border-top: 1px solid #e5e5e5; border-bottom: 1px solid #e5e5e5; padding: 0 0 1.5rem; margin: 0 0 1.5rem; }.tos-list h2 { font: 700 13px Arial, Helvetica, sans-serif; margin: 0 0 8px; }.tos-list p { margin: 0; font-size: 12px; }
.illustration-section { background: #e7e7e7; }.masonry { column-count: 3; column-gap: 16px; width: 100%; }.gallery-tile { break-inside: avoid; display: block; width: 100%; margin-bottom: 16px; border-radius: 4px; overflow: hidden; position: relative; }.gallery-image { display: block; width: 100%; height: auto; border-radius: 4px; }.gallery-tile:has(.gallery-image), .gallery-tile:has(.admin-media-image) { height: auto !important; }.tile-short { height: 92px; }.tile-medium { height: 150px; }.tile-tall { height: 245px; }
.art-one { background: linear-gradient(145deg, #625b68, #1b1925 52%, #d0cdd3); }.art-two { background: linear-gradient(135deg, #1b1a22, #817d8c); }.art-three { background: linear-gradient(180deg, #c6c3ca, #35313e 60%, #7f3e48); }.art-four { background: linear-gradient(140deg, #2a2633, #aaa7b4 56%, #171622); }.art-five { background: linear-gradient(180deg, #e1dfe2, #766f7d 35%, #282431); }.art-six { background: linear-gradient(145deg, #777381, #c4c1c8); }.art-seven { background: var(--burgundy); }.art-eight { background: linear-gradient(160deg, #171622, #5a5366); }.art-nine { background: linear-gradient(180deg, #9e9ba7, #211e2a); }
.game-section { background: var(--paper); }.project-top { display: flex; justify-content: space-between; gap: 20px; }.project-top p { margin: -10px 0 18px; font-size: 12px; }.project-top strong { font: 600 13px Arial, Helvetica, sans-serif; }.game-hero, .game-card { position: relative; aspect-ratio: 16 / 9; max-height: clamp(180px, 31vw, 360px); width: 100%; overflow: hidden; margin: 0 0 18px; background: #aaa7b4; }.project-slide { position: absolute; inset: 0; background-position: center; background-repeat: no-repeat; background-color: var(--lavender); transition: background-image .35s ease; }.project-slide img, .game-hero img, .game-card img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }.slider-button { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); border: 0; width: 28px; height: 28px; padding: 0; background: rgba(23,22,34,.55); color: white; font-size: 22px; line-height: 20px; cursor: pointer; }.prev { left: 10px; }.next { right: 10px; }.project-second { border-top: 1px solid #d9d7dd; padding-top: 18px; }.game-card { background: linear-gradient(135deg, #211e2b 0 35%, #60343b 36% 64%, #d0cdd3 65%); }.thumb-row { display: flex; gap: 12px; margin: 0 0 28px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--lavender) transparent; }.thumb-row span { display: block; width: 110px; height: 64px; flex: 0 0 110px; border: 3px solid transparent; border-radius: 4px; background: #aaa7b4; overflow: hidden; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }.thumb-row span:hover, .thumb-row span.is-active { border-color: var(--burgundy); transform: translateY(-2px); }.thumb-row span:nth-child(2) { background: #e1dfe2; }.thumb-row span:nth-child(3) { background: #60343b; }.project-previews, .haeretica-previews { margin: 0 0 0; }.more-to-come { color: var(--ink); text-align: center; font-size: 13px; padding: 0 0 26px; }
.project-entry + .project-entry { margin-top: 36px; padding-top: 30px; border-top: 1px solid #d9d7dd; }
.project-block-label { display: none; }
.project-title { text-transform: uppercase; }
footer { position: relative; left: calc(-1 * (var(--sidebar-width) + 3rem)); width: 100vw; max-width: none; margin: 0; padding: 1.5rem 3rem; border-top: 0; color: #f7f6f8; text-align: center; background: var(--lavender); font-size: 12px; }
footer a { color: #666; }
.slide-haeretica-one { background: linear-gradient(135deg, #211e2b 0 35%, #60343b 36% 64%, #d0cdd3 65%); }.slide-haeretica-two { background: linear-gradient(135deg, #60343b, #d0cdd3 54%, #211e2b); }.slide-haeretica-three { background: linear-gradient(135deg, #d0cdd3, #211e2b 46%, #60343b); }
@media (max-width: 700px) { :root { --sidebar-width: 150px; } .sidebar { padding: 22px 18px 14px; }.brand-logo { width: min(100%, 110px); max-height: 110px; }.main { padding: 1.5rem; }.home-section { grid-template-columns: 1fr; gap: 18px; }.home-art { height: 130px; }.home-feature, .home-copy, .contact-block, .home-contact-art { grid-column: 1; }.home-copy { order: 2; }.home-feature { order: 1; }.contact-block { order: 3; }.home-contact-art { order: 4; }.tos-section, .illustration-section, .game-section { padding-left: 18px; padding-right: 18px; }.masonry { column-count: 2; } footer { left: calc(-1 * (var(--sidebar-width) + 1.5rem)); padding-left: 1.5rem; padding-right: 1.5rem; } }
.nl-badge {
    display: none !important;
}
.admin-media-overlay { position: absolute; z-index: 20; inset: 50% auto auto 50%; transform: translate(-50%, -50%); border: 0; border-radius: 4px; padding: 10px 14px; background: rgba(23, 22, 34, .86); color: #fff; font: 600 12px Inter, sans-serif; cursor: pointer; opacity: 0; transition: opacity .2s ease; }
[data-media-zone] { position: relative; }
[data-media-zone]:hover > .admin-media-overlay, .admin-media-overlay:focus { opacity: 1; }
.admin-media-remove { position: absolute; z-index: 21; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(23, 22, 34, .86); color: #fff; font-size: 20px; line-height: 20px; cursor: pointer; opacity: 0; transition: opacity .2s ease; }
[data-media-zone]:hover > .admin-media-remove, .admin-media-remove:focus { opacity: 1; }

/* Images uploadées via le CMS — remplissent le bloc sans déformation */
.admin-media-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  object-position: center;
}

/* Accueil : bannière fixe, blocs latéraux adaptés au ratio de l'image */
[data-media-zone="home-banner"] .admin-media-image {
  object-fit: cover;
  object-position: center;
}

[data-media-zone="home-feature"] .admin-media-image,
[data-media-zone="home-contact"] .admin-media-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Carousel projet — image entière visible, comme la maquette */
.project-slide img,
.project-slide .admin-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Miniatures sous le carousel */
.thumb-row span img,
.thumb-row span .admin-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

/* Galerie illustration — le bloc s'adapte au ratio de l'image */
.gallery-tile .admin-media-image,
.gallery-tile .gallery-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* Éditeur : glisser-déposer pour réorganiser la galerie */
body.is-admin-preview .gallery-tile { cursor: grab; }
body.is-admin-preview .gallery-tile.is-dragging { opacity: 0.55; cursor: grabbing; }
body.is-admin-preview .gallery-tile.is-drag-over { outline: 2px dashed var(--burgundy); outline-offset: -4px; }
/* Masque les sections inactives */
.hidden-section {
  display: none !important;
}
/* Suppression stricte de l'écart sur le premier bloc de la page */
.main > :first-child,
.page-section:first-of-type,
#home,
.home-section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Évite le décalage causé par la marge des éléments enfants */
.home-art {
  margin-top: 0 !important;
}
.main {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh;
}

footer {
  margin-top: auto !important;
}

