/* =====================================================================
   Style « Compagnie professionnelle » (réglage style_site = compagnie)
   Chargé après site.css et app.css : sobre, éditorial, grandes photos,
   noir profond, couleur principale réservée aux accents.
   Tout est préfixé par .style-compagnie pour ne rien changer au style « troupe ».
   ===================================================================== */

.style-compagnie {
  --paper: #faf9f7;
  --cream: #f1eeea;
  --cream-2: #e6e1da;
  --line: #e2ddd6;
  --ink-soft: #3b3533;
  --muted: #706864;
  --radius: 0px;
  --radius-sm: 0px;
  --shadow: none;
  --shadow-lg: 0 30px 60px -30px rgb(0 0 0 / .45);
  --wrap: 1240px;
  --on-dark: #ece6df;
  --on-dark-muted: rgb(236 230 223 / .62);
}
.style-compagnie ::selection { background: var(--red); color: #fff; }

/* ---------- Typographie ---------- */
.style-compagnie h1, .style-compagnie h2, .style-compagnie h3 { font-weight: 500; letter-spacing: -.005em; }
.style-compagnie h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; font-weight: 500; }
.style-compagnie h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; }
.style-compagnie h3 { font-size: 1.45rem; }
.style-compagnie .lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); line-height: 1.7; }
.style-compagnie .kicker {
  font-size: .72rem; letter-spacing: .26em; font-weight: 600; color: var(--red);
}
.style-compagnie .kicker::before { width: 40px; height: 1px; }
.style-compagnie .section-dark .kicker, .style-compagnie .on-dark .kicker,
.style-compagnie .hero .kicker, .style-compagnie .page-hero .kicker { color: var(--on-dark-muted); }
.style-compagnie :focus-visible { outline-color: var(--red); border-radius: 0; }

/* Mots mis en valeur du grand titre : italique, sans pastille */
.style-compagnie .cut { background: none !important; transform: none !important; padding: 0; margin: 0; border-radius: 0; font-style: italic; color: inherit !important; }

/* ---------- Boutons ---------- */
.style-compagnie .btn {
  border-radius: 0; border-width: 1px; padding: 1em 1.9em;
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.style-compagnie .btn:hover { transform: none; }
.style-compagnie .btn-red { box-shadow: none; }
.style-compagnie .btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.style-compagnie .on-dark .btn-ghost, .style-compagnie .hero .btn-ghost { color: #fff; border-color: rgb(255 255 255 / .55); }
.style-compagnie .on-dark .btn-ghost:hover, .style-compagnie .hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.style-compagnie .btn-light { background: #fff; color: var(--ink); }
.style-compagnie .btn-light:hover { background: var(--cream); }
.style-compagnie .link-arrow { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.style-compagnie .link-arrow:hover { color: var(--red); }
.style-compagnie .link-arrow .ico { width: 1em; height: 1em; }

/* ---------- En-tête : barre noire, navigation en petites capitales ---------- */
.style-compagnie .site-header { background: rgb(14 12 12 / .94); border-bottom: 1px solid rgb(255 255 255 / .08); }
.style-compagnie .header-inner { min-height: 84px; }
.style-compagnie .brand { color: #fff; gap: 14px; }
.style-compagnie .brand img { width: 58px; }
.style-compagnie .brand-text { flex-direction: row; gap: .3em; font: 500 1.35rem/1 var(--font-display); letter-spacing: .01em; }
.style-compagnie .brand-text span:last-child:not(:first-child) { color: #fff; font-style: italic; }
.style-compagnie .nav ul { gap: 2px; }
.style-compagnie .nav ul a {
  border-radius: 0; color: var(--on-dark-muted); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  padding: 10px 14px; position: relative;
}
.style-compagnie .nav ul a:hover { background: none; color: #fff; }
.style-compagnie .nav ul a[aria-current="page"] { background: none; color: #fff; }
.style-compagnie .nav ul a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px; background: var(--red); }
.style-compagnie .nav-login { color: var(--on-dark-muted); }
.style-compagnie .nav-toggle { color: #fff; }
@media (max-width: 1080px) {
  .style-compagnie .nav { background: #0e0c0c; inset: 84px 0 auto 0; max-height: calc(100dvh - 84px); border-bottom: 1px solid rgb(255 255 255 / .08); }
  .style-compagnie .nav ul a { font-size: .9rem; padding: 14px 4px; border-bottom: 1px solid rgb(255 255 255 / .08); }
  .style-compagnie .nav ul a[aria-current="page"]::after { display: none; }
  .style-compagnie .nav ul a[aria-current="page"] { color: #fff; }
}

/* ---------- Accueil : photo plein cadre ---------- */
.style-compagnie .hero {
  min-height: min(calc(100svh - 84px), 900px); display: flex; align-items: flex-end;
  padding: clamp(80px, 12vw, 160px) 0 clamp(56px, 8vw, 96px);
  background:
    linear-gradient(90deg, rgb(10 8 8 / .9) 0%, rgb(10 8 8 / .62) 45%, rgb(10 8 8 / .15) 100%),
    linear-gradient(0deg, rgb(10 8 8 / .85) 0%, transparent 45%),
    var(--hero-img) center 35% / cover no-repeat,
    #0e0c0c;
}
.style-compagnie .hero::before, .style-compagnie .hero::after,
.style-compagnie .hero-edge, .style-compagnie .curtain-edge, .style-compagnie .hero-stage { display: none; }
.style-compagnie .hero-grid { grid-template-columns: minmax(0, 1fr); width: 100%; }
.style-compagnie .hero-grid > div:first-child { max-width: 860px; }
.style-compagnie .hero h1 { margin-bottom: .5em; }
.style-compagnie .hero .lead { color: rgb(236 230 223 / .82); max-width: 40em; }
.style-compagnie .hero-actions { margin-top: 38px; gap: 14px; }
.style-compagnie .hero-facts {
  margin-top: 56px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .16);
  gap: 10px 36px; color: var(--on-dark-muted); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
}
.style-compagnie .hero-facts li { gap: 0; }
.style-compagnie .hero-facts .ico { display: none; }

/* ---------- Sections ---------- */
.style-compagnie .section { padding: clamp(72px, 10vw, 136px) 0; }
.style-compagnie .section-cream { background: var(--cream); }
.style-compagnie .section-dark { background: #0e0c0c; }
.style-compagnie .section-head { margin-bottom: clamp(36px, 5vw, 64px); }

/* Présentation (accueil) */
.style-compagnie .photo-stack { padding: 0; }
.style-compagnie .photo-stack img { aspect-ratio: 4 / 5; filter: grayscale(.15); box-shadow: none; }
.style-compagnie .photo-stack .badge {
  border-radius: 0; background: var(--red); left: auto; right: -1px; bottom: -1px; box-shadow: none; padding: 18px 22px;
}
.style-compagnie .badge strong { color: #fff; font-weight: 500; }
.style-compagnie .badge span { color: rgb(255 255 255 / .8); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.style-compagnie .split { gap: clamp(40px, 8vw, 120px); }

/* Citations */
.style-compagnie .quote-mark { color: var(--red); font-weight: 500; }
.style-compagnie .quote p { font-weight: 500; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.25; }
.style-compagnie .quote cite { color: var(--on-dark-muted); font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; }
.style-compagnie .quote-dots button { border-radius: 0; width: 26px; height: 2px; }
.style-compagnie .quote-dots button[aria-current="true"] { background: #fff; }

/* Bandeau final */
.style-compagnie .cta-band { border-radius: 0; background: #0e0c0c; padding: clamp(40px, 6vw, 72px); }
.style-compagnie .cta-band::after { display: none; }
.style-compagnie .cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.style-compagnie .cta-band p { color: var(--on-dark-muted); }
.style-compagnie .cta-band .btn-ghost { border-color: rgb(255 255 255 / .55); }

/* ---------- En-têtes de pages ---------- */
.style-compagnie .page-hero { padding: clamp(96px, 13vw, 190px) 0 clamp(48px, 6vw, 80px); background: #0e0c0c; }
.style-compagnie .page-hero-bg { opacity: .55; filter: grayscale(.35); background-position: center 35%; }
.style-compagnie .page-hero.has-image::before { background: linear-gradient(0deg, rgb(10 8 8 / .92) 0%, rgb(10 8 8 / .45) 60%, rgb(10 8 8 / .3) 100%); }
.style-compagnie .page-hero h1 { max-width: 18em; }
.style-compagnie .page-hero .lead { color: rgb(236 230 223 / .8); }

/* ---------- Contenu éditorial ---------- */
.style-compagnie .prose { font-size: 1.08rem; }
.style-compagnie .prose p { line-height: 1.8; }
.style-compagnie .prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.style-compagnie .pull { border-left: 1px solid var(--red); font-weight: 500; }
.style-compagnie .subnav { gap: 0; border-bottom: 1px solid var(--line); margin-bottom: 44px; }
.style-compagnie .subnav a {
  border: 0; border-radius: 0; background: none; padding: 12px 0; margin-right: 32px; position: relative;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.style-compagnie .subnav a:hover { color: var(--ink); }
.style-compagnie .subnav a[aria-current="page"] { background: none; color: var(--ink); }
.style-compagnie .subnav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
.style-compagnie .prose-images { gap: 6px; }
.style-compagnie .toc { border-left-width: 1px; }
.style-compagnie .toc a { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Répertoire ---------- */
.style-compagnie .repertoire { gap: clamp(64px, 9vw, 128px); }
.style-compagnie .creation { grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 6vw, 96px); }
.style-compagnie .creation-media { aspect-ratio: 4 / 3; background: #0e0c0c; }
.style-compagnie .creation-media img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; }
.style-compagnie .creation-media:hover img { transform: scale(1.03); }
.style-compagnie .creation-body h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 12px; }
.style-compagnie .creation-body h2 a:hover { color: var(--red); }
.style-compagnie .creation-auteur { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--ink-soft); }
.style-compagnie .creation-initiales { background: #1b1716; font-weight: 500; }

.style-compagnie .archives { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 48px 28px; }
.style-compagnie .archive { background: none; border: 0; }
.style-compagnie .archive:hover, .style-compagnie .archive:focus-visible { transform: none; box-shadow: none; }
.style-compagnie .archive-media { aspect-ratio: 3 / 4; background: #0e0c0c; }
.style-compagnie .archive-media img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.style-compagnie .archive:hover .archive-media img { transform: scale(1.04); }
.style-compagnie .archive-body { padding: 18px 0 0; gap: 6px; }
.style-compagnie .archive-body strong { font-weight: 500; font-size: 1.45rem; line-height: 1.15; }
.style-compagnie .archive:hover strong { color: var(--red); }
.style-compagnie .archive-body span { font-size: .92rem; }
.style-compagnie .archive-body .archive-annee { font-size: .7rem; letter-spacing: .24em; color: var(--muted); }

.style-compagnie .creation-cover { box-shadow: none; }
.style-compagnie .info-card { border: 0; border-top: 1px solid var(--ink); background: none; padding: 18px 0 8px; }
.style-compagnie .info-card h2 { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.style-compagnie .info-card ul:not(.doc-links) { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.style-compagnie .info-card li { line-height: 1.5; }
.style-compagnie .gallery { columns: 3 280px; column-gap: 6px; }
.style-compagnie .gallery a { margin-bottom: 6px; }
.style-compagnie .partenaires img { background: #fff; padding: 16px; }

/* ---------- Agenda, contact, divers ---------- */
.style-compagnie .show { border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
.style-compagnie .show-date { border-radius: 0; }
.style-compagnie .empty-state { border-radius: 0; }
.style-compagnie .route .ico { color: var(--red); }
.style-compagnie .form-card { border-radius: 0; box-shadow: none; border: 1px solid var(--line); }
.style-compagnie input, .style-compagnie select, .style-compagnie textarea { border-radius: 0 !important; }
.style-compagnie .note-box, .style-compagnie .alert { border-radius: 0; }

/* ---------- Pied de page ---------- */
.style-compagnie .site-footer { background: #0e0c0c; color: var(--on-dark-muted); }
.style-compagnie .footer-brand img { background: none; border-radius: 0; padding: 0; width: 120px; }
.style-compagnie .footer-title { color: #fff; font-size: .7rem; letter-spacing: .24em; }
.style-compagnie .footer-links a { color: var(--on-dark-muted); }
.style-compagnie .footer-links a:hover { color: #fff; }
.style-compagnie .footer-bottom { border-top-color: rgb(255 255 255 / .08); }

/* Affiches entières (pas de recadrage) sur fond noir */
.style-compagnie .creation-media { aspect-ratio: 5 / 4; }
.style-compagnie .creation-media img { object-fit: contain; }
/* Accueil : répertoire sur 3 colonnes */
.style-compagnie.page-accueil .archives { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .style-compagnie.page-accueil .archives { grid-template-columns: repeat(2, 1fr); gap: 36px 18px; } }
@media (max-width: 520px) { .style-compagnie .archives { grid-template-columns: 1fr 1fr; gap: 32px 14px; } .style-compagnie .archive-body strong { font-size: 1.15rem; } }
.style-compagnie .creation.is-flip { grid-template-columns: 1fr 1.25fr; }
@media (max-width: 820px) { .style-compagnie .creation, .style-compagnie .creation.is-flip { grid-template-columns: 1fr; } }

/* ---------- Espace bureau : titres à l'échelle de l'outil ---------- */
.style-compagnie .admin-side h2 { font: 600 .7rem/1 var(--font-body); letter-spacing: .2em; color: var(--on-dark-muted); }
.style-compagnie .admin-title h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; }
.style-compagnie .admin-main h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.style-compagnie .admin-main h3 { font-size: 1.2rem; }
.style-compagnie .admin-side a[aria-current="page"] { border-radius: 0; }
.style-compagnie .chip { border-radius: 0; }
.style-compagnie .btn-sm { padding: .7em 1.2em; font-size: .7rem; letter-spacing: .16em; }
.style-compagnie .btn-xs { padding: .45em .8em; font-size: .64rem; letter-spacing: .12em; }
