/* ==========================================================================
   ANIMATIONS MASCOTTE & EFFETS IMMERSIFS - Page Notre Entreprise
   ========================================================================== */

/* --------------------------------------------------------------------------
   Animations de la mascotte
   -------------------------------------------------------------------------- */

/* Animation flottante pour la mascotte dans le Hero */
@keyframes mascot-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(2deg);
  }
  50% {
    transform: translateY(-25px) rotate(0deg);
  }
  75% {
    transform: translateY(-15px) rotate(-2deg);
  }
}

.mascot-float {
  animation: mascot-float 4s ease-in-out infinite;
  filter: drop-shadow(0 10px 30px rgba(74, 160, 222, 0.3));
  transition: transform 0.3s ease;
}

.mascot-float:hover {
  animation-play-state: paused;
  transform: scale(1.1) rotate(5deg);
}

/* Animation bounce pour la mascotte dans la section Identité */
@keyframes mascot-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

.mascot-bounce {
  animation: mascot-bounce 3s ease-in-out infinite;
  filter: drop-shadow(0 15px 40px rgba(74, 160, 222, 0.4));
  transition: all 0.4s ease;
}

.mascot-bounce:hover {
  animation-play-state: paused;
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 20px 50px rgba(74, 160, 222, 0.6));
}

/* Animation pulse pour le logo */
@keyframes logo-pulse {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(74, 160, 222, 0));
  }
  50% {
    transform: scale(1.03) rotate(1deg);
    filter: drop-shadow(0 0 40px rgba(74, 160, 222, 0.4));
  }
}

.logo-pulse {
  animation: logo-pulse 4s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-pulse:hover {
  animation-play-state: paused;
  transform: scale(1.15) rotate(-5deg);
  filter: drop-shadow(0 0 50px rgba(74, 160, 222, 0.6));
}

/* --------------------------------------------------------------------------
   Styles pour le Hero avec mascotte
   -------------------------------------------------------------------------- */

.company-hero {
  position: relative;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

.company-hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.company-hero__content {
  max-width: 700px;
}

.company-hero__title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.2;
  margin-bottom: 24px;
}

.company-hero__subtitle {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-gray-600);
  max-width: 600px;
}

.company-hero__mascot {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-hero__mascot img {
  width: 100%;
  height: auto;
  max-width: 280px;
}

.company-hero__band {
  margin-top: 60px;
}

.company-hero__band img {
  width: 100%;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Section Identité enrichie
   -------------------------------------------------------------------------- */

.company-identity {
  padding: 100px 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.company-identity__header {
  text-align: center;
  margin-bottom: 60px;
}

.company-identity__intro {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  max-width: 800px;
  margin: 20px auto 0;
  line-height: 1.7;
}

.company-identity__showcase {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Mascotte container */
.company-identity__mascot-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 40px;
  background: linear-gradient(135deg, rgba(74, 160, 222, 0.08) 0%, rgba(255, 255, 255, 0.5) 100%);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  animation: container-pulse 5s ease-in-out infinite;
}

@keyframes container-pulse {
  0%, 100% {
    background: linear-gradient(135deg, rgba(74, 160, 222, 0.08) 0%, rgba(255, 255, 255, 0.5) 100%);
  }
  50% {
    background: linear-gradient(135deg, rgba(74, 160, 222, 0.12) 0%, rgba(255, 255, 255, 0.7) 100%);
  }
}

.company-identity__mascot-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 160, 222, 0.1) 0%, transparent 70%);
  animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.company-identity__mascot {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}

.company-identity__mascot-label {
  flex: 1;
  max-width: 500px;
}

.company-identity__mascot-label h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.company-identity__mascot-label p {
  font-size: 1.125rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* Logo section avec animations techniques */
.company-identity__logo-section {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.company-identity__stage {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
}

/* --------------------------------------------------------------------------
   Logo Stage - Centre de gravité visuel
   -------------------------------------------------------------------------- */

.logo-stage {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Halo technique vivant */
.logo-stage__halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(74, 160, 222, 0.08) 0%, rgba(40, 93, 166, 0.04) 50%, transparent 70%);
  border-radius: 50%;
  animation: halo-pulse 4s ease-in-out infinite;
}

@keyframes halo-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

/* Lignes circulantes - orbites techniques */
.logo-stage__lines {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(74, 160, 222, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-line--1 {
  width: 320px;
  height: 320px;
  animation: orbit-rotate 20s linear infinite;
}

.orbit-line--2 {
  width: 380px;
  height: 380px;
  animation: orbit-rotate 30s linear infinite reverse;
}

.orbit-line--3 {
  width: 440px;
  height: 440px;
  animation: orbit-rotate 40s linear infinite;
}

@keyframes orbit-rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Ondes fines qui se propagent */
.logo-stage__waves {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.wave {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(40, 93, 166, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: wave-expand 3s ease-out infinite;
}

.wave--1 {
  animation-delay: 0s;
}

.wave--2 {
  animation-delay: 1s;
}

.wave--3 {
  animation-delay: 2s;
}

@keyframes wave-expand {
  0% {
    width: 200px;
    height: 200px;
    opacity: 0;
  }
  20% {
    opacity: 0.4;
  }
  100% {
    width: 480px;
    height: 480px;
    opacity: 0;
  }
}

/* Lumière douce qui traverse */
.logo-stage__light {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(74, 160, 222, 0.05) 50%, transparent 70%);
  animation: light-sweep 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes light-sweep {
  0%, 100% {
    transform: translateX(-100%) translateY(-100%);
  }
  50% {
    transform: translateX(100%) translateY(100%);
  }
}

/* Logo central - stable */
.logo-stage__center {
  position: relative;
  z-index: 10;
  background: white;
  padding: 60px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.logo-stage__image {
  width: 280px;
  height: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   Contenu textuel - Arrive proprement
   -------------------------------------------------------------------------- */

.identity-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  width: 100%;
  max-width: 1100px;
}

.identity-content__item {
  background: white;
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(30px);
  animation: text-appear 0.8s ease-out forwards;
  transition: all 0.3s ease;
}

@keyframes text-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.identity-content__item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(74, 160, 222, 0.15);
}

.identity-content__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #285da6;
  margin-bottom: 16px;
  line-height: 1.3;
}

.identity-content__text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-gray-600);
}

/* Palette de couleurs */
.company-identity__colors {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.company-identity__colors::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #285da6 0%, #FFFFFF 50%, #4aa0de 100%);
  animation: color-wave 3s ease-in-out infinite;
}

@keyframes color-wave {
  0%, 100% {
    opacity: 0.5;
    transform: scaleX(1);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.1);
  }
}

.company-identity__colors h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 40px;
}

.company-identity__palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.color-swatch {
  padding: 60px 30px 30px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  animation: color-float 4s ease-in-out infinite;
}

@keyframes color-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.color-swatch:nth-child(1) {
  animation-delay: 0s;
}

.color-swatch:nth-child(2) {
  animation-delay: 0.3s;
}

.color-swatch:nth-child(3) {
  animation-delay: 0.6s;
}

.color-swatch:hover {
  transform: translateY(-15px) scale(1.1) rotate(-3deg);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation-play-state: paused;
  z-index: 10;
}

.color-swatch:hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

.color-swatch::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: inherit;
  opacity: 1;
}

.color-name,
.color-meaning {
  display: block;
  position: relative;
  z-index: 1;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.color-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.color-meaning {
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .company-hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .company-hero__mascot {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }

  .company-identity__stage {
    gap: 60px;
  }

  .logo-stage {
    width: 400px;
    height: 400px;
  }

  .logo-stage__center {
    padding: 50px;
  }

  .logo-stage__image {
    width: 220px;
  }

  .identity-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .company-identity__palette {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .company-hero {
    padding: 100px 0 60px;
  }

  .company-hero__title {
    font-size: 2rem;
  }

  .company-hero__subtitle {
    font-size: 1rem;
  }

  .company-hero__mascot {
    width: 150px;
    height: 150px;
  }

  .company-identity {
    padding: 60px 0;
  }

  .company-identity__mascot-container {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .company-identity__mascot {
    width: 150px;
  }

  .logo-stage {
    width: 320px;
    height: 320px;
  }

  .logo-stage__center {
    padding: 40px;
  }

  .logo-stage__image {
    width: 180px;
  }

  .orbit-line--1 {
    width: 240px;
    height: 240px;
  }

  .orbit-line--2 {
    width: 280px;
    height: 280px;
  }

  .orbit-line--3 {
    width: 320px;
    height: 320px;
  }

  .identity-content__item {
    padding: 30px 24px;
  }

  .identity-content__title {
    font-size: 1.125rem;
  }

  .identity-content__text {
    font-size: 0.9rem;
  }

  .company-identity__colors {
    padding: 40px 20px;
  }

  .color-swatch {
    padding: 50px 20px 20px;
  }
}
