/* ==========================================================
   PIRAK — Cirkul'R — feuille de style
   Chargé sur pirak.html, EN PLUS de style.css (qui doit être
   chargé en premier).

   Palette : noir profond + rouille + or terni
   Typo : Pirata One (titres) / Almendra (texte)
   ========================================================== */

/* ---------- 1. THÈME PIRAK (variables propres à cette page) ---------- */

:root{
  --bg: #000000;
  --deep: #0d0906;
  --ink: #e3d6b0;
  --muted: #a99a78;
  --rouille: #b5432e;
  --rouille-clair: #d8593c;
  --or-terni: #c9a227;
  --line: rgba(227, 214, 176, 0.15);
  --font-display: 'Pirata One', cursive;
  --font-body: 'Almendra', serif;
}

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
}

ul{ list-style: none; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- 2. MENU (variante Pirak) ---------- */

.menu--pirak{
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0d0906;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.menu--pirak .menu__lien{
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-shadow: none;
}

.menu--pirak .menu__lien::after{
  background: var(--rouille-clair);
}

.menu--pirak .menu__lien:hover,
.menu--pirak .menu__lien:focus-visible{
  color: var(--rouille-clair);
  text-shadow: 0 0 10px rgba(216,89,60,0.45);
}

.menu--pirak .menu__lien:focus-visible{
  outline: 1px solid var(--rouille-clair);
}

/* ---------- 3. SOUS-MENU SPECTACLES ---------- */

.sous-menu__lien--pirak{
  font-family: 'Pirata One', cursive;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: #b5432e;
  letter-spacing: 0.03em;
  text-shadow: 1px 1px 0 rgba(0,0,0,0.6);
  transform: rotate(-2deg);
  display: inline-block;
}

.sous-menu__lien--pirak:hover{
  color: #d8593c;
  text-shadow: 0 0 14px rgba(216,89,60,0.5);
}

.sous-menu__lien--sygne{
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4f2fa;
  text-shadow:
    0 0 10px rgba(244,242,250,0.7),
    0 0 26px rgba(159,232,255,0.55),
    0 0 50px rgba(217,170,255,0.4);
}

.sous-menu__lien--sygne:hover{
  text-shadow:
    0 0 14px rgba(244,242,250,0.9),
    0 0 36px rgba(159,232,255,0.75),
    0 0 70px rgba(217,170,255,0.55);
}

.sous-menu__lien--klimt{
  font-family: 'IM Fell English', serif;
  font-style: italic;
  color: #d9b84a;
  letter-spacing: 0.06em;
  font-size: clamp(1.1rem, 1.8vw, 1.6rem);
  text-align: center;
  display: inline-block;
}

.sous-menu__lien--klimt:hover{ color: #e0bb45; }

/* ---------- 4. INTRO ANIMÉE (fumée de canon + bateau) ---------- */

.intro-pirak{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: #000;
  overflow: hidden;
}

.intro-pirak.is-hidden{
  display: none;
}

.intro-pirak__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro-pirak__skip{
  position: absolute;
  bottom: clamp(18px, 3vw, 32px);
  right: clamp(18px, 3vw, 32px);
  z-index: 10;
  background: none;
  border: 1px solid rgba(227,214,176,0.35);
  color: rgba(227,214,176,0.75);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55em 1.1em;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.intro-pirak__skip:hover,
.intro-pirak__skip:focus-visible{
  color: var(--rouille-clair);
  border-color: var(--rouille-clair);
}

/* ---------- 5. SECTION 1 : HERO (titre) ---------- */

.hero-pirak{
  position: relative;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at center, rgba(60,30,20,0.35) 0%, rgba(0,0,0,0.9) 70%),
    var(--bg);
}

.hero-pirak-title{
  position: relative;
  display: flex;
  gap: 0.02em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 15vw, 10rem);
  letter-spacing: 0.05em;
  color: var(--rouille);
  text-transform: uppercase;
}

.hero-pirak-title span{
  display: inline-block;
  text-shadow: 0 0 8px rgba(181,67,46,0.3);
}

.hero-pirak-title span:nth-child(1){ animation-delay: 0s; }
.hero-pirak-title span:nth-child(2){ animation-delay: 0.3s; }
.hero-pirak-title span:nth-child(3){ animation-delay: 0.6s; }
.hero-pirak-title span:nth-child(4){ animation-delay: 0.9s; }
.hero-pirak-title span:nth-child(5){ animation-delay: 1.2s; }

@keyframes vacille-torche{
  0%, 100%{
    text-shadow:
      0 0 10px rgba(181,67,46,0.65),
      0 0 26px rgba(181,67,46,0.4),
      0 0 50px rgba(216,89,60,0.3);
  }
  50%{
    text-shadow:
      0 0 16px rgba(181,67,46,0.9),
      0 0 40px rgba(181,67,46,0.6),
      0 0 80px rgba(216,89,60,0.45);
  }
}

.hero-pirak-sub{
  position: relative;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- 6. ESPACE ---------- */

.breathing-space{
  height: clamp(1.2rem, 3vw, 2.5rem);
  background: var(--bg);
}

/* ---------- 7. SECTION 2 : PRESENTATION + DISTRIBUTION + MEDIA ---------- */

.presentation{
  background: var(--bg);
  padding: 2rem 6vw 7rem;
}

.presentation-inner{
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.15fr);
  grid-template-areas:
    "intro media"
    "distribution media";
  gap: 5vw;
  align-items: start;
}

.presentation-intro{
  grid-area: intro;
  padding-top: 4vw;
  min-width: 0;
}

.presentation-distribution{
  grid-area: distribution;
  min-width: 0;
}

.eyebrow{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--or-terni);
  text-shadow: 0 0 18px rgba(201,162,39,0.35);
  margin: 0 0 1.4rem;
}

.presentation-intro > p:not(.eyebrow):not(.distribution-intro){
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 1.35vw, 1.5rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: 46ch;
}

.media-column{
  position: sticky;
  top: 8vh;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
  min-width: 0;
  grid-area: media;
}

.video-frame{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--deep);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-frame video,
.video-frame iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.video-placeholder{
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Diaporama : une photo à la fois, défilement automatique */
.slideshow{
  position: relative;
}

.slideshow-photo{
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--deep);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.slideshow-photo__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) brightness(0.92);
  opacity: 0;
  transition: opacity 1.1s ease;
}

.slideshow-photo__img.is-active{
  opacity: 1;
}

.slideshow-photo::after{
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(227,214,176,0);
  transition: box-shadow 0.4s ease;
  pointer-events: none;
}

.slideshow-photo:hover::after,
.slideshow-photo:focus-visible::after{
  box-shadow: inset 0 0 0 1px rgba(216,89,60,0.55);
}

.slideshow-photo:focus-visible{
  outline: 2px solid var(--rouille-clair);
  outline-offset: 3px;
}

.photo-credit{
  margin: 0.9rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-align: right;
}

.photo-credit a{ color: var(--rouille-clair); }

.photo-credit__lien{
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

.photo-credit__lien:hover,
.photo-credit__lien:focus-visible{
  color: var(--or-terni);
  text-shadow: 0 0 10px rgba(201,162,39,0.7);
}

/* ---------- 8. LIGHTBOX ---------- */

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.96);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.is-open{ display: flex; }

.lightbox-img{
  max-width: min(88vw, 1100px);
  max-height: 84vh;
  object-fit: contain;
  box-shadow: 0 0 80px rgba(181,67,46,0.15);
}

.lightbox-close{
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-body);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.lightbox-close:hover{ opacity: 1; }

.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 1rem 1.2rem;
  opacity: 0.6;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.lightbox-nav:hover{ opacity: 1; color: var(--rouille-clair); }

.lightbox-prev{ left: 0.5rem; }
.lightbox-next{ right: 0.5rem; }

.lightbox-counter{
  position: absolute;
  bottom: 1.8rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- 9. DISTRIBUTION ---------- */

.distribution{
  margin-top: 0;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
  max-width: 46ch;
}

.distribution-intro{
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--or-terni);
  margin: 0 0 2.2rem;
}

.distribution-block{
  margin-bottom: 1.6rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.distribution-block.no-border{
  border-bottom: none;
  padding-bottom: 0;
}

.distribution-role-title{
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--ink);
  margin: 0 0 0.6rem;
  letter-spacing: 0.03em;
}

.distribution-role-title.inline{
  display: inline;
  margin: 0;
}

.distribution-block p,
.distribution-block ul li{
  font-family: var(--font-body);
  color: var(--muted);
  margin: 0;
  padding: 0.25rem 0;
}

.distribution-block ul li span{ color: var(--ink); }

/* ---------- 10. LIENS ---------- */

.links{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.6rem;
  max-width: 46ch;
}

.link-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--line);
  background: var(--deep);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.link-card:hover{
  border-color: var(--rouille-clair);
  background: rgba(181,67,46,0.08);
  transform: translateX(4px);
}

.link-label{
  font-family: var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--ink);
}

.link-arrow{ color: var(--rouille-clair); font-size: 1rem; }
.link-contact .link-arrow{ color: var(--or-terni); }

/* ---------- 11. RESPONSIVE ---------- */

@media (max-width: 900px){
  .presentation-inner{
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "media"
      "distribution";
  }
  .media-column{
    position: static;
    margin-top: 3rem;
  }
  .presentation-distribution{
    margin-top: 3rem;
  }
}

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