@charset "UTF-8";
/* --- NOUVEAU HERO SECTION (Design e-plainte) --- */
.hero-section {
  position: relative;
  overflow: hidden;
  /* Adjust for fixed navbar */
  display: flex;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 2rem;
  min-height: auto;
  background: linear-gradient(180deg, var(--bordeaux-bg-light) 0%, #ffffff 100%);
  background-color: var(--bordeaux-bg-light); /* Fallback */
  margin-top: 0 !important;
}
@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 0.5rem; /* Réduit le haut de la carte */
    padding-bottom: 0.5rem; /* Réduit le bas de la carte */
  }
}

.text-gradient {
  background: var(--bordeaux-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-bordeaux {
  color: var(--bordeaux-primary);
}

.btn-outline-bordeaux {
  color: #ffffff !important;
  border: 2px solid #722f37 !important;
  background-color: #722f37 !important; /* On passe en plein */
  transition: all 0.3s ease;
  text-decoration: none !important;
}
.btn-outline-bordeaux:hover {
  background-color: #5a1f28 !important;
  border-color: #5a1f28 !important;
}

.bordeaux-gradient-btn {
  background: #722f37 !important; /* Uniformisation sur le bordeaux plein */
  color: #ffffff !important;
  border: 2px solid #722f37 !important;
  text-decoration: none !important;
}
.bordeaux-gradient-btn:hover {
  background: #5a1f28 !important;
  border-color: #5a1f28 !important;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
}

.hero-shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(188, 79, 94, 0.1);
  top: -100px;
  left: -200px;
}

.hero-shape-2 {
  width: 600px;
  height: 600px;
  background: rgba(139, 58, 70, 0.05);
  bottom: -100px;
  right: -200px;
}

.hero-visual-wrapper {
  position: relative;
  height: 360px;
  width: 100%;
}
@media (max-width: 991.98px) {
  .hero-visual-wrapper {
    height: 400px;
    margin-top: 3rem;
  }
}

.hero-circle-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background-image: url("../img/justice-hero.png"); /* <-- mets ton chemin */
  background-size: contain; /* garde l’image entière */
  background-position: center; /* bien centrée */
  background-repeat: no-repeat; /* évite la répétition */
  background-color: #ffffff; /* fond propre si image PNG */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  z-index: 1;
}
@media (max-width: 991.98px) {
  .hero-circle-bg {
    width: 280px;
    height: 280px;
  }
}

/* ============================
   BULLES DECORATIVES EXTERNES
   ============================ */
.hero-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0; /* derrière le cercle image */
  filter: blur(2px);
  opacity: 0.7;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), rgba(188, 79, 94, 0.18), rgba(114, 47, 55, 0.12));
  animation: bubbleDrift 14s ease-in-out infinite;
}

/* Très grosse bulle – AU-DESSUS du cercle */
.bubble-xl {
  width: 420px;
  height: 420px;
  top: -160px; /* clairement hors du cercle */
  left: 50%;
  transform: translateX(-50%);
}

/* Grosse bulle secondaire – côté / bas */
.bubble-lg {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: -80px;
  opacity: 0.5;
  animation-duration: 18s;
}

/* Petite bulle tertiaire – profondeur visuelle */
.bubble-sm {
  width: 180px;
  height: 180px;
  top: 45%;
  left: -90px; /* légèrement hors cadre */
  opacity: 0.35;
  filter: blur(3px);
  animation-duration: 22s;
}

/* Animation lente et élégante */
@keyframes bubbleDrift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-12px, -30px);
  }
  100% {
    transform: translate(0, 0);
  }
}
.floating-card {
  position: absolute;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 220px;
}
.floating-card:hover {
  transform: translateY(-5px);
}
.floating-card:hover .card {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.card-secure {
  top: 10%;
  left: 10%;
  animation: float 6s ease-in-out infinite;
}

.card-speed {
  top: 40%;
  right: 0%;
  animation: float 5s ease-in-out infinite 1s;
}

.card-track {
  bottom: 10%;
  left: 20%;
  animation: float 7s ease-in-out infinite 0.5s;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}
/* --- STYLES ÉTAPES INTERACTIVES (Comment ça fonctionne) --- */
.step-interactive-card {
  transition: all 0.3s ease;
  border-radius: 12px;
  padding: 0.5rem;
}
@media (max-width: 767.98px) {
  .step-interactive-card {
    cursor: pointer;
    background: #ffffff;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  .step-interactive-card.active {
    border-color: rgba(114, 47, 55, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
  }
}

.toggle-arrow {
  transition: transform 0.3s ease;
  color: #722f37;
  font-size: 1.2rem;
}

.active .toggle-arrow {
  transform: rotate(180deg);
}

.step-description {
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
@media (max-width: 767.98px) {
  .step-description {
    max-height: 0;
    opacity: 0;
  }
  .step-description.show {
    max-height: 200px;
    opacity: 1;
  }
}
@media (min-width: 768px) {
  .step-description {
    max-height: none !important;
    opacity: 1 !important;
  }
}

/* --- STYLES ORIGINAUX CONSERVÉS --- */
.page-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-top: 1rem;
}
@media (max-width: 767.98px) {
  .page-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-top: 0.5rem;
  }
}

#about {
  margin-top: 3.5rem;
  /* espace après la bordure du hero */
  border-top: none;
  background-color: #ffffff;
}

.page-section h2 {
  margin-bottom: 0.75rem;
}

.page-section .divider {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
}

.card-body {
  padding: 1.25rem;
}
@media (max-width: 767.98px) {
  .card-body {
    padding: 0.75rem;
  }
  .card-body .bi {
    font-size: 2rem !important; /* Réduire taille icônes mobile */
  }
  .card-body h3 {
    font-size: 1rem !important;
    margin-bottom: 0.25rem !important;
  }
}

@media (max-width: 767.98px) {
  #about {
    margin-top: 5rem;
  }
  .display-4 {
    font-size: 2.2rem;
  }
  .lead {
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    color: #444 !important; /* Plus sombre pour lisibilité */
    line-height: 1.4;
  }
  .btn-lg {
    padding: 0.6rem 1.25rem !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    border-radius: 10px;
  }
  .hero-visual-wrapper {
    display: none;
  }
}
/* Palette Ministère de la Justice pour la barre de navigation (si utilisé ici) */
.nav-ministere-wrapper {
  background-color: #ffffff;
  /* card blanc */
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.nav-ministere-wrapper .navbar-brand,
.nav-ministere-wrapper .nav-link {
  color: #8c3b12 !important;
  /* rouge bordeaux du ministère */
  font-weight: 600;
}

.nav-ministere-wrapper .nav-link:hover {
  color: #6a2a0c !important;
}

.nav-ministere-wrapper .active-nav {
  color: #ffffff !important;
  background-color: #8c3b12;
  border-radius: 999px;
  padding-inline: 0.9rem;
  padding-block: 0.15rem;
  margin-inline: 0.15rem;
}
