/* Variante sombre de la maquette. À charger après site-polish.css. */
:root {
  color-scheme: dark;
  --paper: #111113;
  --cream: #1a191b;
  --ink: #f4efeb;
  --muted: #b7aaa8;
  --red: #db626b;
  --red-deep: #29171b;
  --deep: #100d10;
  --line: #514348;
  --pale: #efa9ac;
}
html, body { background: var(--paper); color: var(--ink); }
body { background-image: radial-gradient(circle at 90% 0%, #35151c55, transparent 40rem); }
::selection { background: #a93642; color: #fff; }
.brand img,
.footer-identity img,
.footer-brand img {
  background: transparent;
  border: 0;
  object-fit: contain;
}

/* Navigation : en haut des images, puis en barre sombre au défilement. */
.site-header:not(.is-light):not(.is-red):not(.is-sticky) { color: #fff; }
.site-header.is-light,
.site-header.is-sticky,
header.is-sticky,
.news-detail .site-header {
  background: #141315ed;
  color: var(--ink);
  border-bottom: 1px solid #f1b3b02b;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.site-header.is-light .brand,
.site-header.is-light .menu,
.site-header.is-light .menu-button { color: var(--ink); }
.site-header.is-light .menu,
.site-header.is-light .menu-button,
.menu-button { background: #211c20b8; border-color: #d9646b8c; color: var(--ink); }
.site-header.is-red { background: #321a20ee; }
.site-header.is-light .menu i,
.site-header.is-light .menu-button i { background: var(--red); }
.menu-panel, .overlay { background: radial-gradient(circle at 82% 14%, #67252d 0, transparent 34%), linear-gradient(130deg, #101012, #22171b 72%, #3a1c23); }

/* Accueil : conserver la profondeur photographique du bandeau. */
.slider { background: #0b0a0d; }
.slide img { filter: saturate(.79) contrast(1.06) brightness(.83); }
.slide.poster img { filter: saturate(.7) contrast(1.06) brightness(.6) blur(2px); }
.slide::after { background: linear-gradient(90deg, #0b090de8, #0b090d8f 48%, #0b090d12 82%), linear-gradient(0deg, #0b090deb, transparent 61%); }
.rail button::before { background: var(--red); }
.rail .n, .actions b { color: #f09197; }
.actions a { border-color: var(--red); }
.arrows button, .menu { background: #100d10a8; }
.works { background: #111113; }
.works-intro p:last-child { color: #c7bbb8; }
.work-visual { background: #211a1e; }
.work-visual::after { background: linear-gradient(0deg, #0b090d75, transparent 57%); }
.work-film .work-copy { background: #211c20; box-shadow: 0 24px 65px #0005; }
.work-series, .work-series .work-copy { background: #4a2028; }
.work-telefilm { background: #191719; }
.work-copy h3 { color: #e8767d; }
.work-series .work-copy h3 { color: #fff; }
.works-end { background: #191719; }
.journal { background: #1a191b; border-color: #5a3a42; }
.journal::before { color: #e7737d0d; }
.journal-head aside, .house-copy p { color: #c5b8b5; }
.journal-list a { color: var(--ink); }
.journal-list a:hover { background: #db626b14; }
.house { background: #111113; }
.house-photo img { filter: saturate(.68) contrast(1.08) brightness(.82); }
.contact-stage { background: radial-gradient(circle at 83% 14%, #792c38 0, transparent 33%), linear-gradient(125deg, #411b24, #20171b 76%); }
.contact-slab { background: #efe8e4; color: #7c2632; }
.contact-slab:hover { background: #fff6f0; }
.site-footer { background: #0e0d0f; color: var(--ink); }
.footer-identity small, .footer-meta { color: #b7aaa8; }
.footer-wordmark span, .footer-word span { color: var(--ink); }

/* Société : rythme charbon, photo, rouge très sombre. */
.hero { background: #100d10; }
.hero-visual img { filter: saturate(.8) contrast(1.08) brightness(.82); }
.hero::after { background: linear-gradient(90deg, #100d10 0%, #100d10e8 27%, #100d1085 58%, #100d1018 86%), linear-gradient(0deg, #100d10de, transparent 45%); }
.statement { background: #171518; }
.statement-copy p, .statement-copy p:first-child { color: #cfc2bf; }
.statement-copy p:first-child { color: var(--ink); }
.journey { background: #321a22; }
.formats { background: #111113; }
.format-other p, .people p { color: #c6b9b7; }
.people { background: #1e1b1e; }
.people-portrait img { filter: saturate(.78) contrast(1.07) brightness(.86); }
.people-portrait figcaption, .people-note { color: #b9aaa8 !important; }

/* Catalogue : panneaux éditoriaux et cartes décollées du fond. */
body[data-view="hub"] .hub-hero, .hub-hero { background: #111113; }
.hub-hero p, body[data-view="hub"] .hub-hero p { color: #c7bbb8; }
.hub-hero-search { background: linear-gradient(145deg, #292025, #19171a 72%); border-color: #a6505a66; }
.hub-hero-search input::placeholder, .hub-search input::placeholder,
.work-tools input::placeholder, .archive-tools input::placeholder { color: #a99a9a; }
.hub-hero-search small, .hub-search small { color: #b6a9a7; }
.hero-format-links a { border-color: #b8656e8c; }
.category-feature { background: #211d20; color: var(--ink); }
.category-2 { background: #3a1b23; }
.category-3 { background: #171719; }
.category-feature-body p { color: #d9ceca; }
.category-teasers a, .category-2 .category-teasers a { background: #31272b; color: var(--ink); box-shadow: 0 15px 32px #0005; border-top: 1px solid #e3858a45; }
.category-teasers a:hover { background: #3d2b31; }
.category-2 .category-feature-body h2 span,
.category-2 .eyebrow, .category-2 .category-open { color: #f0a5a9; }
.hub-transition { background: #181719; border-color: #9b535c66; }
.hub-search { background: #111113; }
.listing-hero-search { background: #171518; color: var(--ink); }
.category-tabs { background: #181719; border-color: #a8556055; }
.category-tabs a { color: #c5b9b7; }
.category-tabs a[aria-current] { color: #f09298; }
.listing-section { background: #1a191b; }
.work-tools input, .work-tools select,
.archive-tools input, .archive-tools select { background: #262125; color: var(--ink); border-color: #ad687078; }
.film-card-media { background: linear-gradient(145deg, #52202b, #171315); }
.film-card-sheet { background: #292327; color: var(--ink); box-shadow: 0 18px 34px #0007; }
.film-card-link, .catalogue-data-note, .work-empty { color: #bfb0ad; }
.load-more-wrap button { background: #262125; color: #f2a1a6; }
.work-breadcrumb { color: #b6a9a7; }
.work-stage { background: linear-gradient(125deg, #100d10, #42202a); }
.work-stage-info { background: #231e22; color: var(--ink); box-shadow: 0 30px 55px #0008; }
.work-stage-info>p { color: #c8bab8; }
.work-synopsis { background: #111113; }
.work-synopsis-text, .season-stack details>div { color: #d1c5c1; }
.seasons-section { background: #1b191c; }
.season-note { color: #c4a4a4; }
.work-gallery { background: #100d10; }
.work-trailer { background: #342029; }
.work-contact { background: #201b20; }
.work-contact a { background: #a93642; }
.catalogue-state { background: #1a191b; }
.catalogue-state p { color: #c9bcba; }
.state-skeleton i { background: linear-gradient(100deg, #292327, #45343a, #292327); background-size: 200% 100%; }

/* Actualités et article : lire longtemps sur un fond doux, sans panneau blanc. */
.news-hero { background: #171518; }
.news-hero-bottom p, .archive-head p { color: #c8bab8; }
.featured-news { background: #27171c; }
.featured-visual img { opacity: .92; }
.archive { background: #1b191c; }
.news-row, .news-row .news-row-copy { color: var(--ink); }
.news-row:hover { background: #db626b12; }
.archive-empty { color: #c6b9b6; }
.news-detail { z-index: 100; background: #111113; color: var(--ink); }
.article-content { background: #111113; }
.article-body .article-content-note { color: #bbaaa8; }
.news-detail .detail-placeholder { color: #cec1be; }

/* Contact : zone formulaire et champs. */
.intro { background: radial-gradient(circle at 87% 26%, #54212b55, transparent 40%), #111113; }
.intro aside small { color: #c5aaa8; }
.form-stage { background: #1b191c; border-color: #a8556066; }
.form-intro p { color: #c8bbb8; }
.form-intro .note { color: #ef9da2; }
.form-card { background: #292327; box-shadow: 0 30px 60px #0007; }
.field input, .field select, .field textarea { color: var(--ink); border-color: #c5788075; }
.field input::placeholder, .field textarea::placeholder { color: #aa9b9a; }
.field select option { background: #292327; color: var(--ink); }
.submit-row small, footer small { color: #c0b1af; }
.submit-row button { background: #a93642; }
.submit-row button:hover { background: #c14954; }
.form-result { background: #42252d; color: #f2d2d0; }
.closing { background: #26171c; }
footer { background: #0e0d0f; color: var(--ink); }

@media (max-width: 650px) {
  .slide::after { background: linear-gradient(0deg, #0b090d 0, #0b090dd9 32%, #0b090d14 86%); }
  .hero::after { background: linear-gradient(0deg, #100d10 0%, #100d10df 36%, #100d1055 80%), linear-gradient(90deg, #100d1055, transparent); }
  .work-series { background: #4a2028; }
}

/* Typographie de la maquette validée, commune aux scènes et pages intérieures. */
:root {
  --title-scene: clamp(2.45rem, 7vw, 6.25rem);
  --title-section: clamp(2rem, 5.4vw, 4.75rem);
  --title-editorial: clamp(1.85rem, 4vw, 3.75rem);
  --rule: #dd79844d;
}

.content h1, .hero-content h1, .news-hero .display, .intro h1,
.profile-hero h1, .legal-hero h1, .listing-hero h1,
body[data-view="hub"] .hub-hero h1,
body[data-view="search"] .listing-hero h1,
body[data-category="Téléfilms"] .listing-hero h1 {
  font-size: var(--title-scene);
  line-height: 1;
  letter-spacing: -.065em;
}

.works-intro h2, .journal h2, .house h2, .contact-stage h2,
.journey h2, .formats h2, .people h2, .section-head h2,
.profile-close h2, .archive-head h2, .seasons-section h2, .work-gallery h2,
.category-feature-body h2, .work-copy h3, .work-series .work-copy h3,
.work-telefilm .work-copy h3 {
  font-size: var(--title-section);
  line-height: 1.04;
  letter-spacing: -.058em;
}

.statement h2, .journey-step h3, .profile-statement h2, .series-copy h3,
.beyond h2, .partners-heading h2, .hub-hero-search h2, .hub-search h2,
.listing-section-head h2, .work-stage-info h1, .work-synopsis h2,
.work-trailer h2, .work-contact h2, .featured-news h2, .article-content h1,
.journal-feature h3, .form-intro h2, .legal-section h2, .legal-next strong,
.contact-slab strong, .catalogue-state h1, .detail-not-found h1 {
  font-size: var(--title-editorial);
  line-height: 1.1;
  letter-spacing: -.045em;
}

.house h2 { font-size: clamp(2rem, 4.15vw, 4.65rem); }
.detail-not-found h1, .catalogue-state h1 { overflow-wrap: anywhere; }
.legal-hero h1 em, .hub-hero h1 em { line-height: 1.05; }
.footer-wordmark, .footer-word, .legal-footer-word {
  font-size: clamp(1.9rem, 7.8vw, 7.25rem);
  line-height: 1.07;
  letter-spacing: -.075em;
  border-color: var(--rule);
}

.menu-panel, .overlay { overscroll-behavior: contain; }

.contact-slab, .contact-slab:hover { color: #7c2632; }
.work-series .work-number, .contact-message .section-index { color: #f5c9c7; }
.field input, .field select, .field textarea { background: #201b1f; }
.field .error { color: #ffa4aa; }
.footer-bottom, .catalogue-end { color: #c0b1af; }
.category-teasers b, .film-card-type, .film-card-link b,
.form-head span, .form-head b { color: #ef9299; }
.footer-legal a, .submit-row small a { text-underline-offset: .25em; }
.submit-row small a { color: #f3b4b7; text-decoration: underline; }
:focus-visible { outline: 2px solid #ef9aa0; outline-offset: 4px; }

/* Keep interim media legible inside the existing scenes. */
.work-telefilm .work-visual { background: radial-gradient(ellipse at center, #38252a, #211a1e 72%); }
.work-telefilm .work-visual img { object-fit: contain; }
@media (min-width: 901px) {
  .hero-visual { mask-image: linear-gradient(to right, transparent, #000 22%); }
}
@media (min-width: 901px) and (max-width: 1150px) {
  .house-photo { height: clamp(19rem, 36vw, 27rem); }
}

@media (max-width: 650px) {
  :root {
    --title-scene: clamp(2.4rem, 11vw, 3.75rem);
    --title-section: clamp(2rem, 9vw, 3.2rem);
    --title-editorial: clamp(1.7rem, 7.4vw, 2.6rem);
  }
  .house h2 { font-size: var(--title-section); }
  .intro { min-height: auto; padding-block: 5rem 4.5rem; }
}
