/* ============================================================
   PROCURIZY CONSULTING — CSS complémentaire pour la navigation V2
   À ajouter à la fin de procurizyconsulting_V1_3.css
   ou à inclure comme fichier séparé après le CSS principal
   ============================================================ */

/* ---------------------------------------------------------
   1. MEGA-MENU "NOS SOLUTIONS" — dropdown élargi
   --------------------------------------------------------- */

/* Le dropdown Solutions est plus large que les dropdowns standards */
.dropdown-menu-solutions {
  min-width: 480px;
  max-height: 82vh;
  overflow-y: auto;
  padding: 12px 0;
  border: 1px solid rgba(6, 29, 66, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(6, 29, 66, 0.12);
  background-color: #ffffff;
}

/* Scrollbar discrète et élégante (Webkit : Chrome, Edge, Safari) */
.dropdown-menu-solutions::-webkit-scrollbar {
  width: 5px;
}
.dropdown-menu-solutions::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}
.dropdown-menu-solutions::-webkit-scrollbar-thumb {
  background: rgba(192, 209, 148, 0.5);   /* Vert Procurizy semi-transparent */
  border-radius: 4px;
}
.dropdown-menu-solutions::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 209, 148, 0.8);
}

/* Scrollbar discrète (Firefox) */
.dropdown-menu-solutions {
  scrollbar-width: thin;
  scrollbar-color: rgba(192, 209, 148, 0.5) transparent;
}

/* Chaque item du mega-menu */
.dropdown-menu-solutions .dropdown-item {
  padding: 12px 20px;
  white-space: normal;       /* Permet le retour à la ligne */
  line-height: 1.4;
  transition: background-color 0.2s ease;
}

.dropdown-menu-solutions .dropdown-item:hover,
.dropdown-menu-solutions .dropdown-item:focus {
  background-color: rgba(192, 209, 148, 0.15);  /* Vert Procurizy très léger */
  color: #061D42;
}

/* Titre de chaque solution (le besoin client) */
.dropdown-menu-solutions .dropdown-item strong {
  display: block;
  font-family: verdana, arial, sans-serif;
  font-size: 0.88em;
  font-weight: 600;
  color: #061D42;
  margin-bottom: 2px;
}

/* Sous-texte descriptif */
.dropdown-menu-solutions .dropdown-item small,
.dropdown-menu-solutions .dropdown-item .text-muted {
  font-family: Calibri, Arial, sans-serif;
  font-size: 0.78em;
  color: #6b7280 !important;
  line-height: 1.3;
}

/* Séparateurs plus discrets */
.dropdown-menu-solutions .dropdown-divider {
  margin: 4px 16px;
  border-top: 1px solid rgba(6, 29, 66, 0.06);
}


/* ---------------------------------------------------------
   2. BOUTON CTA "PRENDRE RDV"
   --------------------------------------------------------- */

.btn-cta-rdv {
  background-color: #C0D194;                  /* Vert Procurizy */
  color: #061D42 !important;                  /* Bleu marine Procurizy */
  font-family: verdana, arial, sans-serif;
  font-weight: 600;
  font-size: 0.82em;
  padding: 8px 20px;
  border: 2px solid #C0D194;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.btn-cta-rdv:hover {
  background-color: #a8be78;                  /* Vert légèrement plus foncé au survol */
  border-color: #a8be78;
  transform: translateY(-1px);
  color: #061D42 !important;
  text-decoration: none;
}

.btn-cta-rdv:active {
  transform: translateY(0);
}


/* ---------------------------------------------------------
   3. AJUSTEMENTS RESPONSIVE
   --------------------------------------------------------- */

/* ---- Mobile (xs) : max-width 575px ---- */
@media only screen and (max-width: 575px) {

  .dropdown-menu-solutions {
    min-width: 100%;
    max-height: none;           /* Pas de scroll interne en mobile — le menu est inline */
    overflow-y: visible;
    border-radius: 0;
    box-shadow: none;
    border: none;
    border-top: 1px solid rgba(6, 29, 66, 0.08);
  }

  .dropdown-menu-solutions .dropdown-item {
    padding: 10px 16px;
  }

  .dropdown-menu-solutions .dropdown-item strong {
    font-size: 0.85em;
  }

  .dropdown-menu-solutions .dropdown-item small {
    font-size: 0.75em;
  }

  /* Séparateur de section plus compact en mobile */
  .dropdown-menu-solutions .dropdown-section-label {
    padding: 10px 16px 4px 16px;
  }

  /* Pas de barre verte sur les cartes catégorielles en mobile */
  .dropdown-menu-solutions .dropdown-item-category {
    padding-left: 16px;
  }
  .dropdown-menu-solutions .dropdown-item-category::before {
    display: none;
  }

  .btn-cta-rdv {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 8px;
    padding: 12px 20px;
    font-size: 0.9em;
  }
}

/* ---- Tablette (sm/md) : 576px à 991px ---- */
@media only screen and (min-width: 576px) and (max-width: 991px) {

  .dropdown-menu-solutions {
    min-width: 100%;
    max-height: none;
    overflow-y: visible;
    border-radius: 4px;
  }

  /* Pas de barre verte sur les cartes catégorielles en tablette */
  .dropdown-menu-solutions .dropdown-item-category {
    padding-left: 20px;
  }
  .dropdown-menu-solutions .dropdown-item-category::before {
    display: none;
  }

  .btn-cta-rdv {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 12px;
    margin-bottom: 8px;
  }
}

/* ---- Desktop lg (992-1199) ---- */
@media only screen and (min-width: 992px) and (max-width: 1199px) {

  .dropdown-menu-solutions {
    min-width: 420px;
    max-height: 80vh;
  }

  .dropdown-menu-solutions .dropdown-item strong {
    font-size: 0.8em;
  }

  .dropdown-menu-solutions .dropdown-item small {
    font-size: 0.72em;
  }

  .btn-cta-rdv {
    font-size: 0.7em;
    padding: 6px 14px;
  }
}

/* ---- Desktop xl (1200-1399) ---- */
@media only screen and (min-width: 1200px) and (max-width: 1399px) {

  .dropdown-menu-solutions {
    min-width: 460px;
    max-height: 82vh;
  }

  .dropdown-menu-solutions .dropdown-item strong {
    font-size: 0.85em;
  }

  .btn-cta-rdv {
    font-size: 0.78em;
    padding: 7px 18px;
  }
}

/* ---- Desktop xxl (1400+) ---- */
@media only screen and (min-width: 1400px) {

  .dropdown-menu-solutions {
    min-width: 520px;
    max-height: 85vh;
  }

  .btn-cta-rdv {
    font-size: 0.85em;
    padding: 9px 24px;
  }
}


/* ---------------------------------------------------------
   4. NAVIGATION V3 — Séparateur de section & cartes catégorielles
   --------------------------------------------------------- */

/* --- Séparateur de section dans le mega-menu --- */
.dropdown-menu-solutions .dropdown-section-label {
  padding: 12px 16px 6px 16px;
  margin-top: 4px;
  border-top: 2px solid #C0D194;          /* --vert */
  background: transparent;
}

.dropdown-menu-solutions .dropdown-section-label small {
  font-family: 'Outfit', 'DM Sans', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C0D194;                          /* --vert */
  display: block;
}

/* --- Cartes catégorielles (bloc B) : accent visuel discret --- */
.dropdown-menu-solutions .dropdown-item-category {
  position: relative;
  padding-left: 24px;
}

.dropdown-menu-solutions .dropdown-item-category::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  border-radius: 2px;
  background: #C0D194;                    /* --vert */
  opacity: 0.6;
  transition: opacity 0.3s ease, height 0.3s ease;
}

.dropdown-menu-solutions .dropdown-item-category:hover::before,
.dropdown-menu-solutions .dropdown-item-category:focus::before {
  opacity: 1;
  height: 80%;
}
