/* x2c.studio, site statique. Feuille de style écrite pour ce dépôt.
   Les valeurs (couleurs, tailles, espacements) ont été relevées sur l'apparence du site précédent. */

/* ---------- Polices (hébergées ici, voir README) ---------- */
@font-face { font-family: "TeX Gyre Adventor"; src: url("/assets/fonts/texgyreadventor-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Raleway"; src: url("/assets/fonts/raleway-normal-300-800.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Droid Serif"; src: url("/assets/fonts/droid-serif-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/assets/fonts/lora-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-normal-100-900.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Reenie Beanie"; src: url("/assets/fonts/reenie-beanie-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Satisfy"; src: url("/assets/fonts/satisfy-normal-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------- Base ---------- */
:root {
  --green: #858f70;
  --green-dark: #808f66;
  --gold: #c39f76;
  --ink: #28262b;
  --text: #565656;
  --dark: #242424;
  --dark-2: #323232;
  --adventor: "TeX Gyre Adventor", "Century Gothic", "URW Gothic", sans-serif;
  --serif: "Droid Serif", Georgia, serif;
  --frame: 0px;
  --h: calc(100vh - 30px);
  --u: 1px; /* unité de taille de l'accueil : 1 px à 1440 x 900, réduite sur les fenêtres plus basses ou plus étroites */
}
@supports (height: 100dvh) { :root { --h: calc(100dvh - 30px); } }
@media (min-width: 1025px) { :root { --frame: 15px; --u: min(1px, 0.1042vh, 0.0694vw); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 400 14px/24.99px "Raleway", "Open Sans", Arial, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.adv { font-family: var(--adventor); font-weight: 600; }

/* Cadre blanc fixe de 15 px autour de la fenêtre (grande largeur) */
@media (min-width: 1025px) {
  body::before { content: ""; position: fixed; inset: 0; border: 15px solid #fff; pointer-events: none; z-index: 60; }
}

/* ---------- En-tête et menu ---------- */
.site-header { position: absolute; top: 0; left: 0; right: 0; height: 140px; background: #fff; z-index: 50; }
.site-header .logo { position: absolute; left: 20px; top: 20px; display: block; }
.site-header .logo img { width: 100px; height: 100px; }
.menu > summary { position: absolute; right: 20px; top: 50px; width: 40px; height: 40px; list-style: none; cursor: pointer; z-index: 80; color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { position: absolute; right: 0; height: 2px; background: currentColor; content: ""; transition: transform .3s, width .3s; }
.burger { top: 20px; width: 20px; }
.burger::before { top: -5px; width: 25px; right: 0; }
.burger::after { top: 5px; width: 31px; right: 0; }
.menu[open] > summary { color: #fff; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before, .menu[open] .burger::after { width: 22px; top: 0; right: -1px; }
.menu[open] .burger::before { transform: rotate(45deg); }
.menu[open] .burger::after { transform: rotate(-45deg); }

.menu-panel { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: min(260px, 80vw); background: #2d2d2d; color: #949494; overflow-y: auto; }
.menu-panel .panel-logo { display: block; height: 140px; background: #fff; padding: 20px; }
.menu-panel .panel-logo img { width: 100px; height: 100px; }
.menu-panel nav a { display: block; padding: 0 25px; line-height: 48px; border-top: 1px solid #3a3a3a; font: 400 14px/48px var(--adventor); color: #949494; }
.menu-panel nav a:hover, .menu-panel nav a[aria-current] { color: #fff; text-decoration: none; }
.menu-panel nav ul ul a { padding-left: 45px; font-size: 13px; }
.menu-panel .panel-contact { padding: 20px 25px 0; font: 400 13px/26px "Lora", serif; }
.menu-panel .panel-contact a { color: #cfcfcf; display: flex; align-items: center; gap: 10px; }
.menu-panel .panel-contact .icon { font-size: 14px; }
.menu-panel .panel-foot { padding: 20px 25px 30px; font-size: 13px; line-height: 20px; color: rgba(255, 255, 255, .3); }
.socials { display: flex; flex-wrap: wrap; gap: 4px; margin: 14px 0 0 -8px; }
.socials a { display: grid; place-items: center; width: 36px; height: 36px; color: rgba(255, 255, 255, .6); }
.socials a:hover { color: #fff; }
.socials .icon { font-size: 16px; }

@media (max-width: 1024px) { .burger, .burger::before, .burger::after { height: 1px; } }
@media (min-width: 1025px) {
  .site-header { position: fixed; height: 0; background: none; }
  .site-header .logo { left: 45px; top: 35px; }
  .menu > summary { right: 60px; top: 60px; width: 50px; height: 50px; color: #fff; mix-blend-mode: difference; }
  .menu[open] > summary { mix-blend-mode: normal; }
  .burger { top: 25px; width: 26px; right: 12px; }
  .burger::before { width: 26px; right: 0; top: -6px; }
  .burger::after { width: 26px; right: 0; top: 6px; }
  .menu[open] .burger::before, .menu[open] .burger::after { width: 24px; right: 1px; }
  .menu-panel { inset: 0; width: auto; background: rgba(0, 0, 0, .9); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 70px 0 0; text-align: center; }
  .menu-panel .panel-logo { background: none; height: auto; padding: 15px 0 0; }
  .menu-panel .panel-contact { order: 2; padding: 35px 0 0; display: flex; flex-direction: column; align-items: center; }
  .menu-panel .panel-contact a { color: #fff; font-size: 13px; }
  .menu-panel nav { order: 3; margin-top: 30px; }
  .menu-panel nav a { border: 0; font: 600 30px/42px var(--adventor); letter-spacing: 2px; color: #fff; padding: 14px 0 14px; }
  .menu-panel nav ul ul { display: flex; gap: 30px; justify-content: center; margin-top: -4px; }
  .menu-panel nav ul ul a { font-size: 16px; padding: 4px 0; color: #bdbdbd; letter-spacing: 1px; }
  .menu-panel nav a:hover, .menu-panel nav a[aria-current] { color: var(--gold); }
  .menu-panel .panel-foot { order: 4; position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 120px 30px; color: rgba(255, 255, 255, .3); }
  .socials { margin: 0; }
  .socials a { width: 44px; height: 44px; color: rgba(255, 255, 255, .7); }
}

/* ---------- Bloc de contact et pied de page ---------- */
.contact { background: var(--dark-2); color: #fff; padding: 50px 20px 0; }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.contact-text { width: 219px; text-align: right; }
.contact-text .lead { font: 600 18px/21.6px var(--adventor); color: var(--green-dark); display: block; }
.contact-text .sub { font: italic 400 16px/30px var(--serif); color: rgba(255, 255, 255, .6); display: block; }
.btn-mail { display: block; width: 380px; max-width: 100%; height: 45px; border: 1px solid #484848; background: rgba(255, 255, 255, .01); color: #fff; font: 600 12px/43px var(--adventor); letter-spacing: 2px; text-align: center; }
.btn-mail:hover { background: var(--green-dark); border-color: var(--green-dark); text-decoration: none; }
.contact-brand { display: flex; flex-direction: column; align-items: center; padding: 60px 0 0; }
.contact-brand img { width: 100px; height: 100px; }
.contact-brand .socials { margin: 10px 0 0; justify-content: center; }
.contact-brand .socials a { width: 36px; height: 36px; color: rgba(255, 255, 255, .5); }
.contact-brand .socials a:hover { color: #fff; }
.copyright { text-align: center; font-size: 13px; line-height: 74px; color: rgba(255, 255, 255, .6); }
@media (max-width: 760px) { .contact-text { width: 100%; text-align: center; } }

/* ---------- Pages Travaux ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); height: min(47.64vw, 686px); margin-top: 140px; }
@media (min-width: 1025px) { .hero { margin-top: 0; } }
.hero > img.bg { position: absolute; inset: auto 0 0 0; width: 100%; height: 125%; object-fit: cover; max-width: none; will-change: transform; } /* 25 % de réserve en haut : site.js décale l'image de 25 % du défilement */
.hero .hero-logo { position: absolute; left: 50%; top: 19.4%; width: min(17.36vw, 250px); height: auto; transform: translateX(-50%); }
.hero .hero-l1, .hero .hero-l2 { position: absolute; left: 0; right: 0; text-align: center; color: #fff; white-space: nowrap; font-size: min(1.39vw, 20px); line-height: 1.1; }
.hero .hero-l1 { top: 68.8%; font-family: var(--adventor); font-weight: 600; }
.hero .hero-l2 { top: 74.6%; font-family: "Satisfy", cursive; font-weight: 400; }

.tabs { display: grid; grid-template-columns: repeat(3, 1fr); padding: 30px 15px 42px; }
.tabs li { position: relative; text-align: center; min-height: 55px; }
.tabs .tab-title { display: block; font: 600 55px/55px var(--adventor); letter-spacing: 5px; text-transform: uppercase; color: #e8e8e8; }
.tabs a.tab-title { color: var(--green); }
.tabs .tab-sub { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); font: italic 400 14px/20px var(--serif); color: var(--ink); pointer-events: none; }
.tabs .current .tab-sub { font-size: 18px; font-weight: 700; line-height: 36px; }
@media (max-width: 900px) { .tabs { grid-template-columns: 1fr; gap: 10px; padding-top: 40px; padding-bottom: 50px; } }

.grid-wrap { container-type: inline-size; padding: 20px var(--frame); }
.tabs + .grid-wrap { padding-top: 0; }
.grid { --cell: calc((100cqw - 60px) / 4); display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: var(--cell); gap: 20px; grid-auto-flow: row dense; }
.tile { position: relative; overflow: hidden; background: var(--dark); min-width: 0; }
.tile.b { grid-column: span 2; grid-row: span 2; }
.tile > img, .tile > a.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.tile .cover { position: absolute; inset: 0; display: block; }
.tile .title { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .7); color: #fff; font: 600 18px/21.6px var(--adventor); letter-spacing: 4px; text-align: center; opacity: 0; transition: opacity .3s; }
.tile .cover:hover .title, .tile .cover:focus-visible .title { opacity: 1; }
.tile .cover:hover { text-decoration: none; }
@media (hover: none) { .tile .title { opacity: 1; background: linear-gradient(transparent 55%, rgba(0, 0, 0, .65)); place-items: end center; font-size: 14px; letter-spacing: 3px; } }
.tile.text { padding: 0 40px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.tile.text h3 { font: italic 400 14px/20px var(--serif); color: rgba(255, 255, 255, .6); }
.tile.text h5 { font: 600 16px/16px var(--adventor); letter-spacing: 5px; text-transform: uppercase; color: #8a8f6a; margin-bottom: 20px; }
.tile.text p { color: #fff; }
.tile.links { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; }
.tile.links .btn-line { width: min(220px, 72%); height: 49px; line-height: 47px; font-size: 12px; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 84px; height: 50px; background: rgba(50, 50, 50, .8); color: #fff; }
.play .icon { font-size: 26px; }
.tile.video a.cover:hover .play { background: rgba(50, 50, 50, 1); }
.coming { position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; background: rgba(200, 200, 200, .8); padding: 5px 5px 5px 0; }
.coming .play { position: static; transform: none; flex: none; }
.coming .box-name { display: block; font: 600 14px/19px var(--adventor); color: var(--ink); padding: 5px 0 0 16px; }
.coming .subtitle { display: block; font: italic 400 13px/22px var(--serif); color: #727272; padding-left: 16px; }
.coming.dark .box-name { color: #fff; }
.coming.dark .subtitle { color: rgba(255, 255, 255, .5); }

/* Bande « Autres travaux » : bande défilable en remplacement du carrousel */
.strip { grid-column: 1 / -1; display: grid; grid-template-columns: calc((100% - 60px) / 4) 1fr; gap: 20px; min-width: 0; }
.strip-items { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); grid-template-rows: 100%; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; min-width: 0; }
.strip-items > .tile { scroll-snap-align: start; }
.tabs .current::after { content: ""; position: absolute; left: 50%; bottom: -14px; width: 100px; height: 2px; margin-left: -50px; background: #cfcfcf; }
@media (max-width: 1024px) {
  .grid { --cell: calc((100cqw - 10px) / 2); grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-wrap { padding-left: 0; padding-right: 0; }
  .strip { grid-row: span 2; grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
  .strip-items { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; }
}
@media (max-width: 560px) {
  .grid { --cell: 100cqw; grid-template-columns: 1fr; gap: 0; }
  .tile.b { grid-column: auto; grid-row: auto; }
  .strip { gap: 0; }
  .strip-items { grid-auto-columns: 100%; gap: 0; }
  .tile.text { padding: 0 30px; }
}

/* ---------- Visionneuse (galerie et vidéo) ---------- */
dialog.viewer { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: rgba(0, 0, 0, .92); color: #fff; }
dialog.viewer::backdrop { background: rgba(0, 0, 0, .92); }
.viewer-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 56px 72px; }
.viewer-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.viewer-stage iframe { width: min(100%, 1280px); aspect-ratio: 16 / 9; height: auto; max-height: 100%; border: 0; background: #000; }
.viewer button { position: absolute; background: none; border: 0; color: #fff; width: 56px; height: 56px; display: grid; place-items: center; opacity: .8; }
.viewer button:hover { opacity: 1; }
.viewer .icon { font-size: 28px; }
.viewer .v-close { top: 0; right: 0; }
.viewer .v-prev { left: 0; top: 50%; margin-top: -28px; }
.viewer .v-next { right: 0; top: 50%; margin-top: -28px; }
.viewer .v-count { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, .7); }
@media (max-width: 700px) { .viewer-stage { padding: 56px 8px; } }

/* ---------- Accueil ---------- */
.home .ms-section { position: relative; overflow: hidden; color: #fff; background: #1b1b1b; min-height: 60vh; }
.home .ms-section > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.home .ms-section .inner { position: relative; z-index: 1; }
.home .shade::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .35); }
.home .shade-2::after { background: rgba(0, 0, 0, .55); }
.home .ms-section.has-text { display: flex; flex-direction: column; justify-content: center; padding: 70px 40px; }
.home .ms-section.has-text > .inner { position: relative; z-index: 1; }
@media (max-width: 1024px) { .home .wide-only { display: none !important; } }
@media (min-width: 1025px) { .home .narrow-only { display: none !important; } }

.home .ms-section { font-size: max(10px, calc(12 * var(--u))); line-height: 1.75; }
.h-title { font-family: var(--adventor); font-weight: 600; font-size: max(13px, calc(20 * var(--u))); line-height: 1.2; text-transform: uppercase; color: #fff; }
.h-rule { display: block; height: max(3px, calc(5 * var(--u))); width: calc(56 * var(--u)); background: var(--green); margin-top: calc(18 * var(--u)); }
.h-svc { display: grid; grid-template-columns: 1fr; gap: 0 calc(26 * var(--u)); }
.h-svc > div { text-align: right; padding-bottom: calc(14 * var(--u)); }
.h-svc .h-rule { margin-left: auto; margin-bottom: calc(14 * var(--u)); }
.h-svc p { text-align: right; }
.h-works { text-align: right; padding-top: calc(18 * var(--u)); }
.h-works .h-title { font-size: max(12px, calc(16 * var(--u))); }
.h-works .h-rule { margin-left: auto; margin-bottom: calc(18 * var(--u)); }
.h-btns { display: flex; justify-content: flex-end; gap: calc(14 * var(--u)); }
.btn-line { display: block; width: calc(112 * var(--u)); min-width: 84px; height: calc(38 * var(--u)); min-height: 30px; border: 1px solid var(--green); color: #fff; font-family: Arial, sans-serif; font-size: max(9px, calc(11 * var(--u))); line-height: calc(36 * var(--u)); text-align: center; background: rgba(255, 255, 255, .01); }
.btn-line:hover { background: var(--green-dark); text-decoration: none; }
.btn-line.wide { width: 200px; height: 45px; line-height: 43px; font-size: 9px; letter-spacing: .5px; }
@media (min-width: 560px) { .h-svc { grid-template-columns: 1fr 1fr; } }

.h-intro-title { display: block; font-family: "Roboto", sans-serif; font-weight: 100; font-size: min(calc(57 * var(--u)), 13vw); line-height: 1; color: #fff; letter-spacing: -1px; }
.h-intro-title:hover { text-decoration: none; }
.h-intro .h-rule { width: calc(190 * var(--u)); margin: calc(14 * var(--u)) 0; }
.h-intro p { max-width: calc(300 * var(--u)); }
.h-intro .btn-line { margin-top: 24px; }

.h-vid-title { font-family: var(--adventor); font-weight: 600; font-size: min(calc(42 * var(--u)), 8.5vw); line-height: 1.1; text-transform: uppercase; color: #fff; }
.h-vid .h-rule { width: calc(190 * var(--u)); margin: calc(12 * var(--u)) 0; }
.h-vid p { max-width: calc(280 * var(--u)); }
.h-vid .vid-link-narrow { margin-top: 32px; }
.h-l5 .inner { text-align: center; }
.h-l5 .vid-link { margin: 0 auto; }
.h-l5 .h-poster { max-width: none; margin-top: calc(16 * var(--u)); }
@media (min-width: 1025px) {
  .home .ms-section.h-l5 { padding-left: 25px; padding-right: 25px; }
  .ms-on .ms-section.has-text.h-l5 { padding: 0 25px; }
  .ms-on .l4 .inner { padding-bottom: calc(50 * var(--u)); }
  .ms-on .r5 .inner { padding-bottom: calc(80 * var(--u)); }
}
.vid-link { display: inline-flex; align-items: center; color: var(--green); }
.vid-link:hover { text-decoration: none; }
.vid-link .play { position: static; transform: none; width: calc(64 * var(--u)); height: calc(38 * var(--u)); min-width: 48px; min-height: 30px; }
.vid-link .play .icon { font-size: max(16px, calc(20 * var(--u))); }
.vid-link .vid-text { padding-left: calc(12 * var(--u)); text-align: left; }
.vid-link .box-name { display: block; font-family: var(--adventor); font-weight: 600; font-size: max(10px, calc(12 * var(--u))); line-height: 1.36; color: #fff; margin-top: 4px; }
.vid-link .subtitle { display: block; font-family: var(--serif); font-style: italic; font-size: max(9px, calc(11 * var(--u))); line-height: 1.7; color: rgba(255, 255, 255, .5); }
.h-poster { display: block; width: 100%; max-width: 675px; margin-top: 20px; }
.h-poster img { width: 100%; height: auto; }

.h-soon { text-align: center; }
.h-soon .h-rule { margin: 0 auto calc(22 * var(--u)); }
.h-soon .h-title { margin-bottom: calc(26 * var(--u)); }
.h-quote { margin: 0 auto; max-width: calc(480 * var(--u)); font-family: var(--serif); font-style: italic; font-size: max(18px, calc(34 * var(--u))); line-height: 1.4; color: #fff; }

.h-contact-t { font-family: "Roboto", sans-serif; font-weight: 500; font-size: max(17px, calc(25 * var(--u))); line-height: 1; color: #fff; }
.h-contact .h-rule { width: calc(30 * var(--u)); height: max(3px, calc(3 * var(--u))); margin: 0 0 calc(20 * var(--u)); }
.h-contact-grid { display: grid; grid-template-columns: 1fr; gap: calc(28 * var(--u)) calc(30 * var(--u)); }
@media (min-width: 560px) { .h-contact-grid { grid-template-columns: 1fr 1fr; } }
.h-contact .h-title { margin-bottom: calc(12 * var(--u)); }
.h-contact p { margin-bottom: 3px; }
.h-contact a { color: #fff; font-family: "Lora", serif; font-style: italic; }

/* Carte du dernier écran : image fixe, données © contributeurs OpenStreetMap */
.home .map .map-credit { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 2px 8px; font-size: 11px; line-height: 18px; color: #333; background: rgba(255, 255, 255, .8); }

.ms-dots { display: none; }

/* Accueil, flux normal (petite largeur, ou sans JavaScript) */
.home { padding-top: 140px; }
.home .ms-section.hero-m { min-height: 0; height: min(calc(100vh - 140px), 760px); }
.home .ms-section.img-only { min-height: 60vh; }

/* Accueil, deux moitiés défilant en sens opposés (grande largeur, JavaScript actif) */
.ms-on body.home { padding: 0; overflow: hidden; }
html.ms-on { overflow: hidden; height: 100%; }
.ms-on .home { height: 100%; }
.ms-on .ms { position: relative; margin: var(--frame); height: var(--h); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, var(--h)); touch-action: none; }
.ms-on .ms-section { height: var(--h); min-height: 0; will-change: transform; }
.ms-on .l1 { grid-area: 1 / 1; } .ms-on .l2 { grid-area: 2 / 1; } .ms-on .l3 { grid-area: 3 / 1; } .ms-on .l4 { grid-area: 4 / 1; } .ms-on .l5 { grid-area: 5 / 1; } .ms-on .l6 { grid-area: 6 / 1; } .ms-on .l7 { grid-area: 7 / 1; }
.ms-on .r1 { grid-area: 1 / 2; } .ms-on .r2 { grid-area: 2 / 2; } .ms-on .r3 { grid-area: 3 / 2; } .ms-on .r4 { grid-area: 4 / 2; } .ms-on .r5 { grid-area: 5 / 2; } .ms-on .r6 { grid-area: 6 / 2; } .ms-on .r7 { grid-area: 7 / 2; }
.ms-on .ms-section.l { transform: translateY(calc(var(--k, 0) * var(--h) * -1)); transition: transform 700ms linear; }
.ms-on .ms-section.r { transform: translateY(calc((6 - var(--k, 0)) * var(--h) * -1)); transition: transform 700ms linear; }
@media (prefers-reduced-motion: reduce) { .ms-on .ms-section.l, .ms-on .ms-section.r { transition: none; } }
html.ms-on.s0 { --k: 0; } html.ms-on.s1 { --k: 1; } html.ms-on.s2 { --k: 2; } html.ms-on.s3 { --k: 3; } html.ms-on.s4 { --k: 4; } html.ms-on.s5 { --k: 5; } html.ms-on.s6 { --k: 6; }
.ms-on .ms-section.has-text { padding: 0 clamp(24px, 7vw, calc(100 * var(--u))); }
.ms-on .ms-section .inner { width: 100%; }
.ms-on .ms-dots { display: flex; flex-direction: column; gap: 20px; position: fixed; right: 30px; top: 50%; transform: translateY(-50%); z-index: 55; }
.ms-on .ms-dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .35); }
.ms-on .ms-dots button[aria-current="true"] { background: #fff; border-color: #fff; transform: scale(1.15); }

/* ---------- À propos ---------- */
.about .a-sec { position: relative; overflow: hidden; }
.a-hero { background: #fff; min-height: 100vh; display: grid; place-items: center; text-align: center; }
.a-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; max-width: none; }
.a-hero .a-hero-text { position: relative; z-index: 1; padding: 0 20px; }
.a-hero .a-sub { font: 400 30px/1.2 "Reenie Beanie", cursive; font-style: italic; color: #fff; text-shadow: 0 0 2px rgba(0, 0, 0, .35); }
.a-hero h1 { font: 800 min(7vw, 56px)/1.1 "Raleway", sans-serif; color: #fff; letter-spacing: 2px; text-transform: uppercase; }
.a-hero .a-sign { width: 234px; margin: -30px auto 0; position: relative; }

.a-work { background: #333 url("/assets/img/local_web3-h.webp") center / cover no-repeat; color: #fff; padding: 60px 20px 0; }
.a-work .a-sub { text-align: center; font: italic 400 35px/1 "Reenie Beanie", cursive; color: #e8e8e8; }
.a-work h2 { text-align: center; font: 400 min(10vw, 65px)/1.4 "Montserrat", sans-serif; letter-spacing: -5px; color: #f7f7f7; margin-top: 4px; }
.a-boxes { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: 1180px; margin: 30px auto 0; }
@media (min-width: 900px) { .a-boxes { grid-template-columns: repeat(3, 1fr); } }
.a-box { background: rgba(255, 255, 255, .8); padding: 25px 20px 20px; color: #000; }
.a-box h3 { font: italic 400 45px/20px "Reenie Beanie", cursive; letter-spacing: -1px; color: var(--gold); margin-bottom: 30px; padding-top: 12px; }
.a-box img { width: 100%; height: auto; margin-bottom: 20px; }
.a-box p { color: #000; }

.a-serv { background: #333; color: #fff; display: grid; grid-template-columns: 1fr; }
.a-serv-text { padding: 70px 50px; display: flex; flex-direction: column; justify-content: center; }
.a-serv-text .a-sub { font: italic 400 30px/20px "Reenie Beanie", cursive; margin-bottom: 4px; }
.a-serv-text h2 { font: 400 min(9vw, 55px)/1.6 "Montserrat", sans-serif; letter-spacing: -5px; margin-bottom: 10px; }
.a-serv-text p { color: #fff; max-width: 400px; }
.a-serv-text .btn-gold { display: inline-block; margin-top: 25px; width: 231px; height: 51px; background: var(--gold); border: 2px solid var(--gold); color: #fff; font: 400 12px/47px Arial, sans-serif; text-align: center; }
.a-serv-text .btn-gold:hover { background: #333; text-decoration: none; }
.a-serv-list { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 500px); overflow-x: auto; scroll-snap-type: x mandatory; }
.a-serv-list li { position: relative; scroll-snap-align: start; min-height: 420px; }
.a-serv-list img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-width: none; }
.a-serv-list a { position: absolute; left: 0; right: 0; bottom: 60px; text-align: center; font: 600 18px/27px var(--adventor); letter-spacing: 4px; color: #fff; }
@media (min-width: 1025px) {
  html:has(.about):not(.step-on) { scroll-snap-type: y proximity; }
  .about .a-sec { scroll-snap-align: start; scroll-margin-top: 15px; }
  .a-hero, .a-work, .a-serv { min-height: calc(100vh - 30px); }
  .a-hero { margin: 15px 15px 0; }
  .a-work { margin: 0 15px; padding-top: 110px; }
  .a-serv { margin: 0 15px; grid-template-columns: 500px 1fr; }
  .a-serv-list { grid-auto-columns: 500px; }
  .a-serv-list li { min-height: calc(100vh - 30px); }
}
@media (max-width: 1024px) { .a-hero { margin-top: 140px; min-height: 60vh; } .a-hero .a-sub { font-size: 24px; } }

/* ---------- Page 404 ---------- */
.nf { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 180px 20px 60px; color: var(--ink); }
.nf h1 { font-size: 80px; line-height: 1; letter-spacing: 5px; }
@media (min-width: 1025px) { .nf { padding-top: 100px; } }
