/* ==========================================================================
   PILOTEGEST HOME — Stylesheet pour le parcours d'univers interactif
   ========================================================================== */

.pg-hero-choice {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  background-image: 
    linear-gradient(
      90deg,
      rgba(2, 6, 23, .36) 0%,
      rgba(2, 6, 23, .10) 42%,
      rgba(2, 6, 23, .28) 100%
    ),
    url('/assets/img/hero-pilotegest-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pg-hero-choice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 18% 35%, rgba(255, 138, 0, .16), transparent 30%),
    radial-gradient(circle at 82% 45%, rgba(37, 99, 235, .16), transparent 34%);
  pointer-events: none;
  z-index: 1;
}

.pg-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 160px 24px 80px;
  text-align: center;
}

.pg-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  text-shadow: 0 8px 32px rgba(0, 0, 0, .38);
}

.pg-hero-title span {
  color: #24A0FF;
}

.pg-hero-subtitle {
  max-width: 720px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  text-shadow: 0 4px 18px rgba(0, 0, 0, .32);
}

.pg-hero-actions {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pg-hero-choice-btn {
  border: 0;
  min-height: 64px;
  padding: 0 38px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  font-size: 1.05rem;
}

.pg-hero-choice-btn i {
  font-size: 1.2rem;
}

.pg-hero-choice-btn:hover {
  transform: translateY(-3px) scale(1.015);
  filter: brightness(1.08);
}

.pg-choice-accounting {
  background: linear-gradient(135deg, #FF8A00, #ff6b00);
  box-shadow: 0 15px 35px rgba(255, 138, 0, 0.3);
}

.pg-choice-dsi {
  background: linear-gradient(135deg, #004AAD, #2563EB);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
}

/* Bandeau de Confiance */
.pg-trust-strip {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.25rem 2rem;
  margin-top: 5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.pg-trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}

.pg-trust-item i {
  font-size: 1.6rem;
  color: var(--pg-accent);
}

.pg-trust-item:nth-child(2) i {
  color: var(--pg-primary-light);
}

.pg-trust-item h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0;
  color: #ffffff;
}

.pg-trust-item p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

/* ==========================================================================
   MODALES DE CHOIX D'OUTILS
   ========================================================================== */

.pg-tool-choice-modal .modal-content {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
}

.pg-tool-choice-modal .modal-header {
  padding: 28px 32px;
  border-bottom: 1px solid #E1E4EB;
  background-color: #ffffff;
}

.pg-tool-choice-modal .modal-body {
  padding: 32px;
  background: #F5F7FB;
}

.pg-tool-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pg-tool-choice-card {
  background: #ffffff;
  border: 1px solid #E1E4EB;
  border-radius: 22px;
  padding: 24px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.pg-tool-choice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, .1);
  border-color: rgba(37, 99, 235, .35);
}

.pg-tool-free {
  border-color: rgba(37, 99, 235, .32);
  box-shadow: 0 15px 40px rgba(37, 99, 235, 0.08);
}

.pg-tool-locked {
  opacity: .92;
}

.pg-tool-choice-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.pg-tool-choice-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #EAF2FF;
  color: #004AAD;
  font-size: 1.25rem;
}

.pg-tool-choice-card.pg-tool-free .pg-tool-choice-icon {
  background: rgba(37, 99, 235, 0.08);
  color: var(--pg-primary-light);
}

.pg-tool-choice-card.pg-tool-locked .pg-tool-choice-icon {
  background: #f1f3f5;
  color: #495057;
}

.pg-badge-free {
  background: #D1FAE5;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.pg-badge-locked {
  background: #FEF3C7;
  color: #B45309;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.pg-tool-choice-card h3 {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--pg-text-main);
  font-family: 'Outfit', sans-serif;
}

.pg-tool-choice-card p {
  color: #6B7280;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
}

.pg-tool-choice-action {
  margin-top: auto;
  min-height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #004AAD, #2563EB);
  color: #fff !important;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all .2s ease;
  text-decoration: none;
  font-size: 0.9rem;
  cursor: pointer;
}

.pg-tool-choice-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.pg-tool-choice-action-locked {
  background: #111827;
}

.pg-tool-choice-action-locked:hover {
  background: #1f2937;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 991px) {
  .pg-tool-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  
  .pg-hero-content {
    padding-top: 140px;
  }
  
  .pg-trust-strip {
    margin-top: 4rem;
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 575px) {
  .pg-tool-choice-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .pg-hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .pg-hero-choice-btn {
    width: 100%;
    justify-content: center;
  }
  
  .pg-hero-title {
    font-size: 2.25rem;
  }
  
  .pg-hero-content {
    padding: 110px 18px 50px;
  }

  .pg-tool-choice-modal .modal-header {
    padding: 20px 24px;
  }
  
  .pg-tool-choice-modal .modal-body {
    padding: 20px;
  }
}

/* Bandeau / Navbar scrolled de couleur bleu ciel */
.pg-home-page .pg-header.scrolled,
.pg-fec-page .pg-header.scrolled {
  background: rgba(0, 74, 173, 0.90) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Liens navbar au survol quand header scrolled bleu */
.pg-home-page .pg-header.scrolled .nav-link,
.pg-fec-page .pg-header.scrolled .nav-link,
.pg-home-page .pg-header.scrolled .pg-brand-text,
.pg-fec-page .pg-header.scrolled .pg-brand-text {
  color: rgba(255,255,255,0.92) !important;
}
.pg-home-page .pg-header.scrolled .nav-link:hover,
.pg-fec-page .pg-header.scrolled .nav-link:hover {
  color: #ffffff !important;
}
.pg-home-page .pg-header.scrolled .btn-nav-connexion,
.pg-fec-page .pg-header.scrolled .btn-nav-connexion {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}

/* ==========================================================================
   PAGE ANALYSE FEC — HERO IMMERSIF
   ========================================================================== */

.pg-fec-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-image:
    linear-gradient(
      180deg,
      rgba(2, 6, 23, .30) 0%,
      rgba(2, 6, 23, .10) 50%,
      rgba(2, 6, 23, .45) 100%
    ),
    url('/assets/img/hero-pilotegest-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  padding: 120px 24px 80px;
}

.pg-fec-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 40%, rgba(255, 138, 0, .12), transparent 30%),
    radial-gradient(circle at 85% 55%, rgba(37, 99, 235, .14), transparent 32%);
  pointer-events: none;
}

.pg-fec-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.pg-fec-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 24px;
}

.pg-fec-hero-badge i {
  color: #34d399;
  font-size: 1rem;
}

.pg-fec-hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
  text-shadow: 0 6px 28px rgba(0,0,0,.35);
}

.pg-fec-hero-title span {
  color: #60a5fa;
}

.pg-fec-hero-subtitle {
  max-width: 680px;
  margin: 0 auto 48px;
  color: rgba(255,255,255,.88);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  text-shadow: 0 3px 14px rgba(0,0,0,.28);
}

/* Étapes guidage dans le hero */
.pg-fec-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.25rem 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.pg-fec-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 1.25rem;
  text-align: left;
}

.pg-fec-step strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.pg-fec-step span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255,255,255,.65);
  line-height: 1.4;
  max-width: 160px;
}

.pg-fec-step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pg-fec-step-sep {
  color: rgba(255,255,255,.3);
  font-size: 1.1rem;
  padding: 0 0.5rem;
}

/* ==========================================================================
   PAGE ANALYSE FEC — BARRE RÉSULTATS (après analyse)
   ========================================================================== */

.pg-fec-results-bar {
  background-image:
    linear-gradient(135deg, rgba(0, 40, 130, .92) 0%, rgba(10, 60, 160, .88) 100%),
    url('/assets/img/hero-pilotegest-bg.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.pg-fec-results-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}

.pg-fec-results-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,.72);
  margin: 0;
}

.pg-fec-new-btn {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: all .22s cubic-bezier(0.4,0,0.2,1);
}

.pg-fec-new-btn:hover {
  background: rgba(255,255,255,.22);
  color: #fff;
  transform: translateY(-1px);
}

/* Responsive FEC hero */
@media (max-width: 767px) {
  .pg-fec-hero {
    padding: 100px 18px 60px;
  }
  .pg-fec-steps {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .pg-fec-step-sep {
    display: none;
  }
  .pg-fec-step span {
    max-width: none;
  }
}
