/* SOLILO FILMS — Accueil V3.2, fidèle à Accueil V1 sans médias inventés */

.home-page .site-header { position: absolute; inset: 0 0 auto; background: transparent; border: 0; backdrop-filter: none; }
.home-page .header-inner { max-width: 1360px; min-height: 148px; align-items: flex-start; padding-top: 34px; }
.home-page .desktop-nav { padding-top: 9px; }

.reveal { opacity: 1; transform: none; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--color-night); }
/* Vidéo showreel en boucle en fond du hero */
.hero-video { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
/* Cover universel : l'iframe garde le ratio 16:9 et déborde/rognée au centre,
   donc jamais de bandes noires, quel que soit l'écran (portrait ou paysage).
   NB : object-fit ne s'applique pas aux iframes → on dimensionne en max(). */
.hero-video iframe {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: max(100%, calc(100vh * 16 / 9));
  height: max(100%, calc(100vw * 9 / 16));
  border: 0;
}
/* Voile pour la lisibilité du titre par-dessus la vidéo */
.hero-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background:
  radial-gradient(ellipse 60% 50% at 50% 45%, rgba(6,21,37,.30), transparent 70%),
  linear-gradient(180deg, rgba(6,21,37,.55), rgba(6,21,37,.25) 40%, rgba(6,21,37,.55)); }
.hero-vortex { z-index: 2; }
.hero-frame { z-index: 3; }
.hero-inner { position: relative; z-index: 4; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .34; pointer-events: none; background-image:
  radial-gradient(1px 1px at 21% 16%, rgba(220,232,239,.42) 50%,transparent 55%),
  radial-gradient(1px 1px at 34% 31%, rgba(220,232,239,.3) 50%,transparent 55%),
  radial-gradient(1px 1px at 78% 14%, rgba(220,232,239,.35) 50%,transparent 55%),
  radial-gradient(1px 1px at 88% 38%, rgba(220,232,239,.28) 50%,transparent 55%); }
/* Voie lactée abstraite : bande diagonale de halos lumineux diffus (dégradés, pas d'image) */
.hero-milkyway { position: absolute; inset: 0; pointer-events: none; opacity: .5; background:
  radial-gradient(38% 22% at 18% 30%, rgba(220,232,239,.10), transparent 70%),
  radial-gradient(30% 18% at 34% 44%, rgba(175,198,214,.08), transparent 70%),
  radial-gradient(42% 24% at 52% 58%, rgba(220,232,239,.09), transparent 70%),
  radial-gradient(34% 20% at 70% 40%, rgba(175,198,214,.07), transparent 70%),
  radial-gradient(40% 22% at 86% 62%, rgba(220,232,239,.08), transparent 70%); filter: blur(1px); }
.hero-horizon { position: absolute; inset: 40% 0 0; overflow: hidden; opacity: .62; }
.hero-horizon::before { content: ""; position: absolute; left: -8%; right: -8%; top: 47%; height: 1px; background: linear-gradient(90deg,transparent,rgba(216,171,118,.25),rgba(243,240,233,.72),rgba(216,171,118,.25),transparent); box-shadow: 0 0 22px rgba(216,171,118,.22); }
.hero-horizon::after { content: ""; position: absolute; left: 50%; top: calc(47% - 70px); width: 1px; height: 140px; background: linear-gradient(transparent,rgba(243,240,233,.75),transparent); box-shadow: 0 0 20px rgba(216,171,118,.52); }
/* Flare anamorphique horizontal (objectif de cinéma) */
.hero-flare { position: absolute; left: 50%; top: 47%; transform: translate(-50%,-50%); width: 46vw; height: 1px; pointer-events: none; opacity: .5;
  background: linear-gradient(90deg, transparent, rgba(220,232,239,.9) 18%, rgba(220,232,239,.15) 30%, transparent 42%, rgba(220,232,239,.5) 50%, transparent 58%, rgba(220,232,239,.15) 70%, rgba(220,232,239,.9) 82%, transparent);
  filter: blur(.4px); box-shadow: 0 0 30px rgba(220,232,239,.35); }
.hero-flare::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 4px rgba(220,232,239,.8); }
/* Vortex / trou noir : anneaux concentriques aux couleurs du logo (ivoire + bleu royal) */
.hero-vortex { position: absolute; inset: 0; pointer-events: none; opacity: .5; background:
  radial-gradient(circle at 50% 50%, transparent 0%, rgba(2,8,15,.9) 30%, transparent 34%),
  radial-gradient(circle at 50% 50%, rgba(65,105,225,.10) 0%, transparent 12%),
  radial-gradient(circle at 50% 50%, rgba(245,235,220,.08) 0%, transparent 8%),
  radial-gradient(circle at 50% 50%, rgba(65,105,225,.14) 0%, transparent 20%),
  radial-gradient(circle at 50% 50%, rgba(245,235,220,.10) 0%, transparent 16%),
  radial-gradient(circle at 50% 50%, rgba(65,105,225,.08) 0%, transparent 26%),
  radial-gradient(circle at 50% 50%, rgba(245,235,220,.06) 0%, transparent 22%),
  radial-gradient(circle at 50% 50%, rgba(65,105,225,.06) 0%, transparent 30%),
  radial-gradient(circle at 50% 50%, rgba(245,235,220,.04) 0%, transparent 28%);
  filter: blur(1px); }
.hero-vortex::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 2px; height: 2px; border-radius: 50%; background: var(--logo-ivory); box-shadow: 0 0 20px 6px rgba(65,105,225,.55), 0 0 40px 12px rgba(245,235,220,.25); }
/* Micro-détails de studio : coordonnées techniques discrètes */
.hero-meta { position: absolute; z-index: 3; left: 50%; top: 2.4rem; transform: translateX(-50%); display: flex; gap: 2.2rem; color: rgba(175,198,214,.5); font-size: .56rem; letter-spacing: .22em; text-transform: uppercase; }
.hero-meta span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--color-gold); margin-right: .6rem; vertical-align: 1px; box-shadow: 0 0 6px rgba(216,171,118,.6); }
.hero-frame { position: absolute; z-index: 3; inset: 1.4rem; border: 1px solid rgba(175,198,214,.22); pointer-events: none; }
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid rgba(216,171,118,.85); }
.hero-frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1320px; display: flex; justify-content: space-between; align-items: center; padding-top: 6rem; }
.hero-copy { margin-left: 18px; max-width: 720px; }
.hero-title { margin-bottom: 2.75rem; color: var(--color-ivory); font: 300 clamp(3.6rem,5.4vw,5.25rem)/.97 var(--font-serif); letter-spacing: -.025em; }
.hero-title span { display: block; }
.hero-title em { font-weight: 300; }
.showreel-link { display: inline-flex; align-items: center; gap: 1rem; min-height: 44px; color: var(--color-gold); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }
.play-ico { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(216,171,118,.72); border-radius: 50%; transition: background var(--dur-comp), color var(--dur-comp); }
.showreel-link:hover .play-ico { background: var(--color-gold); color: var(--color-night); }
.hero-pagination { display: flex; flex-direction: column; align-items: center; gap: 3rem; padding-right: 1.25rem; }
.pagination-dots { display: flex; flex-direction: column; gap: 1.3rem; }
.pagination-dots .dot { width: 9px; height: 9px; border: 1px solid rgba(243,240,233,.76); border-radius: 50%; }
.pagination-dots .active { background: var(--color-ivory); box-shadow: 0 0 8px var(--color-ivory); }
.pagination-nums { display: grid; gap: .7rem; justify-items: center; color: var(--color-ivory); font-size: .72rem; letter-spacing: .14em; }
.pagination-nums i { display: block; width: 22px; height: 1px; background: var(--color-gold); }
.hero-scroll { position: absolute; z-index: 3; left: 50%; bottom: 2.25rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: .75rem; color: var(--color-gold); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; }
.scroll-line { width: 1px; height: 52px; background: linear-gradient(transparent,var(--color-ivory)); }

.identity { position: relative; border-top: 1px solid rgba(216,171,118,.25); padding: 5.25rem 0 4rem; background: #04101c; text-align: center; overflow: hidden; }
.identity::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(45% 40% at 50% 0%, rgba(16,42,67,.5), transparent 70%),
  radial-gradient(30% 30% at 50% 100%, rgba(216,171,118,.05), transparent 70%); }
.identity-inner { position: relative; max-width: 900px; }
.identity-mark { margin: 0 0 1.6rem; padding-left: .42em; color: var(--color-ivory); font: 300 clamp(3.2rem,5.5vw,5.15rem)/1 var(--font-serif); letter-spacing: .42em; text-shadow: 0 0 40px rgba(220,232,239,.18); }
.identity-text { color: rgba(243,240,233,.74); font-size: .94rem; line-height: 1.7; font-weight: 300; }

.featured { position: relative; padding: 1.5rem 0 3.5rem; background: #04101c; overflow: hidden; }
.featured::before { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  radial-gradient(40% 50% at 80% 30%, rgba(16,42,67,.55), transparent 70%),
  radial-gradient(25% 40% at 20% 80%, rgba(216,171,118,.04), transparent 70%); }
.featured-inner { position: relative; display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.75fr); align-items: center; gap: 4rem; }
.featured-copy { padding-left: 1rem; }
.featured-copy .eyebrow { margin-bottom: 1rem; }
.featured-title { margin: 0; color: var(--color-ivory); font: 300 clamp(2.8rem,4vw,4rem)/.98 var(--font-serif); text-shadow: 0 0 30px rgba(220,232,239,.12); }
.title-light { display: block; width: 176px; height: 1px; margin: .8rem 0 1.35rem; background: linear-gradient(90deg,transparent,var(--color-gold),transparent); box-shadow: 0 0 8px rgba(216,171,118,.4); }
.featured-desc { margin-bottom: 1.1rem; color: rgba(243,240,233,.72); font-size: .83rem; line-height: 1.7; font-weight: 300; }
.featured-visual {
  position: relative;
  aspect-ratio: auto;
  min-height: 0;
  padding: 10px;
  overflow: hidden;
  background-color: #02080e;
  background-size: cover !important;
  background-position: center;
  border: 1px solid rgba(216,171,118,.32);
  box-shadow: 0 0 40px rgba(6,21,37,.6), inset 0 0 30px rgba(6,21,37,.5);
}
.featured-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, rgba(16,42,67,.25), transparent 70%); pointer-events: none; }
.featured-media {
  position: relative !important;
  inset: auto !important;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  z-index: 2;
  container-type: size;
  background-size: cover !important;
  background-position: center;
}
.featured-media iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc(100cqh * 16 / 9));
  height: max(100%, calc(100cqw * 9 / 16));
  transform: translate(-50%, -50%);
  border: 0;
}
.featured-visual::after { content: ""; position: absolute; right: -1px; top: 0; bottom: 0; width: 1px; background: linear-gradient(transparent,var(--color-gold),transparent); box-shadow: 0 0 12px rgba(216,171,118,.55); }
/* Cadre fin + coins dorés sur le visuel vedette (cohérent hero) */
.featured-visual .frame { position: absolute; z-index: 5; inset: 10px; border: 1px solid rgba(216,171,118,.52); pointer-events: none; }
.featured-visual .frame::before, .featured-visual .frame::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid rgba(216,171,118,.6); }
.featured-visual .frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.featured-visual .frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.featured-visual .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border: 1px solid rgba(243,240,233,.5); border-radius: 50%; display: grid; place-items: center; color: var(--color-ivory); background: rgba(6,21,37,.35); backdrop-filter: blur(2px); transition: background var(--dur-comp) var(--ease-out), border-color var(--dur-comp) var(--ease-out), box-shadow var(--dur-comp) var(--ease-out); }
.featured-visual .play:hover { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-night); box-shadow: 0 0 30px rgba(216,171,118,.5); }

.universes { position: relative; padding: 1.25rem 0 2rem; background: #04101c; overflow: hidden; }
.universes::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 40% at 50% 0%, rgba(16,42,67,.4), transparent 70%); }
.universes .eyebrow, .inprogress .eyebrow { margin-bottom: 1rem; }
.universes-grid { position: relative; display: grid; grid-template-columns: repeat(4,1fr); }
.universe { min-height: 100px; position: relative; display: grid; place-items: center; padding: 1rem 1.5rem; border-right: 1px solid rgba(175,198,214,.09); text-align: center; color: var(--color-ivory); font: 300 clamp(1.55rem,2vw,2rem)/.95 var(--font-serif); transition: color var(--dur-comp) var(--ease-out), text-shadow var(--dur-comp) var(--ease-out); }
.universe:last-child { border-right: 0; }
.universe i { position: absolute; bottom: 10px; width: 76px; height: 1px; background: linear-gradient(90deg,transparent,rgba(216,171,118,.7),transparent); }
.universe i::after { content: ""; position: absolute; left: 50%; top: -1px; width: 3px; height: 3px; border-radius: 50%; background: var(--color-ivory); box-shadow: 0 0 7px var(--color-gold); }
.universe:hover { color: var(--color-gold); text-shadow: 0 0 20px rgba(216,171,118,.3); }

.inprogress { position: relative; padding: 1.4rem 0 3.5rem; border-top: 1px solid rgba(175,198,214,.08); background: #04101c; overflow: hidden; }
.inprogress::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 40% at 20% 20%, rgba(16,42,67,.5), transparent 70%); }
.projects-grid { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)) minmax(130px,.42fr); align-items: center; gap: 2.25rem; }
.project-card { min-width: 0; }
.project-thumb { aspect-ratio: 2.5/1; min-height: 118px; background: #02080e; border: 1px solid rgba(216,171,118,.28); box-shadow: 0 0 30px rgba(6,21,37,.5), inset 0 0 20px rgba(6,21,37,.4); position: relative; }
.project-thumb::before, .project-thumb::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid rgba(216,171,118,.55); }
.project-thumb::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.project-thumb::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.project-card h3 { margin: .65rem 0 .08rem; color: var(--color-ivory); font: 300 1.35rem/1.1 var(--font-serif); }
.project-cat, .status { margin: 0; font-size: .57rem; line-height: 1.75; letter-spacing: .13em; text-transform: uppercase; }
.project-cat { color: rgba(243,240,233,.65); }
.status { color: var(--color-mist); }
.inprogress-cta { align-self: end; padding-bottom: .5rem; }

/* ---------- Section confiance (logos clients, défilement étoiles filantes) ---------- */
.trust { padding: var(--space-6) 0; position: relative; overflow: hidden; }
.trust-sub { max-width: 52ch; margin-bottom: var(--space-4); }
.trust .container { position: relative; z-index: 2; }
.trust-track {
  position: relative;
  margin-block: var(--space-5);
  margin-inline: auto;
  max-width: 56rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.trust-track__inner {
  display: flex;
  align-items: center;
  width: max-content;
  will-change: transform;
  animation: trust-shoot 22s linear infinite;
}
/* défilement continu en boucle sans à-coup (contenu doublé → translation -50%)
   Attention : on utilise margin-right sur chaque logo (et pas un gap) pour que
   le nombre d'espacements soit égal au nombre de logos. Avec `gap` sur une suite
   de 14 logos il n'y a que 13 gaps → `-50%` = 7 logos + 6,5 gaps (dérive d'un
   demi-gap à chaque boucle ⇒ saut périodique). Avec margin-right on a 14 marges
   = 7 spacements par demi-séquence ⇒ boucle parfaitement continue. */
@keyframes trust-shoot {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* un logo qui apparaît en étoile filante : s'illumine au passage puis repart.
   Tous les logos sont unifiés en IVOIRE (#F3F0E9) pour cohérence avec le site :
   grayscale + une pointe de sepia donne un blanc chaud ivoire, jamais les
   couleurs d'origine de la marque, même au moment de l'illumination. */
.trust-logo {
  position: relative;
  height: 2.1rem;
  max-width: 11rem;
  width: auto;
  margin-right: 3rem;
  object-fit: contain;
  filter: grayscale(1) sepia(0.30) saturate(1.4) brightness(1.15) contrast(1.0) opacity(0.55);
  transform: scale(0.92);
  transition: filter 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
/* chaque logo s'illumine à son tour pendant le défilement (délais décalés) */
.trust-logo:nth-child(1)  { animation: trust-reveal 22s linear infinite; }
.trust-logo:nth-child(2)  { animation: trust-reveal 22s linear -1.375s infinite; }
.trust-logo:nth-child(3)  { animation: trust-reveal 22s linear -2.75s infinite; }
.trust-logo:nth-child(4)  { animation: trust-reveal 22s linear -4.125s infinite; }
.trust-logo:nth-child(5)  { animation: trust-reveal 22s linear -5.5s infinite; }
.trust-logo:nth-child(6)  { animation: trust-reveal 22s linear -6.875s infinite; }
.trust-logo:nth-child(7)  { animation: trust-reveal 22s linear -8.25s infinite; }
.trust-logo:nth-child(8)  { animation: trust-reveal 22s linear -9.625s infinite; }
.trust-logo:nth-child(9)  { animation: trust-reveal 22s linear -11s infinite; }
.trust-logo:nth-child(10) { animation: trust-reveal 22s linear -12.375s infinite; }
.trust-logo:nth-child(11) { animation: trust-reveal 22s linear -13.75s infinite; }
.trust-logo:nth-child(12) { animation: trust-reveal 22s linear -15.125s infinite; }
.trust-logo:nth-child(13) { animation: trust-reveal 22s linear -16.5s infinite; }
.trust-logo:nth-child(14) { animation: trust-reveal 22s linear -17.875s infinite; }
.trust-logo:nth-child(15) { animation: trust-reveal 22s linear -19.25s infinite; }
.trust-logo:nth-child(16) { animation: trust-reveal 22s linear -20.625s infinite; }
@keyframes trust-reveal {
  0%, 12%   { filter: grayscale(1) sepia(0.30) saturate(1.4) brightness(1.15) contrast(1.0) opacity(0.45) drop-shadow(0 0 1px transparent); transform: scale(0.94); }
  22%, 34%  { filter: grayscale(0) sepia(0.35) saturate(1.6) brightness(1.45) contrast(1.02) opacity(0.95) drop-shadow(0 0 3px rgba(220,232,239,0.5)); transform: scale(1); }
  46%, 100% { filter: grayscale(1) sepia(0.30) saturate(1.4) brightness(1.15) contrast(1.0) opacity(0.45) drop-shadow(0 0 1px transparent); transform: scale(0.94); }
}

/* remplacement texte quand pas encore de logo image (Vargas en attente) */
.trust-logo--name {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-mist);
  white-space: nowrap;
  line-height: 1;
}
.trust-logo--name.trust-logo {
  height: auto;
  display: inline-flex;
  align-items: center;
}
.trust-note { text-align: center; font-size: 0.78rem; margin-top: var(--space-2); }

/* pause au survol */
.trust:hover .trust-track__inner { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .trust-track__inner { animation: none; }
  .trust-logo { animation: none; filter: grayscale(1) sepia(0.30) saturate(1.4) brightness(1.15) contrast(1.0) opacity(0.7); }
  .trust-track { overflow-x: auto; }
}


@media (max-width: 1023px) {
  .home-page .header-inner { min-height: 96px; padding-top: 22px; align-items: flex-start; }
  .home-page .brand { align-items: flex-start; }
  .hero-copy { margin-left: 0; }
  .hero-title { font-size: clamp(3rem,8vw,4.5rem); }
  .featured-inner { gap: 2rem; }
  .projects-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.25rem; }
  .inprogress-cta { grid-column: 1/-1; justify-self: end; }
}

@media (max-width: 640px) {
  .hero { min-height: 100svh; }
  .hero::before { opacity: .25; }
  .hero-horizon { inset-block-start: 42%; }
  .hero-inner { align-items: flex-start; padding-top: 6.5rem; }
  .hero-copy { width: 100%; }
  .hero-title { margin-bottom: 2rem; font-size: clamp(2.8rem,14.5vw,3.45rem); line-height: .98; }
  .hero-title span { display: inline; }
  .hero-title span:first-child::after { content: " "; }
  .hero-pagination { display: none; }
  .hero-meta { display: none; }
  .hero-frame { inset: .9rem; }
  .hero-scroll { bottom: 1.5rem; }
  .identity { padding: 4rem 0 3.5rem; }
  .identity-mark { font-size: 2.7rem; letter-spacing: .3em; padding-left: .3em; }
  .identity-text { font-size: .88rem; }
  .featured { padding: 1rem 0 3.5rem; }
  .featured-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .featured-copy { padding-left: 0; }
  .featured-title { font-size: 3rem; }
  .featured-visual {
    width: min(100%, 24rem);
    justify-self: center;
    aspect-ratio: auto;
    min-height: 0;
  }
  .featured-media { aspect-ratio: 9/16; }
  .universes { padding-bottom: 2.75rem; }
  .universes-grid { grid-template-columns: 1fr; }
  .universe { min-height: 92px; border-right: 0; border-bottom: 1px solid rgba(175,198,214,.08); font-size: 1.8rem; }
  .projects-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-thumb { min-height: 172px; aspect-ratio: 1.65/1; }
  .inprogress-cta { grid-column: auto; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .showreel-link *, .universe, .encounter-link span { transition: none; }
}
