*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #311532;
  color: white;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

/* ===== NAVIGATION FIXE ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(49, 21, 50, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 168, 168, 0.2);
  padding: 0 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.main-nav.hidden {
  transform: translateY(-100%);
}

.main-nav.scrolled {
  background: rgba(26, 13, 28, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo img {
  height: 45px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: white;
  background: rgba(0, 168, 168, 0.15);
}

.nav-links a.active {
  color: #00A8A8;
  background: rgba(0, 168, 168, 0.1);
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, #00A8A8, #00d4d4);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  margin-left: 10px;
}

.nav-links .nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 168, 168, 0.3);
  background: linear-gradient(135deg, #00A8A8, #00d4d4);
}

/* Menu hamburger mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== FIL D'ARIANE ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: #00A8A8;
}

.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.3);
}

.breadcrumb .current {
  color: #00A8A8;
}

/* ===== LIENS CROISÉS ===== */
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00A8A8;
  text-decoration: none;
  font-weight: 500;
  margin-top: 20px;
  padding: 12px 24px;
  border: 1px solid rgba(0, 168, 168, 0.3);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.section-link:hover {
  background: rgba(0, 168, 168, 0.1);
  border-color: #00A8A8;
  transform: translateX(5px);
}

.section-link svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s;
}

.section-link:hover svg {
  transform: translateX(5px);
}

/* ===== RESPONSIVE NAVIGATION ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(26, 13, 28, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 5px;
    transform: translateY(-150%);
    opacity: 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 168, 168, 0.2);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 15px;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 10px;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: 70px;
  background: radial-gradient(circle at top, #4a2350, #311532);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.scene {
  position: relative;
  flex: 1;
  min-height: 600px;
}

/* Étoile centrale (Soleil) */
.core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff, #00A8A8);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 100px rgba(0,168,168,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  text-align: center;
  color: #311532;
  z-index: 10;
}

.core-logo {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

/* Orbite */
.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spin 60s linear infinite;
}

/* Étoiles / Filiales */
.star {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  text-decoration: none;
  animation: counter-spin 60s linear infinite;
}

.star:hover {
  transform: scale(1.2);
  box-shadow: 0 0 50px currentColor;
}

.star:focus {
  outline: 3px solid white;
  outline-offset: 4px;
}

/* Logo dans étoile */
.star-logo {
  width: 85%;
  height: 85%;
  object-fit: contain;
  border-radius: 50%;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.3));
}

/* Couleurs étoiles - Harmonie avec palette principale */
.evos { background: radial-gradient(circle, #9b6b9e, #5c3d5e); color: #ffffff; }
.anim { background: radial-gradient(circle, #5c3d5e, #311532); color: #ffffff; }
.media { background: radial-gradient(circle, #4a2350, #2a1230); color: #ffffff; }
.evency { background: radial-gradient(circle, #7a4b7d, #4a2350); color: #ffffff; }

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

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  animation: bounce 2s infinite;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.scroll-indicator span {
  display: block;
  font-size: 1.5rem;
  margin-top: 5px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== SECTION PRÉSENTATION ===== */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section filiales avec background image */
.filiales-section {
  max-width: 100%;
  background: linear-gradient(rgba(49, 21, 50, 0.85), rgba(49, 21, 50, 0.9)), url('../images/corporate rendez vous.jpg') center 20%/cover no-repeat;
  padding: 80px 20px;
}

.filiales-section .section-content {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #00A8A8, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* Grille des filiales */
.filiales-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.filiale-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: white;
  display: block;
}

.filiale-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,0.3);
}

.filiale-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.filiale-logo {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.filiale-card.evos .filiale-icon { background: radial-gradient(circle, #9b6b9e, #5c3d5e); }
.filiale-card.anim .filiale-icon { background: radial-gradient(circle, #5c3d5e, #311532); }
.filiale-card.media .filiale-icon { background: radial-gradient(circle, #4a2350, #2a1230); }
.filiale-card.evency .filiale-icon { background: radial-gradient(circle, #7a4b7d, #4a2350); }

.filiale-card h3 {
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.filiale-card p {
  color: rgba(255,255,255,0.6);
  margin: 0;
  font-size: 0.95rem;
}

/* ===== SECTION À PROPOS ===== */
.about-section {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #00A8A8, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.stat {
  text-align: center;
  padding: 30px;
  background: rgba(255,255,255,0.03);
  border-radius: 15px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00A8A8;
}

.stat-label {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* ===== SECTION CONTACT ===== */
.contact-section {
  text-align: center;
}

.contact-section .section-title {
  margin-bottom: 40px;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-item {
  text-align: center;
}

.contact-item span {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.contact-item a {
  color: #00A8A8;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #ffffff;
}

.cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: linear-gradient(135deg, #00A8A8, #00d4d4);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 168, 168, 0.4);
}

/* ===== FOOTER ===== */
footer {
  background: #1a0d1c;
  padding: 40px 20px;
  border-top: 1px solid rgba(0,168,168,0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-weight: 700;
  font-size: 1.2rem;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-copyright {
  width: 100%;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .scene {
    min-height: 550px;
  }

  .core {
    width: 180px;
    height: 180px;
    font-size: 1.2rem;
  }

  .orbit {
    width: 480px;
    height: 480px;
  }

  .star {
    width: 110px;
    height: 110px;
    font-size: 0.8rem;
  }

  /* Repositionner les étoiles pour tablette */
  .star-1 { top: -15px !important; left: 185px !important; }
  .star-2 { top: 185px !important; left: 385px !important; }
  .star-3 { top: 385px !important; left: 185px !important; }
  .star-4 { top: 185px !important; left: -15px !important; }

  .section-title {
    font-size: 1.8rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section {
    padding: 60px 20px;
  }

  .contact-info {
    gap: 30px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .scene {
    min-height: 450px;
  }

  .core {
    width: 140px;
    height: 140px;
    font-size: 1rem;
  }

  .orbit {
    width: 380px;
    height: 380px;
  }

  .star {
    width: 90px;
    height: 90px;
    font-size: 0.7rem;
  }

  /* Repositionner les étoiles pour mobile */
  .star-1 { top: -10px !important; left: 145px !important; }
  .star-2 { top: 145px !important; left: 300px !important; }
  .star-3 { top: 300px !important; left: 145px !important; }
  .star-4 { top: 145px !important; left: -10px !important; }

  .filiales-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Réduire l'animation sur mobile pour les performances */
@media (prefers-reduced-motion: reduce) {
  .orbit, .star {
    animation: none;
  }

  .scroll-indicator {
    animation: none;
  }
}
