@import url('https://fonts.googleapis.com/css2?family=Anton&family=Merriweather:wght@400;700;900&family=Open+Sans:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --black:#F5F5F7; --panel:#FFFFFF; --white:#1D1D1F;
  --orange:#FF6B35; --amber:#FFB703; --muted:#A0A0AB;
}
html { scroll-behavior:smooth; }
body { background:var(--black); color:var(--white); overflow-x:hidden; }
body::after {
  content:""; position:fixed; inset:0; z-index:9997; pointer-events:none;
  background:radial-gradient(circle at 50% 30%,transparent 0 30%,rgba(0,0,0,.18) 100%),
             linear-gradient(90deg,rgba(255,107,53,.025),transparent 30%,transparent 70%,rgba(255,183,3,.018));
}
.hero-grid {
  background-image:linear-gradient(rgba(245,245,247,.055) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(245,245,247,.055) 1px,transparent 1px);
  background-size:44px 44px;
}
.display-title { font-family:Impact,Anton,"Arial Black",sans-serif; font-weight:900; letter-spacing:.005em; line-height:.82; text-transform:uppercase; }
.brutal-border { border:3px solid #050505; }
.btn-brutal { transition:transform .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease; }
.btn-brutal:hover { transform:translate(4px,4px); box-shadow:3px 3px 0 #050505; }
.article-card { transition:transform .2s ease,box-shadow .2s ease; }
.article-card:hover { transform:translate(-4px,-4px); box-shadow:8px 8px 0 var(--orange); }
.film-frame {
  position:relative; overflow:hidden; aspect-ratio:16/10;
  background:linear-gradient(135deg,rgba(255,107,53,.65),transparent 45%),
             radial-gradient(circle at 70% 30%,rgba(255,183,3,.45),transparent 25%),#050505;
}
.film-frame::after {
  content:"35MM / CONTACT SHEET"; position:absolute; left:10px; bottom:8px;
  font:700 10px/1 "Space Grotesk",sans-serif; letter-spacing:.18em;
  color:rgba(245,245,247,.75);
}
.film-strip { background:repeating-linear-gradient(90deg,#050505 0 18px,#242424 18px 22px,#050505 22px 40px); }
.admin-backdrop { background:rgba(0,0,0,.78); backdrop-filter:blur(7px); }
.scanline { position:relative; }
.scanline::before { content:""; position:absolute; left:0; right:0; top:50%; height:1px; background:rgba(255,255,255,.12); pointer-events:none; }
::selection { background:var(--orange); color:#050505; }
@media(max-width:768px){
  .display-title{letter-spacing:-.06em;line-height:.84}
}


/* --- Shared brand/nav refinements --- */
.site-brand {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-brand .brand-accent { color: var(--orange); }

.site-nav-link {
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:.65rem 1.05rem;
  border:1px solid rgba(245,245,247,.55);
  border-radius:999px;
  font-size:.82rem;
  font-weight:700;
  transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease;
}
.site-nav-link:hover,
.site-nav-link.active {
  background:var(--white);
  color:var(--black);
  border-color:var(--white);
  transform:translateY(-1px);
}

.hero-portrait-column {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.hero-portrait-frame {
  width:min(100%, 380px);
  aspect-ratio:4/5;
  position:relative;
}
.hero-signature-wrap {
  width:min(82%, 330px);
  margin:1.35rem auto 0;
  padding-top:1rem;
  border-top:1px solid rgba(245,245,247,.18);
  text-align:center;
}
.hero-signature {
  display:block;
  width:100%;
  height:auto;
  opacity:.96;
}
.hero-signature-caption {
  margin-top:.45rem;
  color:var(--muted);
  font:700 .62rem/1.2 "Space Grotesk",sans-serif;
  letter-spacing:.22em;
  text-transform:uppercase;
}
@media(max-width:768px){
  .site-nav-link { border-radius:0; border-width:0 0 1px; justify-content:flex-start; padding:.8rem 0; }
  .hero-signature-wrap { width:min(86%, 290px); }
}

/* Main hero identity: LE SEPTIÈME ART */
.hero-brand-title {
  font-family: Impact, Anton, "Arial Black", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .005em;
  line-height: .82;
  font-size: clamp(4.7rem, 10.7vw, 10.5rem);
  max-width: 8.8ch;
}
.hero-brand-line {
  display:block;
  white-space:nowrap;
}
@media (max-width: 900px) {
  .hero-brand-title {
    font-size: clamp(4.1rem, 12.5vw, 7.5rem);
    max-width: 8.6ch;
  }
}
@media (max-width: 560px) {
  .hero-brand-title {
    font-size: clamp(3.55rem, 18vw, 5.5rem);
    letter-spacing: -.065em;
    line-height: .82;
  }
}

/* Front page only: high-contrast animated 35mm film grain */
.front-page {
  position: relative;
}

.front-page .film-grain-overlay {
  position: fixed;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  width: 200%;
  height: 200%;
  background: transparent;

  /* Tight turbulence creates a denser, rougher film texture. */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='turbulence' baseFrequency='.99' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");

  /* Force the grain to interact with the colours underneath. */
  mix-blend-mode: overlay;
  opacity: .15;

  pointer-events: none;
  z-index: 9999;
  animation: grainMovement 1s steps(4) infinite;
}

@keyframes grainMovement {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1%, 1%) rotate(.5deg); }
  50% { transform: translate(1%, -1%) rotate(-.5deg); }
  75% { transform: translate(-2%, -1%) rotate(1deg); }
  100% { transform: translate(1%, 2%) rotate(-1deg); }
}

/* High-contrast cinematic treatment for the front-page portrait. */
.front-page .professor-img {
  filter: grayscale(100%) contrast(140%) brightness(95%);
}

/* --- Light editorial theme: quiet, paper-like, Apple-inspired --- */
body {
  background: var(--black);
  color: var(--white);
}
body::after {
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,.16), transparent 62%);
}
.hero-grid {
  background-image: linear-gradient(rgba(29,29,31,.045) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(29,29,31,.045) 1px, transparent 1px);
  background-size: 44px 44px;
}
.site-nav-link { border-color: rgba(29,29,31,.25); }
.site-nav-link:hover, .site-nav-link.active {
  background: var(--white); color: var(--black); border-color: var(--white);
}
.front-page .film-grain-overlay { display:none; }
.front-page .professor-img { filter:none; }
.hero-portrait-frame { transform:none; }
.hero-portrait-frame > .absolute.-inset-3 { display:none; }
.hero-portrait-frame > .relative { border:0 !important; background:transparent !important; }
.hero-portrait-frame .film-strip,
.hero-portrait-frame .absolute.left-5.top-14,
.hero-portrait-frame .absolute.bottom-16.left-5.right-5,
.hero-portrait-frame > .mt-5 { display:none; }
.hero-portrait-frame img { border-radius: 4px; }
.hero-signature-wrap { border-top-color: rgba(29,29,31,.12); }
.hero-signature-caption { color:#6e6e73; }


/* Keep content surfaces light and calm across inner pages. */
main > section.bg-cinema-panel, main > section.py-20 { background:#F5F5F7 !important; }
article.bg-cinema-panel, .article-card { background:#FFFFFF !important; color:#1D1D1F; }


/* =========================================================
   HEADER / HERO COLLISION FIX
   The navigation is fixed, so the hero must explicitly
   reserve the same vertical space as the header.
   ========================================================= */
:root {
  --header-height: 76px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-height);
  background: rgba(245, 245, 247, .88);
  border-bottom: 1px solid rgba(29, 29, 31, .08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.site-nav {
  height: 100%;
}

.hero-grid {
  padding-top: var(--header-height);
  box-sizing: border-box;
}

.hero-content {
  box-sizing: border-box;
}

/* =========================================================
   LOGO HOME LINK
   Preserve the existing typography while removing all
   browser-default hyperlink styling.
   ========================================================= */
.site-brand {
  display: inline-block;
  color: var(--white);
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  color: var(--white);
  text-decoration: none;
}

/* =========================================================
   HERO TITLE SPACING
   Keep the same font, but give the large title more air.
   ========================================================= */
.hero-brand-title {
  letter-spacing: .015em;
}

@media (max-width: 560px) {
  .hero-brand-title {
    letter-spacing: .005em;
  }
}

/* =========================================================
   HERO PORTRAIT SCALE + SIGNATURE ALIGNMENT
   Keep the portrait subordinate to the main editorial title.
   ========================================================= */
.hero-portrait-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.hero-portrait-frame {
  position: relative;
  width: min(100%, 285px);
  aspect-ratio: 4 / 5;
  max-height: 58vh;
  overflow: hidden;
}

.hero-portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.hero-signature-wrap {
  width: min(78%, 245px);
  margin: .65rem auto 0;
  padding-top: .55rem;
  border-top: 1px solid rgba(29, 29, 31, .12);
  text-align: center;
}

.hero-signature {
  display: block;
  width: 100%;
  height: auto;
  opacity: .96;
}

.hero-signature-caption {
  margin-top: .3rem;
  color: #6e6e73;
  font: 700 .58rem/1.2 "Space Grotesk", sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-portrait-frame {
    width: min(100%, 270px);
    max-height: 52vh;
  }

  .hero-signature-wrap {
    width: min(82%, 225px);
    margin-top: .55rem;
    padding-top: .45rem;
  }
}

@media (max-width: 768px) {
  .hero-portrait-frame {
    width: min(72vw, 250px);
    max-height: none;
  }

  .hero-signature-wrap {
    width: min(78%, 210px);
    margin-top: .5rem;
    padding-top: .45rem;
  }
}


/* =========================================================
   FINAL HERO PORTRAIT / SIGNATURE COMPOSITION
   Quiet editorial portrait: secondary to the main title.
   ========================================================= */
.hero-portrait-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 220px);
  gap: 0;
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 220px;
  aspect-ratio: 4 / 5;
  max-height: 54vh;
  overflow: hidden;
  transform: none;
}

.hero-portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.hero-signature-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(29, 29, 31, .16);
  text-align: center;
}

.hero-signature {
  display: block;
  width: min(85%, 185px);
  height: auto;
  margin: 0 auto;
  opacity: .96;
}

.hero-signature-caption {
  margin-top: 4px;
  color: #6e6e73;
  font-family: "Space Grotesk", sans-serif;
  font-size: .58rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-portrait-stack { width: min(100%, 205px); }
  .hero-portrait-frame { max-width: 205px; max-height: 50vh; }
  .hero-signature { width: min(85%, 175px); }
}

@media (max-width: 768px) {
  .hero-portrait-stack { width: min(72vw, 190px); }
  .hero-portrait-frame { max-width: 190px; max-height: none; }
  .hero-signature-wrap { margin-top: 7px; padding-top: 7px; }
  .hero-signature { width: min(85%, 160px); }
}


/* Obsolete light-theme Contact overrides removed; dark-page styles are defined below. */


/* Homepage-only update from the materials reference: hero portrait/signature + Ideas in Motion section. */
.hero-grid {
  background-color: #F5F5F2 !important;
  background-image:
    linear-gradient(rgba(0,0,0,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.055) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
}
.hero-grid .hero-brand-title {
  font-family: Impact, Anton, "Arial Narrow", "Arial Black", sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .005em !important;
  line-height: .79 !important;
  font-size: clamp(5rem, 12.3vw, 11rem) !important;
  max-width: 8.8ch !important;
}
.hero-grid .hero-brand-line { display: block; white-space: nowrap; }
.hero-grid .hero-brand-accent { color: #B63D17 !important; }
.hero-grid .hero-brand-period { color: #D99A16 !important; }
.hero-grid .hero-intro {
  border-left: 4px solid #B63D17 !important;
  padding-left: 1.1rem !important;
}
.hero-grid .hero-intro p:first-child { font-weight: 600; color: #080808 !important; }
.hero-grid .hero-intro p:last-child { color: #242424 !important; }
.hero-grid .text-cinema-orange { color: #B63D17 !important; }
.hero-grid .text-cinema-amber { color: #D99A16 !important; }
.hero-grid .hero-portrait-stack { width: min(100%, 330px) !important; }
.hero-grid .hero-portrait-frame {
  max-width: 330px !important;
  width: 100% !important;
  aspect-ratio: 4/5;
  border-radius: 5px 5px 110px 5px !important;
}
.hero-grid .hero-portrait-frame img { border-radius: inherit !important; }
.hero-grid .hero-signature-wrap { border-top-color: rgba(21,21,21,.18) !important; }
.hero-grid .hero-signature-caption { color: #626267 !important; }

.archive-section {
  background: #F5F5F2 !important;
  color: #151515 !important;
}
.archive-section .display-title {
  font-family: Inter, "Space Grotesk", Arial, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -.015em !important;
  line-height: .88 !important;
  font-size: clamp(3.6rem, 8vw, 8rem) !important;
  text-transform: none !important;
}
.archive-section .text-cinema-orange { color: #B63D17 !important; }
.archive-section .text-cinema-muted { color: #626267 !important; }
.archive-section .btn-brutal {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 50px; padding: 14px 22px !important;
  border: 1px solid #B63D17 !important; border-radius: 999px !important;
  background: #B63D17 !important; color: #fff !important;
  box-shadow: none !important; text-decoration: none;
  font-size: 12px; font-weight: 700; letter-spacing: .025em;
}
.archive-section .btn-brutal:hover { background: #8F2E12 !important; border-color: #8F2E12 !important; }
.archive-section .home-feature {
  min-height: 235px; padding: 25px; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: space-between; gap: 28px;
  border: 1px solid rgba(21,21,21,.18); border-radius: 8px;
  background: rgba(255,255,255,.56); color: #151515; text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.archive-section .home-feature span {
  color: #4C43F5; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.archive-section .home-feature strong {
  max-width: 14ch; font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 750; line-height: 1.08; letter-spacing: -.015em;
}
.archive-section .home-feature i { font-size: 12px; font-style: normal; font-weight: 700; }
.archive-section .home-feature:hover { transform: translateY(-5px); background: #151515; color: #fff; }
.archive-section .home-feature:hover span { color: #DFFF45; }

@media (max-width: 900px) {
  .hero-grid .hero-brand-title { font-size: clamp(4.2rem, 13vw, 8rem) !important; }
}
@media (max-width: 767px) {
  .hero-grid .hero-portrait-stack { width: min(70vw, 245px) !important; }
  .hero-grid .hero-portrait-frame { max-width: 245px !important; }
  .archive-section .home-feature { min-height: 190px; }
  .archive-section .display-title { font-size: clamp(3.2rem, 15vw, 5.8rem) !important; }
}
@media (max-width: 560px) {
  .hero-grid .hero-brand-title {
    font-size: clamp(3.45rem, 18vw, 5.7rem) !important;
    letter-spacing: -.005em !important;
    line-height: .82 !important;
  }
}



/* Button treatments requested for homepage CTA and primary navigation. */
.button-1 {
  position: relative; display: inline-block; border: 0; background: transparent;
  padding: 0; cursor: pointer; text-decoration: none; outline-offset: 5px;
  transition: filter 250ms ease; user-select: none; -webkit-user-select: none;
  touch-action: manipulation; isolation: isolate;
}
.button-1-shadow, .button-1-edge {
  position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 3px;
}
.button-1-shadow {
  background: rgba(0,0,0,.24); transform: translateY(3px);
  transition: transform 250ms cubic-bezier(.3,.7,.4,1);
}
.button-1-edge {
  background: linear-gradient(to right,#6f210f 0%,#8e2b12 10%,#8e2b12 90%,#6f210f 100%);
}
.button-1-front {
  display: block; position: relative; padding: 15px 30px; border-radius: 3px;
  color: #fff; background: #B63D17; font-size: 1rem; font-weight: 750;
  letter-spacing: .045em; line-height: 1.25; transform: translateY(-4px);
  transition: transform 250ms cubic-bezier(.3,.7,.4,1);
}
.button-1:hover { filter: brightness(1.08); }
.button-1:hover .button-1-front { transform: translateY(-6px); }
.button-1:active .button-1-front { transform: translateY(-1px); transition-duration: 50ms; }
.button-1:hover .button-1-shadow { transform: translateY(5px); }
.button-1:active .button-1-shadow { transform: translateY(1px); transition-duration: 50ms; }
.button-1:focus-visible { outline: 3px solid #151515; outline-offset: 6px; }
.button-1:focus:not(:focus-visible) { outline: none; }

.site-nav .button-7 {
  touch-action: manipulation; cursor: pointer; position: relative; display: inline-flex;
  align-items: center; justify-content: center; padding: .8rem 1.45rem;
  min-height: 44px; border-radius: 1.87rem; line-height: 1.1; font-size: .9rem;
  font-weight: 650; text-decoration: none; white-space: nowrap;
  transition: filter 150ms ease-in-out, transform 150ms ease-in-out;
  border: 1px solid #8e2b75;
  background-image: linear-gradient(-180deg,#FF89D6 0%,#C01F9E 100%);
  box-shadow: 0 4px 7px rgba(0,0,0,.18),
    0 -2px 8px rgba(110,15,155,.72) inset,
    0 6px 2px rgba(255,255,255,.3) inset,
    0 2px 4px rgba(180,70,207,.7) inset;
}
.site-nav .button-7 .text {
  color: #fff; text-shadow: 0 1px 2px rgba(70,0,65,.65);
  letter-spacing: .035em; position: relative; z-index: 1;
}
.site-nav .button-7::before {
  content: ""; display: block; height: 2px; position: absolute; top: 4px;
  left: 50%; transform: translateX(-50%); width: calc(100% - 2.4rem);
  border-radius: 100%; opacity: .75;
  background: linear-gradient(90deg,transparent,#fff 20%,#fff 80%,transparent);
}
.site-nav .button-7::after {
  content: ""; display: block; height: 2px; position: absolute; bottom: 5px;
  left: 50%; transform: translateX(-50%); width: calc(100% - 2.4rem);
  border-radius: 100%; filter: blur(1px); opacity: .12; background: #fff;
}
.site-nav .button-7:hover { filter: brightness(1.1); }
.site-nav .button-7:active { transform: scale(.96); }
.site-nav .button-7:focus-visible { outline: 3px solid #151515; outline-offset: 4px; }

/* Give the condensed masthead deliberate breathing room without changing its typeface. */
.site-brand { letter-spacing: .045em !important; }
.site-brand .brand-accent { letter-spacing: .035em !important; }
.hero-grid .hero-brand-title {
  letter-spacing: .025em !important;
  transform-origin: left center;
}
.hero-grid .hero-brand-line { letter-spacing: .025em !important; }
@media (max-width: 767px) {
  .site-nav .button-7 { padding: .65rem 1rem; font-size: .82rem; }
  .hero-grid .hero-brand-title, .hero-grid .hero-brand-line { letter-spacing: .012em !important; }
}
@media (prefers-reduced-motion: reduce) {
  .button-1, .button-1-front, .button-1-shadow, .site-nav .button-7 {
    transition: none !important;
  }
}



/* Final visual refinements: monochrome navigation, consistent editorial CTA, masthead rhythm. */
.site-nav .button-7 {
  border-color: #242424 !important;
  background-image: linear-gradient(180deg, #454545 0%, #171717 52%, #050505 100%) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,.22),
    0 -2px 6px rgba(255,255,255,.12) inset,
    0 5px 2px rgba(255,255,255,.07) inset,
    0 2px 4px rgba(0,0,0,.45) inset !important;
}
.site-nav .button-7 .text {
  color: #F7F4EF !important;
  background: none !important;
  -webkit-text-fill-color: #F7F4EF !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.7) !important;
}
.site-nav .button-7::before {
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.9) 20%,rgba(255,255,255,.9) 80%,transparent) !important;
  opacity: .48 !important;
}

/* View Dossier uses the same rounded, warm gradient language as Explore all essays. */
.button-1 { border-radius: 999px !important; }
.button-1-shadow, .button-1-edge { border-radius: 999px !important; }
.button-1-shadow { background: rgba(0,0,0,.18) !important; transform: translateY(3px) !important; }
.button-1-edge { background: linear-gradient(100deg,#8E2E17 0%,#B63D17 50%,#8E2E17 100%) !important; }
.button-1-front {
  border-radius: 999px !important;
  background: linear-gradient(110deg,#C96C51 0%,#B63D17 58%,#A63A1A 100%) !important;
  padding: 15px 30px !important;
  transform: translateY(-3px) !important;
  letter-spacing: .055em !important;
}
.button-1:hover .button-1-front { transform: translateY(-5px) !important; }
.button-1:active .button-1-front { transform: translateY(-1px) !important; }

/* Give the three-line masthead more vertical air, while tightening horizontal tracking slightly. */
.hero-grid .hero-brand-title {
  line-height: .91 !important;
  letter-spacing: -.012em !important;
}
.hero-grid .hero-brand-line { letter-spacing: -.012em !important; }
.hero-grid .hero-brand-line + .hero-brand-line { margin-top: .035em; }
@media (max-width: 767px) {
  .hero-grid .hero-brand-title { line-height: .9 !important; letter-spacing: -.008em !important; }
  .hero-grid .hero-brand-line { letter-spacing: -.008em !important; }
}

/* Use the same condensed display typeface for Ideas in motion as the masthead. */
.archive-section .display-title {
  font-family: Impact, Anton, "Arial Narrow", "Arial Black", sans-serif !important;
  font-weight: 900 !important;
  letter-spacing: -.012em !important;
  line-height: .94 !important;
}


/* Refined navigation: matte charcoal, restrained depth, no glossy bulge. */
.site-nav .button-7 {
  min-height: 42px !important;
  padding: .68rem 1.28rem !important;
  border: 1px solid #454545 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #353535 0%, #202020 100%) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.13) !important;
  transform: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}
.site-nav .button-7::before,
.site-nav .button-7::after {
  display: none !important;
  content: none !important;
}
.site-nav .button-7 .text {
  color: #F7F4EF !important;
  -webkit-text-fill-color: #F7F4EF !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  letter-spacing: .025em !important;
}
.site-nav .button-7:hover {
  filter: none !important;
  background: linear-gradient(180deg, #454545 0%, #292929 100%) !important;
  border-color: #666 !important;
  box-shadow: 0 3px 6px rgba(0,0,0,.16) !important;
  transform: translateY(-1px) !important;
}
.site-nav .button-7:active {
  transform: translateY(0) scale(.985) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.12) !important;
}
.site-nav .button-7:focus-visible {
  outline: 2px solid #B63D17 !important;
  outline-offset: 3px !important;
}
@media (max-width: 767px) {
  .site-nav .button-7 { min-height: 40px !important; padding: .62rem .95rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav .button-7 { transition: none !important; }
}


/* Unified desktop navigation across Home, Dossier, Articles and Contact. */
.site-nav .site-nav-link.button-7 {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: .68rem 1.28rem !important;
  border: 1px solid #c9c9c9 !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.18) !important;
  color: #292929 !important;
  box-shadow: none !important;
  text-decoration: none !important;
  transform: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease !important;
}
.site-nav .site-nav-link.button-7::before,
.site-nav .site-nav-link.button-7::after { display: none !important; content: none !important; }
.site-nav .site-nav-link.button-7 .text {
  color: #292929 !important;
  -webkit-text-fill-color: #292929 !important;
  background: none !important;
  text-shadow: none !important;
  font-weight: 600 !important;
  letter-spacing: .025em !important;
}
.site-nav .site-nav-link.button-7:hover {
  background: #e9e7e2 !important;
  border-color: #aaa !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
}
.site-nav .site-nav-link.button-7.active,
.site-nav .site-nav-link.button-7[aria-current="page"] {
  background: linear-gradient(180deg,#414141 0%,#292929 100%) !important;
  border-color: #333 !important;
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,.12) !important;
}
.site-nav .site-nav-link.button-7.active .text,
.site-nav .site-nav-link.button-7[aria-current="page"] .text {
  color: #f7f4ef !important;
  -webkit-text-fill-color: #f7f4ef !important;
}
.site-nav .site-nav-link.button-7:active { transform: scale(.985) !important; }
.site-nav .site-nav-link.button-7:focus-visible { outline: 2px solid #B63D17 !important; outline-offset: 3px !important; }
@media (max-width: 767px) {
  .site-nav .site-nav-link.button-7 { min-height: 40px !important; padding: .62rem .95rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav .site-nav-link.button-7 { transition: none !important; }
}


/* Final navigation consistency pass: visible inactive controls, distinct active page, no decorative bulge. */
.site-nav .site-nav-link.button-7 {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-height: 42px !important;
  padding: 0 1.3rem !important;
  border: 1px solid #bdbdbd !important;
  border-radius: 999px !important;
  background: #f7f6f2 !important;
  box-shadow: 0 1px 2px rgba(20,20,20,.035) !important;
  color: #292929 !important;
  text-decoration: none !important;
  filter: none !important;
  transform: none !important;
}
.site-nav .site-nav-link.button-7 .text {
  color: #292929 !important;
  -webkit-text-fill-color: #292929 !important;
  background: none !important;
  text-shadow: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: .015em !important;
}
.site-nav .site-nav-link.button-7:hover {
  background: #eeece6 !important;
  border-color: #8f8b84 !important;
  box-shadow: 0 2px 4px rgba(20,20,20,.07) !important;
  transform: translateY(-1px) !important;
}
.site-nav .site-nav-link.button-7.active,
.site-nav .site-nav-link.button-7[aria-current="page"] {
  background: #343434 !important;
  border-color: #343434 !important;
  box-shadow: 0 2px 4px rgba(20,20,20,.14) !important;
  color: #fff !important;
}
.site-nav .site-nav-link.button-7.active .text,
.site-nav .site-nav-link.button-7[aria-current="page"] .text {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.site-nav .site-nav-link.button-7:active { transform: scale(.985) !important; }
.site-nav .site-nav-link.button-7:focus-visible { outline: 2px solid #b63d17 !important; outline-offset: 3px !important; }
@media (max-width: 767px) {
  .site-nav .site-nav-link.button-7 { min-height: 40px !important; padding: 0 .95rem !important; }
}
@media (prefers-reduced-motion: reduce) {
  .site-nav .site-nav-link.button-7 { transition: none !important; }
}


/* Navigation hover refinement: warm yellow surface with burnt-orange text. */
.site-nav-link.button-7,
.site-nav-link.button-7 .text,
#mobileMenu a,
.mobile-menu a {
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}
.site-nav-link.button-7:hover,
.site-nav-link.button-7:focus-visible,
#mobileMenu a:hover,
#mobileMenu a:focus-visible,
.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: #F4D96B !important;
  background-image: none !important;
  border-color: #D6B843 !important;
  color: #B63D17 !important;
  box-shadow: 0 2px 5px rgba(35, 28, 12, 0.10) !important;
  filter: none !important;
  outline: 2px solid #B63D17 !important;
  outline-offset: 3px;
}
.site-nav-link.button-7:hover .text,
.site-nav-link.button-7:focus-visible .text,
#mobileMenu a:hover,
#mobileMenu a:focus-visible,
.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  color: #B63D17 !important;
  background-image: none !important;
  -webkit-text-fill-color: #B63D17 !important;
  filter: none !important;
  text-shadow: none !important;
}
.site-nav-link.button-7:active,
#mobileMenu a:active,
.mobile-menu a:active {
  transform: translateY(1px) scale(.99) !important;
}
@media (prefers-reduced-motion: reduce) {
  .site-nav-link.button-7,
  .site-nav-link.button-7 .text,
  #mobileMenu a,
  .mobile-menu a { transition: none !important; }
}


/* Unified navigation: same black pill buttons across every public page. */
.site-nav .site-nav-link.button-7 {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  padding: 0 1.45rem !important;
  border: 1px solid #1a1a1a !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #202020 0%, #050505 62%, #000 100%) !important;
  color: #f7f4ef !important;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(0,0,0,.24), inset 0 1px 1px rgba(255,255,255,.16) !important;
  filter: none !important;
  transform: none !important;
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease !important;
}
.site-nav .site-nav-link.button-7 .text,
.site-nav .site-nav-link.button-7.active .text,
.site-nav .site-nav-link.button-7[aria-current="page"] .text {
  color: #f7f4ef !important;
  -webkit-text-fill-color: #f7f4ef !important;
  background: none !important;
  text-shadow: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .025em !important;
}
.site-nav .site-nav-link.button-7:hover,
.site-nav .site-nav-link.button-7:focus-visible {
  background: linear-gradient(180deg, #333 0%, #080808 100%) !important;
  border-color: #111 !important;
  color: #fff !important;
  box-shadow: 0 5px 10px rgba(0,0,0,.28), inset 0 1px 1px rgba(255,255,255,.18) !important;
  transform: translateY(-1px) !important;
  outline: none !important;
}
.site-nav .site-nav-link.button-7.active,
.site-nav .site-nav-link.button-7[aria-current="page"] {
  background: linear-gradient(180deg, #202020 0%, #050505 62%, #000 100%) !important;
  border-color: #1a1a1a !important;
  color: #f7f4ef !important;
}
.site-nav .site-nav-link.button-7::before,
.site-nav .site-nav-link.button-7::after { display: none !important; content: none !important; }
@media (max-width: 767px) {
  .site-nav .site-nav-link.button-7 { min-height: 40px !important; padding: 0 .95rem !important; }
}


/* Brand colour consistency: match the small header word and the large hero SEPTIÈME. */
.site-brand .brand-accent { color: #B63D17 !important; -webkit-text-fill-color: #B63D17 !important; }
.hero-grid .hero-brand-accent { color: #B63D17 !important; -webkit-text-fill-color: #B63D17 !important; }

/* =========================================================
   RESPONSIVE EDITORIAL PASS — phone, tablet, laptop, desktop
   and wide-screen displays. Layout-only; CMS/backend untouched.
   ========================================================= */
html { -webkit-text-size-adjust: 100%; }
body { min-width: 320px; }
img, video, iframe { max-width: 100%; }

/* The shared header should feel compact, not like a second hero. */
.site-header > nav,
header > nav.site-nav { gap: clamp(.75rem, 2vw, 2rem); }
.site-brand { flex-shrink: 0; }
#mobileMenuBtn {
  min-width: 84px;
  min-height: 44px;
  padding: .65rem .9rem !important;
  border: 1px solid rgba(29,29,31,.48) !important;
  background: transparent !important;
  color: #1d1d1f !important;
  font-size: .9rem !important;
  letter-spacing: .02em;
}
#mobileMenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 16px;
  right: 16px;
  z-index: 60;
  margin: 0 !important;
  padding: .45rem .85rem !important;
  border: 1px solid rgba(29,29,31,.32) !important;
  background: rgba(250,250,248,.98) !important;
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
#mobileMenu > div { gap: 0 !important; }
#mobileMenu a,
.mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem .2rem !important;
  border-bottom: 1px solid rgba(29,29,31,.12) !important;
  color: #1d1d1f !important;
  font-size: .88rem !important;
  line-height: 1.2 !important;
  letter-spacing: .045em;
  text-decoration: none;
}
#mobileMenu a:last-child { border-bottom: 0 !important; }
#mobileMenu a:hover, #mobileMenu a:focus-visible { color: #B63D17 !important; }

/* Article archive: remove excess top void and prevent display type squeezing. */
@media (max-width: 767px) {
  main.pt-32 { padding-top: 6.2rem !important; }
  main > section.py-20,
  main > section.py-20.md\:py-28 { padding-top: 2.1rem !important; padding-bottom: 3.25rem !important; }
  main > section > div.mx-auto { padding-left: clamp(18px, 5vw, 28px) !important; padding-right: clamp(18px, 5vw, 28px) !important; }
  main .display-title {
    font-size: clamp(3.35rem, 14.5vw, 6rem) !important;
    line-height: .9 !important;
    letter-spacing: -.035em !important;
    overflow-wrap: normal;
    word-break: normal;
  }
  #filterBar { gap: .5rem !important; margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
  #filterBar .filter-btn {
    min-height: 42px;
    padding: .65rem .9rem !important;
    font-size: .72rem !important;
    line-height: 1.1;
    letter-spacing: .015em;
    white-space: nowrap;
  }
  #loadMessage { margin-top: 1.5rem !important; margin-bottom: 1.35rem !important; font-size: .98rem !important; line-height: 1.6 !important; }
  #articlesGrid { grid-template-columns: minmax(0, 1fr) !important; gap: 1.5rem !important; }
  #articlesGrid .article-card { min-width: 0; }
  #articlesGrid .article-card > div { padding: clamp(16px, 4.5vw, 22px) !important; }
  #articlesGrid .article-card h2 { font-size: clamp(1.35rem, 5.6vw, 1.8rem) !important; line-height: 1.12 !important; overflow-wrap: anywhere; }
  #articlesGrid .article-card p { font-size: 1rem !important; line-height: 1.75 !important; }
  #articlesGrid .film-frame { aspect-ratio: 16 / 8.5 !important; min-height: 150px; }
  main a[href="admin.html"] { min-height: 48px; display: inline-flex; align-items: center; line-height: 1.35; }
  footer > div { flex-wrap: wrap; gap: 1rem; line-height: 1.6; }
}

/* Small phones: make filters comfortably tappable without crowding. */
@media (max-width: 420px) {
  :root { --header-height: 66px; }
  .site-nav { padding-left: 16px !important; padding-right: 16px !important; }
  .site-brand { font-size: .92rem !important; letter-spacing: -.035em; }
  #mobileMenuBtn { min-width: 76px; min-height: 42px; padding: .55rem .7rem !important; }
  #filterBar .filter-btn { padding: .62rem .72rem !important; font-size: .68rem !important; }
  main .display-title { font-size: clamp(3.1rem, 14vw, 4rem) !important; }
}

/* Tablet: preserve breathing room while keeping the archive efficient. */
@media (min-width: 768px) and (max-width: 1100px) {
  main.pt-32 { padding-top: 7.5rem !important; }
  main > section.py-20 { padding-top: 3rem !important; padding-bottom: 4rem !important; }
  main .display-title { font-size: clamp(5rem, 10vw, 8rem) !important; }
  #articlesGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem !important; }
}

/* Large monitors / smart TVs: cap reading width and scale typography gently. */
@media (min-width: 1600px) {
  main > section > div.mx-auto { max-width: 1680px !important; }
  main .display-title { font-size: clamp(8rem, 8.5vw, 12rem) !important; }
  #articlesGrid { gap: clamp(1.5rem, 2vw, 2.5rem) !important; }
  #articlesGrid .article-card h2 { font-size: clamp(1.6rem, 1.7vw, 2.25rem) !important; }
  #articlesGrid .article-card > div { padding: clamp(1.5rem, 2vw, 2.25rem) !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .article-card, .site-nav-link, #mobileMenu a { transition: none !important; }
}


/* =========================================================
   SHARED HEADER BOUNDARY + ARTICLE READING WIDTH
   Presentation-only changes. CMS/backend configuration untouched.
   ========================================================= */
.site-header,
body > header.fixed {
  height: var(--header-height, 76px);
  min-height: var(--header-height, 76px);
  background: #F5F5F7 !important;
  border-bottom: 1px solid rgba(29, 29, 31, .22) !important;
  box-shadow: 0 3px 12px rgba(29, 29, 31, .045);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body > header.fixed > nav.site-nav {
  height: 100%;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
/* Keep page content visually separate from the fixed shared navigation. */
body:not(.essay-page) > main {
  scroll-margin-top: calc(var(--header-height, 76px) + 12px);
}
@media (max-width: 767px) {
  body > header.fixed { z-index: 100 !important; }
  body > header.fixed #mobileMenu {
    top: calc(100% + 1px);
    background: #F5F5F7 !important;
    border: 1px solid rgba(29, 29, 31, .35) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  }
}


/* FINAL CROSS-PAGE NAVIGATION SEPARATION
   Presentation only. Keep the header visibly distinct from page content. */
body > header.fixed {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: #F5F5F7 !important;
  border-bottom: 1px solid rgba(29,29,31,.28) !important;
  box-shadow: 0 4px 14px rgba(29,29,31,.07) !important;
  isolation: isolate;
}
body:not(.dossier-page):not(.articles-page):not(.contact-page) > header.fixed > nav.site-nav {
  background: #F5F5F7 !important;
}
/* All standard inner pages reserve room below the fixed header. The homepage
   keeps its own hero-grid spacing and is intentionally excluded. */
body:not(.essay-page) > main {
  position: relative;
  z-index: 0;
}
@media (min-width: 768px) {
  body:not(.essay-page):not(:has(.hero-grid)) > main.pt-32 {
    padding-top: max(8.5rem, calc(var(--header-height, 76px) + 2.25rem)) !important;
  }
}
@media (max-width: 767px) {
  body:not(.essay-page):not(:has(.hero-grid)) > main.pt-32 {
    padding-top: max(7.5rem, calc(var(--header-height, 66px) + 1.5rem)) !important;
  }
  body > header.fixed > nav.site-nav { min-height: var(--header-height, 66px); }
}
/* Make the mobile menu a discrete panel below the header, never an overlay
   that obscures the page title when opened. */
@media (max-width: 767px) {
  body > header.fixed #mobileMenu {
    top: calc(100% + 8px) !important;
    left: 16px !important;
    right: 16px !important;
    max-height: min(60vh, 360px);
    overflow-y: auto;
  }
}


/* =========================================================
   RESPONSIVE NAVIGATION + ZOOM/REFLOW SAFEGUARDS
   Presentation-only. No CMS/backend selectors or configuration.
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { width: 100%; max-width: 100%; overflow-x: clip; }
body { width: 100%; max-width: 100%; overflow-x: clip; }
main, section, header, footer, nav, article, .essay-main, .essay-content { min-width: 0; }
img, video, iframe, svg, canvas { max-width: 100%; }
.display-title, .hero-brand-title, .essay-title, h1, h2, h3, p, a, button, li, span, strong {
  overflow-wrap: anywhere;
}
/* The compact desktop pills retain the site's black-and-paper palette. */
.site-nav-link, .site-nav-link .text {
  letter-spacing: .035em !important;
  white-space: normal;
}
.site-brand { letter-spacing: .005em !important; }
/* Make navigation text more legible at narrow widths and browser zoom. */
@media (max-width: 767px) {
  :root { --header-height: 72px; }
  .site-header, body > header.fixed {
    position: sticky !important;
    top: 0; z-index: 1000;
    width: 100%;
  }
  .site-nav { padding-left: 18px !important; padding-right: 18px !important; gap: 12px !important; }
  .site-brand { font-size: clamp(.88rem, 4vw, 1.08rem) !important; line-height: 1.25; letter-spacing: .015em !important; }
  #mobileMenuBtn {
    flex: 0 0 auto; min-width: 82px; min-height: 46px;
    padding: .65rem .8rem !important; font-size: .9rem !important;
    font-weight: 800 !important; letter-spacing: .08em !important;
    background: #F5F5F2 !important; border: 1px solid rgba(29,29,31,.48) !important;
  }
  /* Drawer inspired by the supplied reference, restyled for Le Septième Art. */
  #mobileMenu:not(.hidden) {
    display: block !important;
    position: fixed !important;
    inset: var(--header-height, 72px) 0 0 auto !important;
    width: min(84vw, 360px) !important;
    height: calc(100dvh - var(--header-height, 72px)) !important;
    max-height: calc(100dvh - var(--header-height, 72px)) !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 22px 20px 28px !important;
    background: rgba(245,245,242,.98) !important;
    color: #1D1D1F !important;
    border: 1px solid rgba(29,29,31,.2) !important;
    border-top: 3px solid #B63D17 !important;
    box-shadow: -16px 12px 36px rgba(0,0,0,.16) !important;
    z-index: 1200 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  #mobileMenu > div {
    display: flex !important; flex-direction: column !important;
    gap: 0 !important; width: 100%;
  }
  #mobileMenu a {
    display: flex !important; align-items: center;
    min-height: 58px; padding: 14px 4px !important;
    border-bottom: 1px solid rgba(29,29,31,.15) !important;
    color: #1D1D1F !important; background: transparent !important;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-size: 1.04rem !important; font-weight: 750 !important;
    letter-spacing: .11em !important; line-height: 1.3 !important;
    text-decoration: none; text-transform: uppercase;
    transition: color .18s ease, padding-left .18s ease;
  }
  #mobileMenu a:last-child { border-bottom: 0 !important; }
  #mobileMenu a:hover, #mobileMenu a:focus-visible {
    color: #B63D17 !important; padding-left: 10px !important;
    outline-offset: 3px;
  }
  .display-title { max-width: 100%; font-size: clamp(3.2rem, 15vw, 6rem) !important; letter-spacing: -.035em !important; line-height: .9 !important; }
  .archive-section .home-feature { min-width: 0; }
  #filterBar { gap: 8px !important; }
  #filterBar button { max-width: 100%; letter-spacing: .07em !important; white-space: normal; }
  #articlesGrid { grid-template-columns: minmax(0, 1fr) !important; }
  #articlesGrid .article-card, #articlesGrid .article-card > div { min-width: 0; max-width: 100%; }
  .essay-main { width: 100%; max-width: 100%; padding-left: clamp(16px, 5vw, 24px) !important; padding-right: clamp(16px, 5vw, 24px) !important; }
  .essay-title { max-width: 100%; font-size: clamp(2.4rem, 11vw, 4rem) !important; letter-spacing: -.035em !important; line-height: 1.02 !important; overflow-wrap: anywhere; }
  .essay-content { width: 100%; max-width: 100% !important; font-size: clamp(1rem, 4.1vw, 1.12rem) !important; line-height: 1.8 !important; overflow-wrap: anywhere; word-break: normal; }
  .essay-content pre, .essay-content table { display: block; max-width: 100%; overflow-x: auto; }
}
@media (min-width: 768px) {
  #mobileMenu:not(.mobile-menu-visible) { display: none !important; }
}
@media (max-width: 380px) {
  .site-brand { font-size: .82rem !important; }
  .site-nav { padding-left: 12px !important; padding-right: 12px !important; }
  #mobileMenuBtn { min-width: 74px; }
  .essay-title { font-size: clamp(2.15rem, 10vw, 3rem) !important; }
}
@media (prefers-reduced-motion: reduce) {
  #mobileMenu a { transition: none !important; }
}


/* MOBILE DRAWER REFINEMENT — presentation only */
@media (max-width: 767px) {
  :root { --header-height: 72px; }
  body > header.fixed, body > header.site-header {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    z-index: 1300 !important;
    width: 100% !important;
  }
  body > header.fixed > nav.site-nav,
  body > header.site-header > nav.site-nav {
    min-height: var(--header-height) !important;
    height: var(--header-height) !important;
    padding-top: 0 !important; padding-bottom: 0 !important;
  }
  body.mobile-menu-open { overflow: hidden !important; }
  body.mobile-menu-open > header { z-index: 1300 !important; }
  body.mobile-menu-open::after {
    content: ""; position: fixed; inset: var(--header-height) 0 0 0;
    background: rgba(16, 17, 20, .24);
    -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
    z-index: 1100; pointer-events: auto;
  }
  #mobileMenu:not(.hidden) {
    display: block !important;
    position: fixed !important;
    top: var(--header-height) !important;
    right: 0 !important; left: auto !important; bottom: 0 !important;
    width: min(76vw, 320px) !important;
    height: calc(100dvh - var(--header-height)) !important;
    max-height: calc(100dvh - var(--header-height)) !important;
    margin: 0 !important;
    padding: 18px 14px max(24px, env(safe-area-inset-bottom)) !important;
    overflow-y: auto !important; overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    background: rgba(245, 245, 242, .78) !important;
    color: #1D1D1F !important;
    border: 1px solid rgba(255,255,255,.68) !important;
    border-top: 3px solid #B63D17 !important;
    border-left: 1px solid rgba(29,29,31,.16) !important;
    border-radius: 0 0 0 22px !important;
    box-shadow: -18px 12px 42px rgba(0,0,0,.18), inset 1px 0 0 rgba(255,255,255,.5) !important;
    -webkit-backdrop-filter: blur(24px) saturate(135%) !important;
    backdrop-filter: blur(24px) saturate(135%) !important;
    z-index: 1400 !important;
  }
  #mobileMenu > div { display:flex !important; flex-direction:column !important; gap:0 !important; width:100%; }
  #mobileMenu a {
    display:flex !important; align-items:center !important;
    min-height:64px !important; padding:17px 8px !important;
    border-bottom:1px solid rgba(29,29,31,.16) !important;
    color:#1D1D1F !important; background:transparent !important;
    font-family:"Space Grotesk",Arial,sans-serif !important;
    font-size:1.02rem !important; font-weight:700 !important;
    letter-spacing:.14em !important; line-height:1.4 !important;
    text-transform:uppercase; text-decoration:none;
    transition:color .18s ease, padding-left .18s ease, background .18s ease;
  }
  #mobileMenu a:last-child { border-bottom:0 !important; }
  #mobileMenu a:hover, #mobileMenu a:focus-visible { color:#B63D17 !important; padding-left:14px !important; background:rgba(255,255,255,.25) !important; outline-offset:3px; }
  #mobileMenuBtn { letter-spacing:.12em !important; }
  /* Keep display headings bold, but stop the letters colliding on narrow screens. */
  .display-title { letter-spacing:-.012em !important; word-spacing:.04em !important; font-stretch:normal; }
  .display-title span { letter-spacing:inherit !important; }
  body:not(.essay-page) > main { padding-top: calc(var(--header-height) + 2rem) !important; }
}
@media (max-width: 380px) {
  #mobileMenu:not(.hidden) { width:min(80vw, 300px) !important; }
  #mobileMenu a { letter-spacing:.11em !important; }
  .display-title { letter-spacing:0 !important; }
}


/* === Responsive refinement: glass drawer, legible mobile headings, zoom-safe layout === */
@media (max-width: 767px) {
  html, body { width:100%; max-width:100%; overflow-x:clip; }
  body { overflow-wrap: break-word; }
  body.mobile-menu-open { height:100%; overscroll-behavior:none; touch-action:none; }
  body.mobile-menu-open::after {
    background:rgba(18,18,20,.32) !important;
    -webkit-backdrop-filter:blur(8px) saturate(115%) !important;
    backdrop-filter:blur(8px) saturate(115%) !important;
  }
  #mobileMenu:not(.hidden) {
    width:min(76vw, 320px) !important;
    background:rgba(248,247,243,.66) !important;
    border:1px solid rgba(255,255,255,.76) !important;
    border-top:3px solid rgba(182,61,23,.9) !important;
    box-shadow:-18px 12px 48px rgba(0,0,0,.16), inset 1px 0 0 rgba(255,255,255,.72) !important;
    -webkit-backdrop-filter:blur(30px) saturate(145%) !important;
    backdrop-filter:blur(30px) saturate(145%) !important;
  }
  #mobileMenu a {
    min-height:68px !important;
    font-size:1.08rem !important;
    letter-spacing:.17em !important;
    line-height:1.5 !important;
  }
  /* Keep the site's display type expressive without letting it exceed the viewport. */
  .display-title {
    max-width:100% !important;
    font-size:clamp(3.15rem, 13.2vw, 6.4rem) !important;
    line-height:.94 !important;
    letter-spacing:-.018em !important;
    overflow-wrap:normal !important;
    word-break:normal !important;
  }
  .display-title span { letter-spacing:inherit !important; }
  main, main section, main section > div { min-width:0; max-width:100%; }
  main section { scroll-margin-top:calc(var(--header-height, 72px) + 12px); }
  main section p, main section h2, main section h3, main section li {
    overflow-wrap:anywhere;
  }
  /* Loosen compact archive filters and cards on phones. */
  #filterBar { gap:10px !important; }
  #filterBar button, #filterBar a {
    min-height:46px;
    padding:11px 15px !important;
    letter-spacing:.055em;
    line-height:1.35;
  }
  #articlesGrid { gap:22px !important; }
  #articlesGrid > article { min-width:0; max-width:100%; }
  #articlesGrid h2 { font-size:clamp(1.35rem, 5.8vw, 1.8rem) !important; line-height:1.18 !important; letter-spacing:-.015em !important; overflow-wrap:anywhere; }
}
@media (max-width: 420px) {
  .display-title { font-size:clamp(2.8rem, 12.8vw, 4.2rem) !important; }
  .site-brand { font-size:clamp(.88rem, 4.1vw, 1.08rem) !important; letter-spacing:-.015em !important; }
  #mobileMenu:not(.hidden) { width:min(78vw, 320px) !important; }
}
/* Ensure content reflows instead of forcing horizontal scrolling at browser zoom levels. */
img, video, iframe, canvas, svg { max-width:100%; }


/* Final responsive navigation override: one drawer style on every shared page. */
#mobileMenuBackdrop { display:none; }
body.mobile-menu-open { overflow:hidden !important; overscroll-behavior:none; }
#mobileMenu { box-sizing:border-box; max-width:100vw; }
@media (max-width: 767px) {
  #mobileMenuBtn { position:relative; z-index:1110 !important; }
  #mobileMenu a { max-width:100%; overflow-wrap:anywhere; }
}


/* Critical drawer visibility override: beats Tailwind .hidden and older page rules. */
#mobileMenu.mobile-menu-visible {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1100 !important;
}
#mobileMenuBackdrop { z-index: 1090 !important; }
@media (min-width: 768px) {
  #mobileMenu:not(.mobile-menu-visible) { display: none !important; }
}


/* V3 definitive mobile drawer stacking fix.
   The old body::after blur layer could cover the drawer on subpages,
   especially the standalone essay template. The JS-created backdrop is now
   the only backdrop; the drawer is moved directly under <body>. */
body.mobile-menu-open::after {
  content: none !important;
  display: none !important;
  pointer-events: none !important;
}
#mobileMenuBackdrop {
  position: fixed !important;
  z-index: 1200 !important;
}
#mobileMenu.mobile-menu-visible {
  position: fixed !important;
  z-index: 1210 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}


/* =========================================================
   WARM GRADIENT BACKGROUND ONLY
   Presentation-only. Existing typography, layout, and glass
   navigation are intentionally preserved. The grid texture is removed.
   ========================================================= */
html, body {
  background-color: #E4E2DD !important;
}
body {
  background-image: url("../assets/warm-gradient-background.jpg") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}
/* Remove the previous vignette/colour wash; keep the menu's own glass backdrop. */
body::after {
  content: none !important;
  display: none !important;
}
/* Remove the old square grid from the home hero, without changing its content. */
.hero-grid {
  background-color: transparent !important;
  background-image: none !important;
  background-size: auto !important;
}
/* Keep section surfaces transparent so the new background remains visible. */
main, .page-section, .front-page, .contact-page, .article-page {
  background-color: transparent;
}
@media (max-width: 767px) {
  body {
    background-attachment: scroll !important;
    background-position: center top !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll !important; }
}


/* Dossier CTA: reserve a little hover space so its upper edge never gets clipped. */
.hero-grid .mt-8:has(> .button-1) { padding-top: 8px; padding-bottom: 5px; overflow: visible !important; }
.hero-grid .button-1 { display: inline-block; position: relative; overflow: visible !important; }
.hero-grid .button-1-front { will-change: transform; }
.hero-grid .button-1:hover .button-1-front { transform: translateY(-4px) !important; }


/* =========================================================
   LE SEPTIÈME ART — dark cinematic homepage
   Homepage-only overrides. Secondary pages keep their
   existing paper/editorial treatment.
   ========================================================= */
.front-page {
  --black: #202226;
  --panel: #17191d;
  --white: #f5f6f8;
  --orange: #315bea;
  --amber: #8fa8ff;
  --muted: #a5a8b0;
  background: #202226 !important;
  color: #f5f6f8 !important;
}
.front-page::after { display: none !important; }
.front-page .site-header {
  background: rgba(32,34,38,.72) !important;
  border-bottom-color: rgba(255,255,255,.045) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.front-page .site-brand,
.front-page .site-brand:hover,
.front-page .site-brand:focus { color: #f5f6f8 !important; }
.front-page .brand-accent { color: #f5f6f8 !important; }
.front-page .site-nav-link {
  min-height: 40px;
  border-color: transparent !important;
  border-radius: 3px !important;
  background: transparent !important;
  color: rgba(245,246,248,.78) !important;
  padding: .55rem .8rem;
  box-shadow: none !important;
}
.front-page .site-nav-link:hover,
.front-page .site-nav-link.active {
  background: rgba(255,255,255,.09) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.12) !important;
  transform: none;
}
.front-page #mobileMenuBtn {
  border-color: rgba(255,255,255,.35) !important;
  color: #f5f6f8 !important;
}
.front-page #mobileMenu {
  background: #202226 !important;
  border-color: rgba(255,255,255,.18) !important;
}
.front-page #mobileMenu a { color: #f5f6f8 !important; }
.front-page .hero-grid {
  min-height: 100svh;
  background-color: #202226 !important;
  background-image: none !important;
  isolation: isolate;
}
.front-page .hero-grid > .absolute.inset-0 {
  background:
    radial-gradient(ellipse at 76% 44%, rgba(255,255,255,.035), transparent 38%),
    linear-gradient(90deg, #202226 0%, #202226 38%, rgba(32,34,38,.8) 57%, rgba(32,34,38,.28) 100%) !important;
  z-index: 0;
}
.front-page .hero-content {
  min-height: calc(100svh - var(--header-height));
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  gap: clamp(1rem, 2vw, 2rem);
}
.front-page .hero-content > div:first-of-type {
  position: relative;
  z-index: 3;
  grid-column: span 7 / span 7;
}
.front-page .hero-grid .text-cinema-orange,
.front-page .hero-grid .hero-brand-accent { color: #8fa8ff !important; }
.front-page .hero-grid .hero-brand-title {
  font-family: "Space Grotesk", Inter, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(4.2rem, 7.4vw, 7.6rem) !important;
  letter-spacing: -.055em !important;
  line-height: .98 !important;
  max-width: 8ch !important;
  text-transform: none !important;
  color: #f5f6f8 !important;
}
.front-page .hero-grid .hero-brand-line { white-space: normal; }
.front-page .hero-grid .hero-brand-line:nth-child(2) { color: #f5f6f8 !important; }
.front-page .hero-grid .hero-brand-period { color: #8fa8ff !important; }
.front-page .hero-grid .hero-intro {
  border-left: 2px solid #315bea !important;
  padding-left: 1rem !important;
  max-width: 39rem;
}
.front-page .hero-grid .hero-intro p:first-child {
  color: #f5f6f8 !important;
  font-size: clamp(1rem, 1.35vw, 1.2rem) !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
}
.front-page .hero-grid .hero-intro p:last-child {
  color: #b8bbc4 !important;
  line-height: 1.8 !important;
}
.front-page .hero-grid .hero-portrait-column {
  grid-column: span 5 / span 5;
  position: relative;
  z-index: 1;
  align-self: stretch;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  margin-right: clamp(-3rem, -2vw, -1rem);
}
.front-page .hero-grid .hero-portrait-stack {
  width: min(100%, 640px) !important;
  margin-left: auto;
  margin-right: 0;
}
.front-page .hero-grid .hero-portrait-frame {
  width: 100% !important;
  max-width: 640px !important;
  aspect-ratio: 4 / 5;
  max-height: min(78vh, 780px) !important;
  overflow: hidden;
  border-radius: 0 !important;
  background: #202226;
  box-shadow: none !important;
}
.front-page .hero-grid .hero-portrait-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 36%;
  filter: grayscale(1) brightness(.52) contrast(1.08) !important;
  border-radius: 0 !important;
  opacity: .94;
}
.front-page .hero-grid .hero-signature-wrap {
  width: min(75%, 290px);
  margin-top: .85rem;
  padding-top: .65rem;
  border-top-color: rgba(245,246,248,.2) !important;
}
.front-page .hero-grid .hero-signature {
  max-height: 52px;
  object-fit: contain;
}
.front-page .hero-grid .hero-signature-caption { color: #a5a8b0 !important; }
.front-page .hero-grid .button-1 {
  border-radius: 2px;
  filter: none;
}
.front-page .hero-grid .button-1-shadow { display: none; }
.front-page .hero-grid .button-1-edge { display: none; }
.front-page .hero-grid .button-1-front {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2rem;
  background: #2448c8 !important;
  border: 1px solid #315bea !important;
  border-radius: 2px;
  color: #fff !important;
  box-shadow: none !important;
  transform: none !important;
  font: 700 .9rem/1 "Space Grotesk", Arial, sans-serif;
  letter-spacing: .01em;
  transition: background .18s ease, transform .18s ease;
}
.front-page .hero-grid .button-1:hover .button-1-front {
  background: #315bea !important;
  transform: translateY(-2px) !important;
}
.front-page .hero-grid .button-1:focus-visible { outline-color: #8fa8ff; }
.front-page .hero-grid > .absolute.bottom-5 {
  color: #9699a3 !important;
  z-index: 3;
}
.front-page .archive-section {
  background: #17191d !important;
  color: #f5f6f8 !important;
  border-top: 1px solid rgba(255,255,255,.08);
}
.front-page .archive-section .display-title {
  color: #f5f6f8 !important;
}
.front-page .archive-section .text-cinema-orange { color: #8fa8ff !important; }
.front-page .archive-section .text-cinema-muted { color: #a5a8b0 !important; }
.front-page .archive-section .btn-brutal {
  background: #2448c8 !important;
  border-color: #315bea !important;
  color: #fff !important;
  border-radius: 2px !important;
}
.front-page .archive-section .btn-brutal:hover {
  background: #315bea !important;
  border-color: #315bea !important;
}
.front-page .archive-section .home-feature {
  background: #202226 !important;
  border-color: rgba(255,255,255,.13) !important;
  color: #f5f6f8 !important;
}
.front-page .archive-section .home-feature span { color: #8fa8ff !important; }
.front-page .archive-section .home-feature p { color: #b8bbc4 !important; }
.front-page .archive-section .home-feature:hover {
  background: #252b3a !important;
  color: #fff !important;
}
.front-page .archive-section .home-feature:hover span { color: #c8d3ff !important; }
.front-page footer { background: #101114 !important; }
.front-page footer .text-cinema-muted { color: #a5a8b0 !important; }

@media (max-width: 900px) {
  .front-page .hero-grid .hero-brand-title {
    font-size: clamp(3.6rem, 8.5vw, 5.8rem) !important;
  }
  .front-page .hero-grid .hero-portrait-stack { width: min(100%, 430px) !important; }
  .front-page .hero-grid .hero-portrait-frame { max-height: 68vh !important; }
}
@media (max-width: 767px) {
  .front-page .hero-grid { min-height: auto; }
  .front-page .hero-content {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 5rem;
  }
  .front-page .hero-content > div:first-of-type {
    order: 1 !important;
    grid-column: 1 / -1 !important;
  }
  .front-page .hero-grid .hero-portrait-column {
    order: 2 !important;
    grid-column: 1 / -1 !important;
    align-items: center;
    margin: 0;
  }
  .front-page .hero-grid .hero-brand-title {
    font-size: clamp(3.2rem, 12vw, 5.2rem) !important;
    max-width: 9ch !important;
    line-height: 1 !important;
  }
  .front-page .hero-grid .hero-portrait-stack { width: min(72vw, 320px) !important; margin: 0 auto; }
  .front-page .hero-grid .hero-portrait-frame { max-height: none !important; }
  .front-page .hero-grid .hero-intro { max-width: 100%; }
  .front-page .hero-grid > .absolute.bottom-5 { bottom: 1rem; }
  .front-page .site-header { background: rgba(32,34,38,.94) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .front-page *, .front-page *::before, .front-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* =========================================================
   Dark cinematic theme for secondary site pages
   Scope is limited to Dossier, Articles and Contact.
   ========================================================= */
body.dossier-page,
body.articles-page,
body.contact-page {
  --black: #202226;
  --panel: #17191d;
  --white: #f5f6f8;
  --orange: #315bea;
  --amber: #8fa8ff;
  --muted: #a5a8b0;
  background: #202226 !important;
  background-image: none !important;
  color: #f5f6f8 !important;
}
body.dossier-page::before,
body.articles-page::before,
body.contact-page::before,
body.dossier-page::after,
body.articles-page::after,
body.contact-page::after {
  content: none !important;
  display: none !important;
}
body.dossier-page header,
body.articles-page header,
body.contact-page header {
  background: rgba(32,34,38,.92) !important;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
body.dossier-page .site-brand,
body.articles-page .site-brand,
body.contact-page .site-brand,
body.dossier-page .site-brand:hover,
body.articles-page .site-brand:hover,
body.contact-page .site-brand:hover {
  color: #f5f6f8 !important;
}
body.dossier-page .brand-accent,
body.articles-page .brand-accent,
body.contact-page .brand-accent { color: #8fa8ff !important; }
body.dossier-page .site-nav-link,
body.articles-page .site-nav-link,
body.contact-page .site-nav-link {
  border-color: rgba(245,246,248,.18) !important;
  color: #f5f6f8 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.dossier-page .site-nav-link:hover,
body.articles-page .site-nav-link:hover,
body.contact-page .site-nav-link:hover,
body.dossier-page .site-nav-link.active,
body.articles-page .site-nav-link.active,
body.contact-page .site-nav-link.active {
  background: rgba(255,255,255,.09) !important;
  border-color: rgba(255,255,255,.32) !important;
  color: #fff !important;
  transform: none;
}
body.dossier-page #mobileMenuBtn,
body.articles-page #mobileMenuBtn,
body.contact-page #mobileMenuBtn {
  border-color: rgba(245,246,248,.35) !important;
  color: #f5f6f8 !important;
}
body.dossier-page main,
body.articles-page main,
body.contact-page main {
  background: #202226 !important;
  color: #f5f6f8 !important;
}
body.dossier-page main > section,
body.articles-page main > section,
body.contact-page main > section,
body.dossier-page main > section.bg-cinema-panel,
body.articles-page main > section.bg-cinema-panel,
body.contact-page main > section.bg-cinema-orange,
body.articles-page main > section.py-20 {
  background: #202226 !important;
  color: #f5f6f8 !important;
}
body.dossier-page .text-cinema-black,
body.articles-page .text-cinema-black,
body.contact-page .text-cinema-black { color: #f5f6f8 !important; }
body.dossier-page .text-cinema-white,
body.articles-page .text-cinema-white,
body.contact-page .text-cinema-white { color: #f5f6f8 !important; }
body.dossier-page .text-cinema-orange,
body.articles-page .text-cinema-orange,
body.contact-page .text-cinema-orange { color: #8fa8ff !important; }
body.dossier-page .text-cinema-amber,
body.articles-page .text-cinema-amber,
body.contact-page .text-cinema-amber { color: #8fa8ff !important; }
body.dossier-page .text-cinema-muted,
body.articles-page .text-cinema-muted,
body.contact-page .text-cinema-muted { color: #a5a8b0 !important; }
body.dossier-page .bg-cinema-black,
body.articles-page .bg-cinema-black,
body.contact-page .bg-cinema-black {
  background: #17191d !important;
  color: #f5f6f8 !important;
}
body.dossier-page .bg-cinema-panel,
body.articles-page .bg-cinema-panel,
body.contact-page .bg-cinema-panel {
  background: #202226 !important;
  color: #f5f6f8 !important;
}
body.dossier-page .brutal-border,
body.contact-page .brutal-border {
  border-color: rgba(245,246,248,.18) !important;
}
body.dossier-page .shadow-\[8px_8px_0_\#FFB703\],
body.contact-page .shadow-\[8px_8px_0_\#050505\] {
  --tw-shadow: 0 14px 32px rgba(0,0,0,.18) !important;
  box-shadow: var(--tw-shadow) !important;
}
body.dossier-page .border-cinema-orange,
body.contact-page .border-cinema-orange { border-color: #315bea !important; }
body.contact-page .bg-cinema-orange {
  background: #202226 !important;
  color: #f5f6f8 !important;
}
body.contact-page input,
body.contact-page textarea {
  background: #202226 !important;
  color: #f5f6f8 !important;
  border-color: rgba(245,246,248,.22) !important;
}
body.contact-page input:focus,
body.contact-page textarea:focus { border-color: #8fa8ff !important; }
body.contact-page .btn-brutal {
  background: #2448c8 !important;
  color: #fff !important;
  border-color: #315bea !important;
  box-shadow: none !important;
}
body.contact-page .btn-brutal:hover { background: #315bea !important; }
body.articles-page #filterBar button,
body.articles-page #filterBar a {
  border-color: rgba(245,246,248,.24) !important;
  color: #f5f6f8 !important;
}
body.articles-page #filterBar button[aria-pressed="true"],
body.articles-page #filterBar button.active {
  background: #2448c8 !important;
  color: #fff !important;
  border-color: #315bea !important;
}
body.articles-page #articlesGrid > *,
body.articles-page .article-card,
body.articles-page #articlesGrid article {
  background: #17191d !important;
  color: #f5f6f8 !important;
  border-color: rgba(245,246,248,.14) !important;
  box-shadow: none !important;
}
body.articles-page #articlesGrid a,
body.articles-page #articlesGrid h2,
body.articles-page #articlesGrid h3 { color: #f5f6f8 !important; }
body.articles-page #articlesGrid p,
body.articles-page #articlesGrid .text-cinema-muted { color: #a5a8b0 !important; }
body.articles-page #articlesGrid .text-cinema-orange { color: #8fa8ff !important; }
body.dossier-page footer,
body.articles-page footer,
body.contact-page footer {
  background: #101114 !important;
  color: #a5a8b0 !important;
}
body.dossier-page footer a,
body.articles-page footer a,
body.contact-page footer a { color: #f5f6f8 !important; }
body.dossier-page footer .text-cinema-muted,
body.articles-page footer .text-cinema-muted,
body.contact-page footer .text-cinema-muted { color: #a5a8b0 !important; }

@media (max-width: 767px) {
  body.dossier-page header,
  body.articles-page header,
  body.contact-page header { background: rgba(32,34,38,.97) !important; }
}


/* =========================================================
   FINAL REFINEMENTS — reference typography, dark navigation,
   Contact contrast, and softer cinematic portrait.
   ========================================================= */
.site-brand {
  font-family: "Poppins", "Space Grotesk", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -.035em !important;
  text-transform: none !important;
}
.site-brand .brand-accent {
  font-family: inherit !important;
  font-weight: 700 !important;
}
.front-page .hero-grid .hero-brand-title {
  font-family: "Poppins", "Space Grotesk", sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(3.8rem, 6.6vw, 6.6rem) !important;
  letter-spacing: -.065em !important;
  line-height: .98 !important;
  max-width: none !important;
  text-transform: none !important;
}
.front-page .hero-grid .hero-brand-line {
  display: block;
  white-space: nowrap;
}
.front-page .hero-grid .hero-brand-line:nth-child(2) {
  letter-spacing: -.075em !important;
}
@media (max-width: 900px) {
  .front-page .hero-grid .hero-brand-title {
    font-size: clamp(3.4rem, 8.2vw, 5.6rem) !important;
    letter-spacing: -.065em !important;
  }
}
@media (max-width: 560px) {
  .front-page .hero-grid .hero-brand-title {
    font-size: clamp(2.9rem, 12.7vw, 4.5rem) !important;
    letter-spacing: -.07em !important;
    line-height: 1 !important;
  }
}

/* Prevent the legacy paper-colored nav surface from showing on dark inner pages. */
body.dossier-page > header.fixed,
body.articles-page > header.fixed,
body.contact-page > header.fixed,
body.dossier-page > header.fixed > nav.site-nav,
body.articles-page > header.fixed > nav.site-nav,
body.contact-page > header.fixed > nav.site-nav {
  background: rgba(32,34,38,.96) !important;
  border-bottom-color: rgba(255,255,255,.08) !important;
  box-shadow: none !important;
}
body.dossier-page > header.fixed > nav.site-nav,
body.articles-page > header.fixed > nav.site-nav,
body.contact-page > header.fixed > nav.site-nav {
  background-image: none !important;
}
body.dossier-page .site-brand,
body.articles-page .site-brand,
body.contact-page .site-brand {
  font-family: "Poppins", "Space Grotesk", sans-serif !important;
  color: #f5f6f8 !important;
}
body.dossier-page #mobileMenu,
body.articles-page #mobileMenu,
body.contact-page #mobileMenu {
  background: #17191d !important;
  color: #f5f6f8 !important;
  border-color: rgba(245,246,248,.18) !important;
}
body.dossier-page #mobileMenu a,
body.articles-page #mobileMenu a,
body.contact-page #mobileMenu a {
  color: #f5f6f8 !important;
  border-color: rgba(245,246,248,.14) !important;
}

/* Contact page: remove the old black-on-charcoal inheritance at the source. */
body.contact-page main > section,
body.contact-page main > section h1,
body.contact-page main > section > div > div > p,
body.contact-page #contactForm,
body.contact-page #contactForm label,
body.contact-page #contactForm p {
  color: #f5f6f8 !important;
}
body.contact-page main > section > div > div > p:first-child {
  color: #9eb4ff !important;
}
body.contact-page main > section > div > div > p.font-serif {
  color: #c5c8d0 !important;
}
body.contact-page #contactForm {
  background: #17191d !important;
  border-color: rgba(245,246,248,.2) !important;
}
body.contact-page #contactForm label {
  display: block;
  color: #dfe2e9 !important;
  letter-spacing: .12em;
}
body.contact-page #contactForm input,
body.contact-page #contactForm textarea {
  background: #202226 !important;
  color: #f5f6f8 !important;
  caret-color: #f5f6f8;
  border-color: rgba(245,246,248,.24) !important;
}
body.contact-page #contactForm input::placeholder,
body.contact-page #contactForm textarea::placeholder {
  color: #a5a8b0 !important;
  opacity: 1;
}
body.contact-page #contactForm input:focus,
body.contact-page #contactForm textarea:focus {
  border-color: #8fa8ff !important;
  outline: 2px solid rgba(143,168,255,.18);
  outline-offset: 1px;
}
body.contact-page #contactForm .btn-brutal {
  background: #2448c8 !important;
  color: #fff !important;
  border-color: #315bea !important;
}
body.contact-page #contactForm #status { color: #c5d0ff !important; }

/* Portrait: soften detail and merge its left edge into the charcoal hero. */
.front-page .hero-grid .hero-portrait-frame {
  position: relative;
  isolation: isolate;
  background: #202226 !important;
}
.front-page .hero-grid .hero-portrait-frame img,
.front-page .hero-grid .professor-img {
  filter: grayscale(1) brightness(.68) contrast(.88) blur(1.7px) !important;
  transform: scale(1.018);
  transform-origin: center;
}
.front-page .hero-grid .hero-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(32,34,38,.52) 0%,
    rgba(32,34,38,.24) 18%,
    rgba(32,34,38,.04) 42%,
    transparent 62%);
}
@media (max-width: 767px) {
  .front-page .hero-grid .hero-portrait-frame img,
  .front-page .hero-grid .professor-img {
    filter: grayscale(1) brightness(.72) contrast(.9) blur(1.3px) !important;
  }
  .front-page .hero-grid .hero-portrait-frame::after {
    background: linear-gradient(90deg, rgba(32,34,38,.28), transparent 60%);
  }
}


/* FINAL VISUAL PASS: consistent display type and portrait proportions */
body.dossier-page .display-title,
body.articles-page .display-title,
body.contact-page .display-title {
  font-family: "Poppins", "Space Grotesk", sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -.065em !important;
  line-height: .98 !important;
}
.front-page .hero-grid .hero-portrait-frame {
  width: min(100%, 312px) !important;
}
.front-page .hero-grid .hero-signature-wrap {
  width: min(88%, 280px) !important;
}
.front-page .hero-grid .hero-portrait-frame img,
.front-page .hero-grid .professor-img {
  filter: grayscale(1) brightness(.76) contrast(.92) blur(.6px) !important;
  transform: scale(1.012);
  transform-origin: center;
}
.front-page .hero-grid .hero-portrait-frame::after {
  background: linear-gradient(90deg,
    rgba(32,34,38,.42) 0%,
    rgba(32,34,38,.18) 18%,
    rgba(32,34,38,.025) 45%,
    transparent 65%) !important;
}
@media (max-width: 767px) {
  .front-page .hero-grid .hero-portrait-frame { width: min(88%, 280px) !important; }
  .front-page .hero-grid .hero-signature-wrap { width: min(86%, 260px) !important; }
  .front-page .hero-grid .hero-portrait-frame img,
  .front-page .hero-grid .professor-img {
    filter: grayscale(1) brightness(.78) contrast(.93) blur(.5px) !important;
  }
  .front-page .hero-grid .hero-portrait-frame::after {
    background: linear-gradient(90deg, rgba(32,34,38,.22), transparent 60%) !important;
  }
}


/* MOBILE-ONLY PAGE SPACING REPAIR — reduce excess vertical space without changing desktop layouts. */
@media (max-width: 767px) {
  /* Home: let the hero follow its content instead of forcing a full viewport of blank space. */
  body.front-page main > .hero-grid {
    min-height: auto !important;
  }
  body.front-page main > .hero-grid > .hero-content {
    min-height: auto !important;
    padding-top: 1.75rem !important;
    padding-bottom: 2.5rem !important;
    gap: 1.5rem !important;
  }
  body.front-page main > .hero-grid > .hero-content > .absolute.bottom-5 {
    position: static !important;
    margin: 1rem 0 0 !important;
  }
  body.front-page main > .archive-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  body.front-page #homePublishedArticles {
    margin-top: 2rem !important;
  }

  /* Dossier: trim the gap below the fixed header and section's vertical padding. */
  body.dossier-page main.pt-32 {
    padding-top: 5.25rem !important;
  }
  body.dossier-page main > section {
    padding-top: 2rem !important;
    padding-bottom: 2.25rem !important;
  }
  body.dossier-page main > section .mt-14 {
    margin-top: 2rem !important;
  }
  body.dossier-page main > section .mt-10 {
    margin-top: 1.75rem !important;
  }

  /* Articles: reduce section padding while preserving card spacing and readability. */
  body.articles-page main.pt-32 {
    padding-top: 5.25rem !important;
  }
  body.articles-page main > section {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
  }
  body.articles-page #filterBar {
    margin-top: 1.25rem !important;
    margin-bottom: 1.25rem !important;
  }
  body.articles-page #articlesGrid {
    gap: 1.25rem !important;
  }

  /* Contact: shorten the section's top/bottom padding, not the form's usable controls. */
  body.contact-page main.pt-32 {
    padding-top: 5.25rem !important;
  }
  body.contact-page main > section {
    padding-top: 2.25rem !important;
    padding-bottom: 2.5rem !important;
  }
  body.contact-page main > section > div {
    gap: 2rem !important;
  }
  body.contact-page #contactForm {
    padding: 1.25rem !important;
  }

  /* Reduce footer-only blank space on public landing pages. Essay pages are excluded. */
  body.front-page > footer,
  body.dossier-page > footer,
  body.articles-page > footer,
  body.contact-page > footer {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* Light theme: render SEPTIÈME in the established brand orange.
   Dark theme styling remains unchanged. */
html[data-theme="light"] .front-page .hero-grid .hero-brand-line:nth-child(2) {
  color: #B63D17 !important;
}

/* MOBILE MENU BUTTON FIX: keep MENU readable in both themes.
   The earlier mobile rule sets a paper-coloured background unconditionally,
   while the dark homepage sets the button text to off-white. */
@media (max-width: 767px) {
  html[data-theme="dark"] body.front-page #mobileMenuBtn {
    background: #292c32 !important;
    color: #f5f6f8 !important;
    -webkit-text-fill-color: #f5f6f8 !important;
    border-color: rgba(245,246,248,.35) !important;
  }

  html[data-theme="light"] body.front-page #mobileMenuBtn {
    background: #f5f3ef !important;
    color: #202226 !important;
    -webkit-text-fill-color: #202226 !important;
    border-color: rgba(32,34,38,.3) !important;
  }
}

/* MOBILE DRAWER FINAL REFINEMENT: rounded panel with balanced outer spacing.
   Overrides the controller's inline geometry without changing its behaviour. */
@media (max-width: 767px) {
  #mobileMenu.mobile-menu-visible {
    top: calc(var(--header-height, 72px) + 12px) !important;
    right: 12px !important;
    left: auto !important;
    bottom: 12px !important;
    width: min(78vw, 340px) !important;
    height: auto !important;
    max-height: calc(100dvh - var(--header-height, 72px) - 24px) !important;
    margin: 0 !important;
    padding: 20px 20px 28px !important;
    border-radius: 24px !important;
    overflow-y: auto !important;
    box-shadow: 0 16px 44px rgba(0,0,0,.22) !important;
  }

  #mobileMenu.mobile-menu-visible .mobile-drawer-links {
    gap: 0 !important;
    padding: 0 !important;
  }

  #mobileMenu.mobile-menu-visible a {
    min-height: 62px !important;
    padding: 16px 8px !important;
  }
}

/* FINAL MOBILE NAV PATCH: keep the MENU control visible on every public page,
   make the control pill-shaped, and preserve the compact rounded drawer. */
@media (max-width: 767px) {
  #mobileMenuBtn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    min-width: 82px !important;
    min-height: 46px !important;
    padding: .65rem .8rem !important;
    border-radius: 999px !important;
    font-weight: 800 !important;
    letter-spacing: .08em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.12) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html[data-theme="light"] #mobileMenuBtn,
  html:not([data-theme="dark"]) #mobileMenuBtn {
    background: #f5f3ef !important;
    color: #202226 !important;
    -webkit-text-fill-color: #202226 !important;
    border: 1px solid rgba(32,34,38,.28) !important;
  }

  html[data-theme="dark"] #mobileMenuBtn {
    background: #292c32 !important;
    color: #f5f6f8 !important;
    -webkit-text-fill-color: #f5f6f8 !important;
    border: 1px solid rgba(245,246,248,.35) !important;
  }

  #mobileMenu.mobile-menu-visible {
    width: min(50vw, 300px) !important;
    border-radius: 24px !important;
    overflow: hidden auto !important;
    clip-path: inset(0 round 24px) !important;
  }
}
