/* ==========================================================
   SYGNE — Cirkul'R — feuille de style
   Palette : noir profond + reflets iridescents de bulles
   Typo : Cormorant Garamond (display) / Jost (texte)
   ========================================================== */

:root{
  --bg: #000000;
  --deep-violet: #0d0a17;
  --ink: #f4f2fa;
  --muted: #b7b0c4;
  --iris-cyan: #9fe8ff;
  --iris-lilac: #d9aaff;
  --iris-pink: #ffc9e8;
  --gold: #e8c477;
  --line: rgba(244, 242, 250, 0.14);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a{ color: inherit; text-decoration: none; }

ul{ list-style: none; margin: 0; padding: 0; }

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

/* ---------- SECTION 1 : HERO ---------- */

.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 2vh;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg{
  position: absolute;
  inset: 0;
  background-image: url('bulles2.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-veil{
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 75%, rgba(0,0,0,0.9) 100%);
}

.hero-title{
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.02em;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.5rem, 15vw, 10rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
}

.hero-title span{
  display: inline-block;
  animation: flicker-glow 5s ease-in-out infinite;
  text-shadow:
    0 0 10px rgba(244,242,250,0.9),
    0 0 30px rgba(159,232,255,0.75),
    0 0 60px rgba(217,170,255,0.55),
    0 0 110px rgba(255,201,232,0.35);
}

.hero-title span:nth-child(1){ animation-delay: 0s; }
.hero-title span:nth-child(2){ animation-delay: 0.35s; }
.hero-title span:nth-child(3){ animation-delay: 0.7s; }
.hero-title span:nth-child(4){ animation-delay: 1.05s; }
.hero-title span:nth-child(5){ animation-delay: 1.4s; }

@keyframes flicker-glow{
  0%, 100%{
    text-shadow:
      0 0 10px rgba(244,242,250,0.85),
      0 0 28px rgba(159,232,255,0.65),
      0 0 55px rgba(217,170,255,0.45),
      0 0 100px rgba(255,201,232,0.3);
  }
  50%{
    text-shadow:
      0 0 16px rgba(244,242,250,1),
      0 0 42px rgba(159,232,255,0.9),
      0 0 80px rgba(217,170,255,0.7),
      0 0 140px rgba(255,201,232,0.5);
  }
}

.hero-sub{
  position: relative;
  z-index: 2;
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
}

.scroll-cue{
  position: absolute;
  bottom: 2.5rem;
  z-index: 2;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--iris-cyan) 40%, transparent);
  overflow: hidden;
}

.scroll-cue span{
  position: absolute;
  top: -60px;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--ink), transparent);
  animation: cue-fall 2.6s ease-in-out infinite;
}

@keyframes cue-fall{
  0%{ top: -60px; }
  100%{ top: 100%; }
}

/* ---------- ESPACE ---------- */

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

/* ---------- SECTION 2 : PRESENTATION ---------- */

.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);
  gap: 5vw;
  align-items: start;
}

.presentation-text{
  padding-top: 4vw;
}

.eyebrow{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 1.5rem;
  font-weight: 600;
  color: #2B8ED6;
  text-shadow:
    0 0 8px rgba(43, 142, 214, 0.9),
    0 0 20px rgba(43, 142, 214, 0.6),
    0 0 40px rgba(43, 142, 214, 0.4);
  margin: 0 0 1.4rem;
}

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

/* Colonne de droite : vidéo + diaporama */
.media-column{
  position: sticky;
  top: 8vh;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

/* Espace vidéo (YouTube ou autre) */
.video-frame{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  background: var(--deep-violet);
  overflow: hidden;
}

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

.video-placeholder{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--muted);
  background:
    repeating-linear-gradient(135deg, rgba(159,232,255,0.03) 0 2px, transparent 2px 14px);
}

/* Rendre la vidéo responsive et remplir son conteneur */
.video-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;   /* Forcer le ratio 16:9 */
  overflow: hidden;
  background: #000;       /* fond noir si vidéo plus petite */
}

.video-frame video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;     /* ou contain selon le rendu souhaité */
}

/* 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-violet);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.slideshow-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) brightness(0.94);
  transition: opacity 0.6s ease;
}

.slideshow-photo::after{
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(244,242,250,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(159,232,255,0.55);
}

.slideshow-photo:focus-visible{
  outline: 2px solid var(--iris-cyan);
  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(--iris-cyan);
}

.photo-credit a:hover{
  text-decoration: underline;
}

/* ---------- 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(159,232,255,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(--iris-cyan); }

.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;
}

/* ---------- DISTRIBUTION (sous le texte de présentation) ---------- */

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

.distribution-intro{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--iris-lilac);
  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-block:last-child{
  border-bottom: none;
}

.distribution-role-title{
  font-family: var(--font-display);
  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{
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--muted);
  margin: 0;
}

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

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

.links{
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-content: start;
  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-violet);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
}

.link-card:hover{
  border-color: var(--iris-cyan);
  background: rgba(159,232,255,0.06);
  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(--iris-cyan);
  font-size: 1rem;
}

.link-contact .link-arrow{ color: var(--gold); }

/* ---------- PIED DE PAGE ---------- */

.site-footer{
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 2.6rem 6vw 3rem;
  text-align: center;
}

.site-footer p{
  margin: 0.25rem 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.site-footer a:hover{
  color: var(--iris-cyan);
}

/* ---------- RESPONSIVE ---------- */

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

@media (max-width: 560px){
  .hero-title{
    letter-spacing: 0.04em;
  }
  .lightbox-nav{
    font-size: 1.1rem;
    padding: 0.7rem;
  }
}
