/* ==========================================================
   HORS-CHAMP STUDIO — Direction artistique
   Noir #0D0D0D · Blanc #F3F3F3 · Gris #7A7A7A · Rouge #5E0F16 · Or #B89352
   Titres : Bebas Neue · Textes : Montserrat
   ========================================================== */
:root {
  --black: #0D0D0D;
  --ink: #111111;
  --surface: #151515;
  --surface-2: #1B1B1B;
  --line: #262626;
  --line-2: #333;
  --white: #F3F3F3;
  --grey: #7A7A7A;
  --grey-2: #A5A5A5;
  --red: #5E0F16;
  --red-2: #8E1B25;
  --red-txt: #C23A45;
  --gold: #B89352;
  --display: 'Bebas Neue', 'Anton', Impact, sans-serif;
  --text: 'Montserrat', 'Inter', system-ui, sans-serif;
  --radius: 2px;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--black); color: var(--white);
  font: 400 15px/1.65 var(--text); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.muted { color: var(--grey); } .small { font-size: 13px; } .mt { margin-top: 14px; } .mt-l { margin-top: 32px; }
.center { text-align: center; }
.ic { width: 20px; height: 20px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Grain cinéma */
.grain { position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: .06;
  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");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(1%,3%)} }
@media (prefers-reduced-motion: reduce) { .grain { animation: none; } * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Typo */
.display { font-family: var(--display); letter-spacing: .02em; line-height: .95; text-transform: uppercase; }
.label { font: 500 11px/1.4 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--grey-2); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.label::before { content: ''; width: 6px; height: 6px; background: var(--red-2); }
.label.no-dot::before { display: none; }
.h-section { font-family: var(--display); font-size: clamp(40px, 6vw, 72px); line-height: .95; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 18px; }
.h-section em { font-style: normal; color: var(--red-txt); }
.lead { font-size: 17px; color: #cfcfcf; max-width: 640px; }

/* Lockup logo */
.lockup { display: inline-flex; align-items: center; gap: 16px; }
.lockup-frame { width: 52px; height: 52px; color: var(--white); flex: none; }
.lockup-text { display: flex; flex-direction: column; border-left: 1px solid var(--red-2); padding-left: 16px; }
.lockup-name { font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: .04em; text-transform: uppercase; }
.lockup-studio { font-size: 12px; letter-spacing: .62em; text-transform: uppercase; margin-top: 4px; }
.lockup-base { font-family: var(--display); color: var(--red-txt); font-size: 13px; letter-spacing: .3em; margin-top: 6px; }

/* Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border: 1px solid transparent;
  font: 600 12px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius);
  transition: background .2s, border-color .2s, color .2s, transform .2s; background: none; color: var(--white); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--red); border-color: var(--red); }
.btn-primary:hover { background: var(--red-2); border-color: var(--red-2); }
.btn-outline { border-color: rgba(243,243,243,.35); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.04); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: #fff; color: var(--black); }
.btn-small { padding: 9px 14px; font-size: 11px; }
.btn-danger { color: #e66; border-color: rgba(230,102,102,.35); }
.btn-danger:hover { background: rgba(230,102,102,.1); color: #f88; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.linklike { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; display: inline-flex; gap: 10px; align-items: center; }

/* Header public */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13,13,13,.82); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 30px; height: 30px; color: var(--white); }
.brand-sep { width: 1px; height: 30px; background: var(--red-2); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text span { font-family: var(--display); font-size: 22px; letter-spacing: .05em; text-transform: uppercase; }
.brand-text small { font-size: 9px; letter-spacing: .5em; text-transform: uppercase; color: var(--grey-2); margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-2); position: relative; padding: 6px 0; }
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--white); }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--red-txt); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.nav-toggle .ic { width: 26px; height: 26px; }

/* Hero */
.hero { position: relative; min-height: calc(100vh - 72px); display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 50% 45% at 78% 18%, rgba(243,243,243,.18), transparent 60%),
  radial-gradient(ellipse 80% 60% at 50% 110%, rgba(94,15,22,.35), transparent 60%), linear-gradient(180deg, #0a0a0a, #0D0D0D); }
.hero-bg.has-img { background-size: cover; background-position: center; }
.hero-bg.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,13,.55), rgba(13,13,13,.75) 60%, #0D0D0D); }
.hero-beam { position: absolute; z-index: -1; top: -10%; right: 8%; width: 46vw; height: 130%; transform: rotate(28deg); transform-origin: top;
  background: linear-gradient(180deg, rgba(243,243,243,.10), transparent 70%); filter: blur(30px); animation: beam 7s ease-in-out infinite alternate; }
@keyframes beam { from { opacity: .55; transform: rotate(26deg); } to { opacity: 1; transform: rotate(31deg); } }
.hero-inner { padding: 80px 0; }
.hero-logo { position: relative; display: inline-block; padding: 34px 40px 30px 58px; margin-bottom: 36px; }
.hero-logo svg.frame { position: absolute; left: 0; top: 0; width: 62%; height: 100%; overflow: visible; }
.hero-logo svg.frame path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 1.6s .3s cubic-bezier(.7,0,.3,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-name { font-family: var(--display); font-size: clamp(46px, 13vw, 160px); line-height: .85; letter-spacing: .03em; display: block; white-space: nowrap; text-transform: uppercase; opacity: 0; animation: fadeup 1s 1.3s forwards; }
.hero-studio { display: block; font-size: clamp(14px, 2.4vw, 26px); letter-spacing: .9em; margin-right: -.9em; text-transform: uppercase; margin-top: 10px; opacity: 0; animation: fadeup 1s 1.6s forwards; }
.hero-tags { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; font-family: var(--display); font-size: 18px; letter-spacing: .12em; opacity: 0; animation: fadeup 1s 1.9s forwards; }
.hero-tags span + span::before { content: '•'; color: var(--red-txt); margin-right: 14px; }
.hero-title { font-size: clamp(18px, 2.2vw, 24px); font-weight: 300; margin: 30px auto 10px; max-width: 720px; opacity: 0; animation: fadeup 1s 2.1s forwards; }
.hero-text { color: var(--grey-2); max-width: 620px; margin: 0 auto 34px; opacity: 0; animation: fadeup 1s 2.2s forwards; }
.hero .btn-row { justify-content: center; opacity: 0; animation: fadeup 1s 2.4s forwards; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 1px; height: 48px; background: linear-gradient(var(--white), transparent); animation: cue 2s infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Sections */
.section { padding: 110px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.page-hero { padding: 90px 0 50px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 50% 80% at 85% 0%, rgba(243,243,243,.07), transparent 70%); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }

/* Univers / valeurs */
.values { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.value { padding: 30px 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; border-right: 1px solid var(--line); transition: background .3s; }
.value:last-child { border-right: 0; }
.value:hover { background: var(--surface); }
.value .ic { width: 34px; height: 34px; color: var(--white); stroke-width: 1.2; }
.value span { font-family: var(--display); font-size: 20px; letter-spacing: .1em; }

/* Cartes projets */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.project-card { display: block; position: relative; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .3s; }
.project-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.poster { aspect-ratio: 2 / 3; background: #0a0a0a; position: relative; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s, filter .6s; filter: grayscale(.2) contrast(1.05); }
.project-card:hover .poster img { transform: scale(1.04); filter: none; }
.poster-empty { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(ellipse 60% 40% at 50% 15%, rgba(243,243,243,.12), transparent 70%), #0b0b0b; }
.poster-empty svg { width: 34%; color: rgba(243,243,243,.6); }
.poster .badge { position: absolute; top: 12px; left: 12px; }
.project-body { padding: 18px 18px 20px; }
.project-body h3 { font-family: var(--display); font-size: 28px; letter-spacing: .04em; line-height: 1; margin: 0 0 6px; }
.project-meta { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.project-body p { color: var(--grey-2); font-size: 13.5px; margin: 10px 0 0; }

.badge { display: inline-block; padding: 4px 9px; font: 600 10px/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); background: rgba(13,13,13,.85); color: var(--grey-2); border-radius: var(--radius); white-space: nowrap; }
.st-developpement { color: #9fb3c8; border-color: #3b4855; }
.st-preproduction { color: var(--gold); border-color: #5e4c2c; }
.st-tournage { color: #fff; background: var(--red); border-color: var(--red-2); }
.st-postproduction { color: #c7a5e0; border-color: #4f3d5c; }
.st-termine { color: #9fd3a8; border-color: #36513b; }
.ev-tournage { color: #fff; background: var(--red); border-color: var(--red-2); }
.ev-reunion { color: #9fb3c8; border-color: #3b4855; }
.ev-atelier { color: var(--gold); border-color: #5e4c2c; }
.ev-casting { color: #e2a3c3; border-color: #5a3a4b; }
.ev-projection, .ev-festival { color: #9fd3a8; border-color: #36513b; }
.badge-int { color: var(--grey); border-style: dashed; }

/* Événements */
.event-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.event-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.event-date { text-align: center; border: 1px solid var(--line-2); padding: 10px 0 8px; }
.event-date b { display: block; font-family: var(--display); font-size: 40px; font-weight: 400; line-height: .9; }
.event-date small { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey-2); }
.event-row h3 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.event-row .muted { font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.event-row .muted .ic { width: 14px; height: 14px; }

/* Chiffres */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.stat { padding: 34px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 64px; line-height: .9; }
.stat span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-2); }

/* CTA rouge */
.cta-band { background: linear-gradient(110deg, rgba(94,15,22,.9), rgba(13,13,13,.95) 70%), radial-gradient(circle at 85% 30%, rgba(255,80,80,.3), transparent 50%); border: 1px solid var(--red); padding: 60px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }

/* Équipe */
.member { background: var(--surface); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.member h3 { font-family: var(--display); font-size: 26px; letter-spacing: .04em; margin: 0; line-height: 1; }
.member .role { color: var(--red-txt); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.member p { color: var(--grey-2); font-size: 13.5px; margin: 0; }
.avatar { width: 64px; height: 64px; display: grid; place-items: center; font-family: var(--display); font-size: 26px; letter-spacing: .04em; border: 1px solid var(--line-2); background: var(--black); position: relative; }
.avatar::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 22%; height: 22%; background: var(--surface); }
.avatar.sm { width: 36px; height: 36px; font-size: 15px; }
.avatar.sm::after { background: var(--ink); }

/* Fiche projet */
.project-hero { display: grid; grid-template-columns: 340px 1fr; gap: 56px; padding: 70px 0; align-items: start; }
.project-hero .poster { border: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 40px; margin: 24px 0 30px; }
.facts dt { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.facts dd { margin: 0; font-weight: 600; }
.video { position: relative; aspect-ratio: 16/9; background: #000; border: 1px solid var(--line); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.credits { columns: 2; column-gap: 40px; padding: 0; list-style: none; margin: 0; }
.credits li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; }
.credits li span:first-child { color: var(--grey); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* Filtres */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { padding: 8px 14px; border: 1px solid var(--line-2); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); }
.filters a.active, .filters a:hover { border-color: var(--white); color: var(--white); }

/* Formulaires */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .field-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey-2); font-weight: 500; }
.field small { color: var(--grey); font-size: 12px; }
input[type=text], input[type=number], input[type=email], input[type=password], input[type=date], input[type=time], input[type=url], input[type=search], input[type=file], select, textarea {
  width: 100%; background: var(--ink); color: var(--white); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 12px 14px; font: inherit; font-size: 14px; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--grey-2); }
input[type=date], input[type=time] { color-scheme: dark; }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--red-2); width: 16px; height: 16px; margin-top: 3px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; padding: 16px; border: 1px solid var(--line); background: var(--ink); }
.hp { position: absolute; left: -9999px; }

/* Flash */
.flash { padding: 14px 18px; border-left: 3px solid var(--grey); background: var(--surface); margin-bottom: 18px; font-size: 14px; }
.flash-success { border-color: #4caf6a; }
.flash-error { border-color: #e05561; background: #1d1012; }
.flash-info { border-color: var(--gold); }
.flash code, .secret { font-family: ui-monospace, Menlo, monospace; background: var(--black); padding: 3px 8px; border: 1px solid var(--line-2); letter-spacing: .05em; }

/* Contenu légal / texte */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-size: 32px; letter-spacing: .04em; margin-top: 40px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 70px 0 0; background: #0a0a0a; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; color: var(--grey-2); }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--grey-2); }
.socials a:hover { color: var(--white); border-color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding: 22px 0; margin-top: 56px; border-top: 1px solid var(--line); font-size: 12px; color: var(--grey); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* ======================= ESPACE MEMBRES ======================= */
.espace { background: var(--black); }
.esp-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.esp-side { background: #0a0a0a; border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.esp-side .brand { padding: 4px 8px 18px; border-bottom: 1px solid var(--line); }
.esp-nav { display: flex; flex-direction: column; gap: 2px; }
.esp-nav a, .esp-side-foot a, .esp-side-foot .linklike { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: var(--grey-2); font-size: 13.5px; border-left: 2px solid transparent; width: 100%; }
.esp-nav a:hover, .esp-side-foot a:hover, .esp-side-foot .linklike:hover { color: var(--white); background: var(--surface); }
.esp-nav a.active { color: var(--white); background: var(--surface); border-left-color: var(--red-txt); }
.esp-nav .ic, .esp-side-foot .ic { width: 18px; height: 18px; }
.pill { margin-left: auto; font-style: normal; background: var(--red); color: #fff; font-size: 11px; padding: 1px 8px; border-radius: 10px; }
.esp-side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 14px; }
.esp-main { min-width: 0; }
.esp-top { display: flex; align-items: center; gap: 16px; padding: 18px 36px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(13,13,13,.9); backdrop-filter: blur(8px); z-index: 20; }
.esp-title { font-family: var(--display); font-size: 34px; letter-spacing: .04em; margin: 0; line-height: 1; flex: 1; }
.me { display: flex; align-items: center; gap: 10px; }
.me-txt { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; }
.me-txt small { color: var(--grey); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.esp-content { padding: 32px 36px 60px; }

.panel { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.panel + .panel { margin-top: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-family: var(--display); font-size: 24px; letter-spacing: .05em; margin: 0; }
.dash { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: var(--surface); border: 1px solid var(--line); padding: 18px 20px; }
.kpi b { font-family: var(--display); font-size: 42px; font-weight: 400; line-height: 1; display: block; }
.kpi span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .sub { color: var(--grey); font-size: 12.5px; }
.empty { color: var(--grey); font-size: 14px; padding: 18px 0; }
.annonce { padding: 16px 0; border-bottom: 1px solid var(--line); }
.annonce:last-child { border-bottom: 0; }
.annonce h3 { font-size: 16px; font-weight: 600; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.annonce .sub { color: var(--grey); font-size: 12px; margin-bottom: 8px; }

table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:hover td { background: rgba(255,255,255,.015); }
.table-wrap { overflow-x: auto; }
.inline-form { display: inline; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4caf6a; margin-right: 6px; }
.dot.off { background: var(--grey); }
.unread td { font-weight: 600; }

/* Calendrier */
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav h2 { font-family: var(--display); font-size: 30px; letter-spacing: .05em; margin: 0 10px; min-width: 210px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-h { padding: 10px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink); }
.cal-d { min-height: 118px; padding: 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.cal-d.out { background: #0b0b0b; color: #444; }
.cal-d.today { box-shadow: inset 0 0 0 1px var(--red-txt); }
.cal-d .n { font-size: 12px; color: var(--grey-2); font-weight: 600; }
.cal-d.today .n { color: var(--red-txt); }
.cal-ev { display: block; font-size: 11.5px; line-height: 1.3; padding: 4px 6px; background: var(--surface-2); border-left: 2px solid var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev:hover { background: #242424; }
.cal-ev.ev-tournage { border-color: var(--red-txt); color: var(--white); background: rgba(94,15,22,.45); }
.cal-ev.ev-reunion { border-color: #6d8399; }
.cal-ev.ev-atelier { border-color: var(--gold); }
.cal-ev.ev-casting { border-color: #c27fa3; }
.cal-ev.ev-projection, .cal-ev.ev-festival { border-color: #5fa36f; }

.progress { height: 4px; background: var(--line); position: relative; margin-top: 8px; }
.progress i { position: absolute; inset: 0 auto 0 0; background: var(--red-txt); }
.task-done .grow > span:first-child { text-decoration: line-through; color: var(--grey); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a { padding: 10px 16px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--white); border-color: var(--red-txt); }

/* Login */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(ellipse 40% 50% at 80% 10%, rgba(243,243,243,.10), transparent 70%), radial-gradient(ellipse 60% 50% at 20% 110%, rgba(94,15,22,.35), transparent 70%), var(--black); }
.auth-box { width: min(420px, 100%); background: rgba(21,21,21,.9); border: 1px solid var(--line); padding: 40px 36px; }
.auth-box .lockup { margin-bottom: 30px; }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .value:nth-child(3) { border-right: 0; } .value:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .two-col, .dash { grid-template-columns: 1fr; gap: 32px; }
  .project-hero { grid-template-columns: 1fr; }
  .project-hero .poster { max-width: 320px; }
  .stats, .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta-band { grid-template-columns: 1fr; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; }
  .esp-layout { grid-template-columns: 1fr; }
  .esp-side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .3s; }
  .esp-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.6); }
  .esp-top .nav-toggle { display: block; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; background: var(--black); flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .3s; }
  .main-nav.open { transform: none; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { margin-top: 16px; }
  .section { padding: 72px 0; }
  .hero-logo { padding: 24px 16px 22px 30px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .value { border-right: 1px solid var(--line) !important; border-bottom: 1px solid var(--line); }
  .value:nth-child(2n) { border-right: 0 !important; }
  .event-row { grid-template-columns: 70px 1fr; }
  .event-row > :last-child { grid-column: 2; }
  .form-row, .form-row.three, .checks { grid-template-columns: 1fr; }
  .credits { columns: 1; }
  .facts { grid-template-columns: repeat(2, auto); }
  .esp-content { padding: 22px 16px 50px; } .esp-top { padding: 14px 16px; }
  .me-txt { display: none; }
  .cal { grid-template-columns: 1fr; border-left: 0; }
  .cal-h, .cal-d.out { display: none; }
  .cal-d { min-height: 0; border-left: 1px solid var(--line); }
  .cal-d:not(:has(.cal-ev)):not(.today) { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Appli installée (iPhone : encoche / barre du bas) */
@media (display-mode: standalone) {
  .site-header { padding-top: env(safe-area-inset-top); }
  .esp-top { padding-top: calc(18px + env(safe-area-inset-top)); }
  .esp-side { padding-top: calc(22px + env(safe-area-inset-top)); }
  .esp-content, .site-footer { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
}
.table td .btn { vertical-align: middle; }

/* ======================= MATÉRIEL & POINTEUSE ======================= */
.tabs a { display: inline-flex; align-items: center; gap: 8px; }
.tabs .ic { width: 16px; height: 16px; }
.flag-row { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.flag { display: inline-flex; align-items: center; gap: 5px; font: 600 10px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border: 1px dashed var(--line-2); color: var(--grey); background: none; cursor: pointer; border-radius: var(--radius); }
span.flag { cursor: default; }
.flag .ic { width: 13px; height: 13px; }
.flag.on { border-style: solid; border-color: var(--gold); color: var(--gold); }
.gear-cat { font-family: var(--display); font-weight: 400; font-size: 22px; letter-spacing: .05em; margin: 26px 0 6px; display: flex; gap: 10px; align-items: center; }
.gear-cat:first-of-type { margin-top: 0; }
.link-row { display: grid; grid-template-columns: 1fr 110px auto; gap: 10px; align-items: center; margin-bottom: 8px; }
.qty-label { display: flex; align-items: center; gap: 6px; color: var(--grey-2); }
.qty-label input, .qty input, .qty-mini { width: 74px; padding: 8px 10px; }
.qty-mini { width: 64px; flex: none; }
.pack-progress { display: grid; grid-template-columns: auto 1fr auto 1fr; gap: 6px 14px; align-items: center; font-size: 12px; color: var(--grey-2); margin: 6px 0 16px; }
.pack-progress .progress { margin: 0; }
.gear-list td { vertical-align: top; }
.gear-list .cat-row td { font: 500 10.5px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--red-txt); padding-top: 20px; border-bottom-color: var(--line-2); }
.gear-list .chk { width: 70px; text-align: center; }
.gear-list .chk label { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.gear-list .chk input { width: 20px; height: 20px; accent-color: #4caf6a; }
.gear-list .chk .lbl { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.gear-list .qty { white-space: nowrap; width: 120px; }
.gear-list tr.is-packed td strong { color: var(--grey-2); }
.note-input { margin-top: 6px; padding: 6px 10px !important; font-size: 12.5px !important; background: transparent !important; border-color: var(--line) !important; }
.warn { color: #f0a040; }
.sugg-panel { border-color: var(--gold); }
.flash-in { animation: flashin 1.4s ease; }
@keyframes flashin { 0% { box-shadow: 0 0 0 0 rgba(184,147,82,.7); } 100% { box-shadow: 0 0 0 18px rgba(184,147,82,0); } }
.pick-list { max-height: 560px; overflow-y: auto; }
.pick-list .ic { width: 13px; height: 13px; vertical-align: -2px; }
.day-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.day-chip { flex: none; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 1px solid var(--line-2); min-width: 130px; }
.day-chip b { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: .04em; }
.day-chip small { font-size: 11px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.day-chip.active { border-color: var(--red-txt); background: rgba(94,15,22,.25); }
.day-chip.done b::after { content: ' ✓'; color: #4caf6a; font-family: var(--text); font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); flex: none; }
.seg-btn { background: none; border: 0; color: var(--grey); font: 600 10.5px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding: 10px 12px; cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line-2); }
.seg-btn.on.s-present { background: #23412b; color: #9fd3a8; }
.seg-btn.on.s-retard { background: #4a3b1f; color: var(--gold); }
.seg-btn.on.s-absent { background: var(--red); color: #fff; }
.attendance li.att-absent .grow strong { text-decoration: line-through; color: var(--grey-2); }
.recap td, .recap th { text-align: center; padding: 8px 6px; }
.recap td:first-child, .recap th:first-child { text-align: left; }
.recap .m-present { color: #9fd3a8; } .recap .m-retard { color: var(--gold); font-weight: 700; } .recap .m-absent { color: #e05561; font-weight: 700; }
.print-only { display: none; }
@media (max-width: 760px) {
  .link-row { grid-template-columns: 1fr 90px auto; }
  .attendance li { flex-wrap: wrap; } .attendance .seg { width: 100%; } .seg-btn { flex: 1; }
  .pack-progress { grid-template-columns: auto 1fr; }
}
@media print {
  body, .espace { background: #fff !important; color: #000 !important; }
  .grain, .esp-side, .esp-top, .tabs, .no-print, .btn-row, #flashes, .install-tip { display: none !important; }
  .esp-layout { display: block; } .esp-content { padding: 0; }
  .dash { display: block; }
  .panel { border: 0; background: #fff; padding: 0; }
  .panel-head h2, .print-only { color: #000; display: block; }
  .table td, .gear-list .cat-row td { color: #000; border-color: #ccc; }
  .gear-list .chk input { accent-color: #000; }
}
.tabs { overflow-x: auto; scrollbar-width: none; }
.tabs a { white-space: nowrap; flex: none; }

/* ======================= STATISTIQUES ======================= */
.vchart { position: relative; height: 220px; margin: 10px 0 0 34px; }
.vc-grid { position: absolute; inset: 0; }
.vc-grid span { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.vc-grid em { position: absolute; left: -34px; top: -8px; width: 26px; text-align: right; font-style: normal; font-size: 11px; color: var(--grey); }
.vc-bars { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; align-items: end; }
.vc-col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; }
.vc-col i { display: block; width: 100%; max-width: 22px; min-height: 0; background: var(--red-txt); border-radius: 4px 4px 0 0; transition: background .15s; }
.vc-col:hover i, .vc-col:focus i, .vc-col.on i { background: #e0525e; }
.vc-col:hover::before, .vc-col.on::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.04); }
.vc-tip { display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); border: 1px solid var(--line-2); padding: 8px 10px; font-size: 12px; white-space: nowrap; z-index: 5; pointer-events: none; }
.vc-col:hover .vc-tip, .vc-col:focus .vc-tip, .vc-col.on .vc-tip { display: block; }
.vc-col:hover .vc-tip { bottom: auto; top: 0; transform: translate(-50%, -110%); }
.vc-axis { display: flex; justify-content: space-between; margin: 6px 0 0 34px; font-size: 11px; color: var(--grey); }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 40%) 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--grey-2); }
.hb-track { height: 8px; background: var(--line); position: relative; border-radius: 0 4px 4px 0; }
.hb-track i { position: absolute; inset: 0 auto 0 0; background: var(--red-txt); border-radius: 0 4px 4px 0; }
.hbars b, .hb-inline b { text-align: right; font-weight: 600; }
.hb-inline { display: grid; grid-template-columns: 1fr 36px; gap: 10px; align-items: center; }
.grid > .panel { margin-top: 0; }

/* ======================= FICHIERS ======================= */
.file-list { display: flex; flex-direction: column; }
.file-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-row.busy { opacity: .7; align-items: center; }
.file-row .grow { flex: 1; min-width: 0; }
.fname { font-weight: 600; text-align: left; word-break: break-word; }
.fname:hover { color: #fff; text-decoration: underline; }
.file-row .sub { color: var(--grey); font-size: 12.5px; margin-top: 4px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.file-actions { display: flex; gap: 6px; flex: none; }
.file-actions .btn { padding: 8px 10px; }
.ftype { flex: none; width: 46px; height: 54px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--ink); color: var(--grey-2); font: 700 10px/1 var(--text); letter-spacing: .08em; cursor: pointer; position: relative; }
.ftype::after { content: ''; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.ft-pdf { color: #e0525e; } .ft-image { color: #9fd3a8; } .ft-video { color: #c7a5e0; } .ft-audio { color: var(--gold); }
.ft-office { color: #8fb4e8; } .ft-fountain { color: #fff; } .ft-link { color: var(--gold); }
.file-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.file-edit input[name=note] { grid-column: 1 / -1; }
.file-edit input, .file-edit select { padding: 8px 10px; font-size: 13px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border: 1px dashed var(--line-2); background: var(--ink); cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.dropzone .ic { width: 30px; height: 30px; color: var(--grey-2); }
.dropzone:hover, .dropzone.over { border-color: var(--red-txt); background: rgba(94,15,22,.15); }
.viewer { position: fixed; inset: 0; z-index: 200; background: rgba(5,5,5,.94); display: flex; flex-direction: column; padding: 14px; padding-top: calc(14px + env(safe-area-inset-top)); }
.viewer-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.viewer-title { display: flex; gap: 12px; align-items: center; min-width: 0; }
.viewer-title .ftype { width: 38px; height: 44px; cursor: default; }
.viewer-title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 50vw; }
.viewer-body { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: auto; }
.viewer-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.viewer-body img, .viewer-body video { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-note { font-size: 12px; color: var(--grey); margin: 8px 0 0; }
.viewer-msg { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 30px; }
.viewer-msg .ic { width: 40px; height: 40px; color: var(--grey-2); }
.textview { width: 100%; max-width: 900px; height: 100%; overflow: auto; background: var(--ink); border: 1px solid var(--line); padding: 20px; margin: 0; white-space: pre-wrap; font: 13px/1.6 ui-monospace, Menlo, monospace; color: #ddd; }
.screenplay { width: 100%; max-width: 720px; height: 100%; overflow: auto; background: #fbfaf7; color: #111; padding: 60px 70px; font: 15px/1.5 'Courier Prime', 'Courier New', Courier, monospace; }
.screenplay p { margin: 0; }
.sp-gap { height: 1em; }
.sp-scene { font-weight: 700; text-transform: uppercase; }
.sp-char { margin-left: 37% !important; text-transform: uppercase; }
.sp-paren { margin-left: 30% !important; }
.sp-dial { margin: 0 16% 0 22% !important; }
.sp-trans { text-align: right; text-transform: uppercase; }
@media (max-width: 760px) {
  .file-actions .btn span { display: none; }
  .file-row { flex-wrap: wrap; } .file-actions { width: 100%; justify-content: flex-end; }
  .screenplay { padding: 30px 20px; font-size: 13px; }
  .viewer-title strong { max-width: 70vw; }
}
.file-edit[hidden] { display: none; }
.viewer { background: #0b0b0b; }
