/* 
 * IsCinema Minimalist Logo - Cinema Rectangle Effect
 * Le C se transforme en rectangle avec play button au survol
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --cinema-black: #010204;
  --pure-white: #ffffff;
  --deep-grey: #1a1a1a;
  --subtle-grey: #b0b8c4;
}

/* === LOGO PUR — CINEMA RECTANGLE EFFECT === */
.iscinema-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  user-select: none;
  position: relative;
  width: 180px; /* Largeur fixe pour éviter le re-trigger */
  height: 48px;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  background: transparent;
  border: none;
  padding: 8px;
  margin: -8px;
  transform: translateZ(0);
}

/* État normal : C + texte */
.cinema-c {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 32px;
  color: var(--pure-white);
  position: relative;
  letter-spacing: -2px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Transition plus lente */
  z-index: 2;
  will-change: auto; /* Évite les transitions non nécessaires */
}

.cinema-c::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 3px 5px 3px 0;
  border-color: transparent var(--subtle-grey) transparent transparent;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--subtle-grey);
  letter-spacing: -0.5px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Transition plus lente */
  will-change: auto;
}

/* === ÉTAT HOVER : RECTANGLE + PLAY === */
.iscinema-logo:hover {
  gap: 0;
  padding: 8px;
  transform: translateY(-2px);
}

.iscinema-logo:hover .cinema-c {
  width: 60px;
  height: 40px;
  background: var(--pure-white);
  color: transparent;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
  letter-spacing: 0;
  flex-shrink: 0; /* Empêche le rétrécissement */
}

.iscinema-logo:hover .cinema-c::after {
  width: 0;
  height: 0;
  border: none;
  background: transparent;
}

/* Play button noir & blanc */
.iscinema-logo:hover .cinema-c::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--cinema-black);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.iscinema-logo:hover .logo-text {
  width: 0;
  opacity: 0;
  font-size: 0;
  letter-spacing: 0;
  overflow: hidden; /* Cache le texte pendant la transition */
  white-space: nowrap; /* Empêche le retour à la ligne */
}

/* === EFFET SUBTIL === */
.iscinema-logo::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 8px; /* Aligné avec le padding */
  width: calc(100% - 16px); /* Prend toute la largeur - padding */
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pure-white), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.iscinema-logo:hover::after {
  transform: scaleX(1);
  width: 60px; /* Même largeur que le rectangle au survol */
  left: 8px; /* Reste aligné */
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .cinema-c {
    font-size: 24px;
  }
  
  .iscinema-logo:hover .cinema-c {
    width: 48px;
    height: 32px;
    border-radius: 4px;
  }
  
  .iscinema-logo:hover .cinema-c::before {
    border-width: 6px 0 6px 10px;
  }
  
  .logo-text {
    font-size: 18px;
  }
}

