/* anur — feuille commune. Charte : logo/kit/guide-usage.html */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --nuit: #0E1116;
  --nuit-2: #151922;
  --nuit-3: #1D222D;
  --lune: #F2E8D5;
  --lune-2: rgba(242, 232, 213, .64);
  --lune-3: rgba(242, 232, 213, .14);
  --films: #E0362C;
  --design: #F2A93B;
  --web: #6E8BFF;
  --educ: #5FCB9B;
  --accent: var(--lune);
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}
body.films { --accent: var(--films); }
body.design { --accent: var(--design); }
body.web { --accent: var(--web); }
body.educ { --accent: var(--educ); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--nuit); color: var(--lune);
  font: 400 17px/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--nuit); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--lune); color: var(--nuit); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* En-tête */
.top {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(var(--nuit) 30%, rgba(14, 17, 22, 0));
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.top .brand img { height: 34px; width: auto; }
.top nav { display: flex; gap: clamp(14px, 2.4vw, 32px); font: 500 15px/1 "Outfit", sans-serif; letter-spacing: .02em; }
.top nav a { text-decoration: none; color: var(--lune-2); padding: 8px 0; position: relative; transition: color .2s; }
.top nav a:hover, .top nav a[aria-current] { color: var(--lune); }
.top nav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 6px; height: 6px; background: var(--accent); transform: translateX(-50%) rotate(45deg); }
.top nav .n-films:hover { color: var(--films); }
.top nav .n-design:hover { color: var(--design); }
.top nav .n-web:hover { color: var(--web); }
.top nav .n-educ:hover { color: var(--educ); }

/* Titres */
h1, h2, h3 { font-family: "Outfit", sans-serif; font-weight: 500; margin: 0; letter-spacing: -.02em; line-height: 1.02; }
.kicker { font: 500 12px/1 "Outfit", sans-serif; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); }
.lede { color: var(--lune-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 38ch; }

/* ACCUEIL */
.hero { position: relative; overflow-x: clip; padding: clamp(64px, 12vh, 140px) 0 clamp(56px, 9vh, 110px); isolation: isolate; }
.hero::before {
  /* halo de lune, très discret */
  content: ""; position: absolute; z-index: -1; right: -10vw; top: -30vh; width: 80vw; height: 80vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, rgba(242, 232, 213, .07), rgba(242, 232, 213, 0));
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { font-size: clamp(42px, 7vw, 108px); font-weight: 400; }
.hero h1 em { font-style: normal; color: var(--lune-2); }
.hero .nun { width: clamp(84px, 11vw, 150px); margin-bottom: 32px; }
.hero .lede { margin: 28px 0 0; }
.arabe { font-size: 15px; color: var(--lune-2); margin-top: 14px; }
.arabe b { font-weight: 500; color: var(--lune); font-size: 20px; margin-right: 6px; }

.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(72px, 12vh, 140px); }
.door {
  --c: var(--lune);
  position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: clamp(420px, 62vh, 620px);
  padding: 28px; border-radius: 6px; overflow: hidden; text-decoration: none; background: var(--nuit-2);
  border-top: 3px solid var(--c); isolation: isolate; transition: transform .5s var(--ease);
}
.door.films { --c: var(--films); }
.door.design { --c: var(--design); }
.door.web { --c: var(--web); }
.door.educ { --c: var(--educ); }
.door:hover { transform: translateY(-6px); }
.door .bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; opacity: .5; filter: saturate(.85); transition: opacity .5s var(--ease), transform 1.2s var(--ease); }
.door:hover .bg { opacity: .62; transform: scale(1.04); }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 17, 22, .1), rgba(14, 17, 22, .92) 80%); }
.door .mark { width: 76px; height: 76px; }
.door .txt h2 { font-size: clamp(34px, 3.4vw, 50px); }
.door .txt h2 span { color: var(--c); }
.door .txt p { color: var(--lune-2); margin: 12px 0 22px; max-width: 30ch; font-size: 16px; }
.door .go { font: 500 15px/1 "Outfit", sans-serif; display: inline-flex; gap: 10px; align-items: center; color: var(--c); }
.door .go i { font-style: normal; transition: transform .3s var(--ease); }
.door:hover .go i { transform: translateX(5px); }
.motif { position: absolute; z-index: -1; right: -40px; top: 40px; width: 78%; opacity: .1; transition: opacity .5s, transform 1s var(--ease); }
.door:hover .motif { opacity: .2; transform: rotate(-4deg); }

.manifeste { border-top: 1px solid var(--lune-3); padding: clamp(64px, 10vh, 120px) 0; }
.manifeste .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.manifeste p { font: 400 clamp(24px, 2.6vw, 38px)/1.25 "Outfit", sans-serif; margin: 0; letter-spacing: -.01em; }
.manifeste p span { color: var(--lune-2); }
.manifeste p.kicker { font: 500 12px/1 "Outfit", sans-serif; letter-spacing: .24em; padding-top: 12px; }

/* PAGES BRANCHES */
.b-hero { padding: clamp(48px, 9vh, 110px) 0 clamp(40px, 7vh, 80px); }
.b-hero .lockup { width: clamp(220px, 30vw, 380px); height: auto; margin-bottom: clamp(36px, 6vh, 64px); }
.b-hero h1 { font-size: clamp(40px, 6.6vw, 100px); max-width: 14ch; }
.b-hero .lede { margin-top: 24px; }

/* bandeau vidéo plein écran films */
.reel { position: relative; aspect-ratio: 21 / 9; max-height: 78vh; width: 100%; overflow: hidden; background: #000; }
.reel video { width: 100%; height: 100%; object-fit: cover; opacity: .9; }

/* sommaire façon générique */
.index { padding-block: clamp(56px, 9vh, 100px) 24px; }
.index ol { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--lune-3); }
.index li a { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--lune-3); text-decoration: none; transition: padding .3s var(--ease), color .2s; }
.index li a:hover { padding-left: 12px; color: var(--accent); }
.index .num { font: 500 13px/1 "Outfit", sans-serif; color: var(--lune-2); letter-spacing: .1em; }
.index .t { font: 500 clamp(20px, 2.2vw, 30px)/1.15 "Outfit", sans-serif; }
.index .k { color: var(--lune-2); font-size: 14px; text-align: right; }

/* projets */
.projet { padding: clamp(56px, 9vh, 110px) 0; border-bottom: 1px solid var(--lune-3); scroll-margin-top: 70px; }
.projet .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: clamp(28px, 4vw, 64px); }
.projet .meta { align-self: start; position: sticky; top: 100px; }
.projet .meta .num { font: 500 13px/1 "Outfit", sans-serif; letter-spacing: .14em; color: var(--accent); }
.projet h2 { font-size: clamp(32px, 3.6vw, 54px); margin: 14px 0 10px; }
.projet .client { color: var(--lune-2); font-size: 15px; }
.projet .desc { margin: 18px 0 0; font-size: 16px; color: var(--lune-2); max-width: 34ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding: 0; list-style: none; }
.tags li { font-size: 12px; letter-spacing: .06em; border: 1px solid var(--lune-3); border-radius: 99px; padding: 5px 11px; color: var(--lune-2); }

.media { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.m { position: relative; overflow: hidden; border-radius: 4px; background: var(--nuit-3); cursor: zoom-in; border: 0; padding: 0; width: 100%; }
.m img, .m video { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), opacity .4s; }
.m:hover img { transform: scale(1.03); }
.m .prev { position: absolute; inset: 0; opacity: 0; }
.m.playing .prev { opacity: 1; }
.m.v { cursor: pointer; }
.m.v::after {
  content: "Lire"; position: absolute; left: 14px; bottom: 14px; font: 500 13px/1 "Outfit", sans-serif; letter-spacing: .08em;
  padding: 9px 14px 9px 30px; border-radius: 99px; background: rgba(14, 17, 22, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.m.v::before { content: ""; position: absolute; z-index: 1; left: 26px; bottom: 23px; border-left: 7px solid var(--accent); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
/* formats */
.s-2 { grid-column: span 2; } .s-3 { grid-column: span 3; } .s-4 { grid-column: span 4; } .s-6 { grid-column: span 6; }
.r-v { aspect-ratio: 9 / 16; } .r-p { aspect-ratio: 3 / 4; } .r-p2 { aspect-ratio: 2 / 3; } .r-h { aspect-ratio: 16 / 9; } .r-l { aspect-ratio: 3 / 2; } .r-w { aspect-ratio: 1280 / 270; }

/* pages design / web : services + bientôt */
.services { padding-block: clamp(40px, 7vh, 80px); }
.services ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--lune-3); border: 1px solid var(--lune-3); }
.services li { background: var(--nuit); padding: 28px; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.services li b { font: 500 22px/1.2 "Outfit", sans-serif; }
.services li span { color: var(--lune-2); font-size: 15px; }
.services li i { font-style: normal; font: 500 12px/1 "Outfit", sans-serif; color: var(--accent); letter-spacing: .14em; }
.bientot { padding: clamp(72px, 14vh, 160px) 0; text-align: center; position: relative; overflow: hidden; }
.bientot .mark { width: clamp(140px, 20vw, 240px); margin: 0 auto 36px; opacity: .9; }
.bientot h2 { font-size: clamp(34px, 5vw, 72px); }
.bientot p { color: var(--lune-2); margin: 18px auto 0; max-width: 44ch; }

/* contact */
.contact { padding: clamp(80px, 14vh, 160px) 0 48px; border-top: 1px solid var(--lune-3); }
.contact h2 { font-size: clamp(40px, 7vw, 108px); font-weight: 400; }
.contact .mail { display: inline-block; margin-top: 28px; font: 500 clamp(20px, 2.6vw, 34px)/1.2 "Outfit", sans-serif; text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 4px; overflow-wrap: anywhere; transition: color .2s; }
.contact .mail:hover { color: var(--accent); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: clamp(64px, 12vh, 120px); padding-top: 24px; border-top: 1px solid var(--lune-3); color: var(--lune-2); font-size: 14px; }
.foot img { height: 26px; width: auto; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--lune); }

/* visionneuse */
.lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 13, .96); color: var(--lune); }
.lb::backdrop { background: rgba(8, 10, 13, .9); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb .stage { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; padding: 64px 16px 24px; }
.lb .stage img, .lb .stage video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb .stage iframe { width: min(100%, calc((100dvh - 88px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.lb .close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--lune-3); background: var(--nuit-2); cursor: pointer; font-size: 22px; line-height: 1; }
.lb .close:hover { border-color: var(--lune); }

/* apparition au défilement */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.no-js .rv { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-grid, .manifeste .wrap, .projet .wrap { grid-template-columns: minmax(0, 1fr); }
  .projet .meta { position: static; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .door { min-height: 380px; }
  .services ul { grid-template-columns: minmax(0, 1fr); }
  .services li { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .wrap { height: 64px; }
  .top .brand img { height: 26px; }
  .top nav { gap: 14px; font-size: 14px; }
  .top nav .n-contact { display: none; }
  .media { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .s-2, .s-3 { grid-column: span 1; }
  .s-4, .s-6 { grid-column: span 2; }
  .index li a { grid-template-columns: 40px minmax(0, 1fr); }
  .index .k { display: none; }
  .reel { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}

/* bandeau films en triptyque vertical */
.reel.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--nuit); }
.reel.tri video { min-width: 0; }

/* Ils nous font confiance */
.clients { padding: clamp(40px, 7vh, 72px) 0; border-top: 1px solid var(--lune-3); overflow: hidden; }
.b-hero + .clients { border-top: 0; padding-top: 0; }
.clients .kicker { color: var(--lune-2); margin: 0 0 clamp(24px, 4vh, 40px); }
.marquee { display: flex; width: max-content; animation: defile 38s linear infinite; }
.marquee:hover { animation-play-state: paused; }
.marquee ul { display: flex; align-items: center; gap: clamp(48px, 7vw, 104px); margin: 0; padding: 0 clamp(24px, 3.5vw, 52px); list-style: none; }
.marquee li { flex: none; display: flex; align-items: center; height: 64px; }
.marquee img { width: auto; height: 34px; filter: brightness(0) invert(1); opacity: .62; transition: opacity .3s; }
.marquee li:hover img { opacity: 1; }
.marquee .l-rayban { height: 50px; }
.marquee .l-meta { height: 28px; }
.marquee .l-rc { height: 40px; }
.marquee .l-umadia { height: 32px; }
.marquee .l-beto { height: 36px; }
.marquee .l-nabfit { height: 56px; }
@keyframes defile { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .marquee img { height: 26px; }
  .marquee .l-rayban { height: 38px; } .marquee .l-meta { height: 22px; } .marquee .l-rc { height: 32px; }
  .marquee .l-umadia { height: 24px; } .marquee .l-beto { height: 28px; } .marquee .l-nabfit { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { width: auto; flex-wrap: wrap; justify-content: center; }
  .marquee ul { flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .marquee ul[aria-hidden] { display: none; }
}
