/* MDIVINE - charte du site vitrine.
   Extraite des deux blocs <style> de l'ancien index.php :
     lignes 226-1452  : charte generale
     lignes 1456-1529 : section packs formation

   NE PAS y reintegrer assets/css/style.css : ce fichier n'est charge
   nulle part par index.php (vestige d'une version anterieure). Il
   redefinit --brand en bleu et impose un degrade bleu au hero, ce qui
   detruit l'identite sombre du site.

   Le 3e bloc <style> (l.4015) est exclu : il appartient a une page
   'Lien WhatsApp' commentee dans le fichier. */


    :root {
      --brand: #B4B40DFF;
      --brand-2: #FF00EEFF;
      --dark: #1a1a2e;
      --light: #f5f7fa;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      overflow-x: hidden;
      background: #0a0a0f;
      color: #fff;
    }

    #canvas3d {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    .glass {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }

    .glass-dark {
      background: rgba(10, 10, 15, 0.7);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.1);
    }

    @keyframes float3d {

      0%,
      100% {
        transform: translateY(0px) rotateX(0deg);
      }

      50% {
        transform: translateY(-20px) rotateX(5deg);
      }
    }

    @keyframes glow-pulse {

      0%,
      100% {
        box-shadow: 0 0 20px rgba(108, 99, 255, 0.4), 0 0 40px rgba(0, 194, 255, 0.2);
      }

      50% {
        box-shadow: 0 0 40px rgba(108, 99, 255, 0.8), 0 0 80px rgba(0, 194, 255, 0.4);
      }
    }

    @keyframes slide-in-3d {
      from {
        opacity: 0;
        transform: translateZ(-100px) translateY(50px);
      }

      to {
        opacity: 1;
        transform: translateZ(0) translateY(0);
      }
    }

    @keyframes shimmer {
      0% {
        transform: translateX(-100%) rotate(45deg);
      }

      100% {
        transform: translateX(100%) rotate(45deg);
      }
    }

    header {
      position: sticky;
      top: 0;
      z-index: 1000;
      backdrop-filter: blur(20px);
      background: rgba(10, 10, 15, 0.85);
      border-bottom: 1px solid rgba(108, 99, 255, 0.3);
      box-shadow: 0 10px 50px rgba(108, 99, 255, 0.2);
      transform-style: preserve-3d;
      animation: slide-in-3d 0.8s ease-out;
      transition: all 0.3s ease;
    }

    .navbar-brand {
      font-size: 1.8rem;
      font-weight: 700;
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-shadow: 0 0 30px rgba(108, 99, 255, 0.5);
      transition: all 0.3s ease;
    }

    .navbar-brand:hover {
      transform: scale(1.1) translateZ(20px);
      filter: drop-shadow(0 0 20px rgba(108, 99, 255, 0.8));
    }

    .nav-link {
      color: rgba(255, 255, 255, 0.8) !important;
      position: relative;
      padding: 0.5rem 1rem !important;
      transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      transform-style: preserve-3d;
    }

    .nav-link::before {
      content: '';
      position: absolute;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%) scaleX(0);
      width: 80%;
      height: 2px;
      background: linear-gradient(90deg, var(--brand), var(--brand-2));
      transition: transform 0.3s ease;
    }

    .nav-link:hover {
      color: #fff !important;
      transform: translateY(-3px) translateZ(10px);
    }

    .nav-link:hover::before {
      transform: translateX(-50%) scaleX(1);
    }

    .hero-section {
      position: relative;
      min-height: 100vh;
      display: flex;
      align-items: center;
      padding: 120px 0;
      perspective: 1000px;
      overflow: hidden;
    }

    .hero-section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: radial-gradient(circle at 20% 50%, rgba(108, 99, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 194, 255, 0.15) 0%, transparent 50%);
      animation: float3d 8s ease-in-out infinite;
    }

    .hero-content {
      position: relative;
      z-index: 10;
      animation: slide-in-3d 1s ease-out;
    }

    .hero-section h1 {
      font-size: clamp(2.5rem, 6vw, 4rem);
      font-weight: 800;
      background: linear-gradient(135deg, #fff 0%, var(--brand) 50%, var(--brand-2) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      text-shadow: 0 0 80px rgba(108, 99, 255, 0.5);
      line-height: 1.2;
      margin-bottom: 1.5rem;
      animation: slide-in-3d 1.2s ease-out 0.2s both;
    }

    .hero-section .lead {
      font-size: 1.2rem;
      color: rgba(255, 255, 255, 0.8);
      line-height: 1.8;
      animation: slide-in-3d 1.2s ease-out 0.4s both;
    }

    .hero-card {
      transform-style: preserve-3d;
      transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
      animation: slide-in-3d 1.2s ease-out 0.6s both, float3d 6s ease-in-out 2s infinite;
    }

    .hero-card:hover {
      transform: translateY(-20px) rotateY(5deg) rotateX(5deg) scale(1.05);
      box-shadow: 0 30px 80px rgba(108, 99, 255, 0.4);
    }

    .card-3d {
      transform-style: preserve-3d;
      transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
      position: relative;
      border: 0;
      overflow: hidden;
    }

    .card-3d::before {
      content: '';
      position: absolute;
      top: -50%;
      left: -50%;
      width: 200%;
      height: 200%;
      background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
      transform: rotate(45deg);
      transition: all 0.6s ease;
    }

    .card-3d:hover::before {
      animation: shimmer 2s ease-in-out infinite;
    }

    .card-3d:hover {
      transform: translateY(-30px) rotateX(10deg) rotateY(5deg) scale(1.05);
      box-shadow: 0 40px 100px rgba(108, 99, 255, 0.5);
    }

    .card-3d .display-6 {
      font-size: 3.5rem;
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      filter: drop-shadow(0 0 20px rgba(108, 99, 255, 0.5));
      transition: all 0.4s ease;
    }

    .card-3d:hover .display-6 {
      transform: scale(1.2) rotateY(20deg);
      animation: float3d 2s ease-in-out infinite;
    }

    .tech-icon {
      transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      transform-style: preserve-3d;
      cursor: pointer;
    }

    .tech-icon:hover {
      transform: translateY(-30px) scale(1.3) rotateY(360deg);
      filter: drop-shadow(0 15px 30px rgba(108, 99, 255, 0.6));
    }

    .tech-icon i {
      font-size: 3.5rem;
      transition: all 0.3s ease;
    }

    .btn-3d {
      position: relative;
      padding: 15px 35px;
      font-weight: 600;
      border: none;
      border-radius: 50px;
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      color: #fff;
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
      transform-style: preserve-3d;
      box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
    }

    .btn-3d::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
      transition: left 0.5s ease;
    }

    .btn-3d:hover {
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 20px 60px rgba(108, 99, 255, 0.6);
      animation: glow-pulse 2s ease-in-out infinite;
    }

    .btn-3d:hover::before {
      left: 100%;
    }

    .btn-3d:active {
      transform: translateY(-2px) scale(1.02);
    }

    section {
      position: relative;
      z-index: 10;
      padding: 100px 0;
    }

    section h2 {
      font-size: clamp(2rem, 5vw, 3rem);
      font-weight: 800;
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 1rem;
      text-shadow: 0 0 50px rgba(108, 99, 255, 0.3);
    }

    .form-control,
    .form-select {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(255, 255, 255, 0.1);
      color: #fff;
      padding: 12px 20px;
      border-radius: 12px;
      transition: all 0.3s ease;
    }

    .form-control::placeholder {
      color: rgba(255, 255, 255, 0.4);
    }

    .form-control:focus,
    .form-select:focus {
      background: rgba(255, 255, 255, 0.1);
      border-color: var(--brand);
      box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
      transform: translateZ(10px);
      color: #fff;
    }

    .form-select option {
      background: #1a1a2e;
      color: #fff;
    }

    .form-label {
      color: rgba(255, 255, 255, 0.9);
      font-weight: 600;
      margin-bottom: 8px;
    }

    .form-check-input {
      background-color: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .form-check-input:checked {
      background-color: var(--brand);
      border-color: var(--brand);
    }

    .form-check-label {
      color: rgba(255, 255, 255, 0.8);
    }

    .invalid-feedback {
      color: #ff6b6b;
    }

    footer {
      background: rgba(10, 10, 15, 0.95);
      border-top: 1px solid rgba(108, 99, 255, 0.3);
      padding: 40px 0;
      position: relative;
      z-index: 10;
    }

    footer a {
      transition: all 0.3s ease;
    }

    footer a:hover {
      color: var(--brand) !important;
      transform: translateY(-2px);
    }

    .particle {
      position: absolute;
      width: 4px;
      height: 4px;
      background: rgba(108, 99, 255, 0.6);
      border-radius: 50%;
      pointer-events: none;
      animation: particle-float 3s ease-in-out infinite;
    }

    @keyframes particle-float {

      0%,
      100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
      }

      50% {
        opacity: 1;
      }

      100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
      }
    }

    .text-dark {
      color: rgba(255, 255, 255, 0.9) !important;
    }

    .text-muted {
      color: rgba(255, 255, 255, 0.6) !important;
    }

    .bg-white {
      background: rgba(255, 255, 255, 0.05) !important;
    }

    .bg-light {
      background: rgba(255, 255, 255, 0.03) !important;
    }

    .card-body h3 {
      color: #fff;
    }

    .card-body p {
      color: rgba(255, 255, 255, 0.7);
    }

    .badge {
      padding: 8px 16px;
      font-weight: 600;
      border-radius: 20px;
    }

    .list-unstyled li {
      padding: 8px 0;
      transition: all 0.3s ease;
    }

    .list-unstyled li:hover {
      padding-left: 10px;
      color: var(--brand-2);
    }

    /* ========================================
   BACK TO TOP BUTTON - 3D FLOATING
   ======================================== */
    .back-to-top {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 55px;
      height: 55px;
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      color: white;
      border: none;
      border-radius: 50%;
      font-size: 1.3rem;
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transition: all 0.4s ease;
      z-index: 1000;
      box-shadow: 0 8px 25px rgba(108, 99, 255, 0.5);
      transform: translateY(100px);
    }

    .back-to-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .back-to-top:hover {
      transform: translateY(-5px) scale(1.1);
      box-shadow: 0 15px 40px rgba(108, 99, 255, 0.7);
    }

    .back-to-top:active {
      transform: scale(0.95);
    }

    .back-to-top::before {
      content: '';
      position: absolute;
      inset: -5px;
      border-radius: 50%;
      background: inherit;
      filter: blur(15px);
      opacity: 0.6;
      z-index: -1;
    }

    /* ========================================
   GALERIE D'IMAGES
   ======================================== */
    .gallery-item {
      position: relative;
      overflow: hidden;
      height: 300px;
      cursor: pointer;
    }

    .gallery-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .gallery-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(108, 99, 255, 0.95), rgba(0, 194, 255, 0.95));
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      opacity: 0;
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
      transform: translateY(20px);
    }

    .gallery-overlay h4 {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
      transform: translateY(20px);
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.1s;
    }

    .gallery-overlay p {
      font-size: 1rem;
      opacity: 0.9;
      transform: translateY(20px);
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
    }

    .gallery-item:hover .gallery-img {
      transform: scale(1.15) rotate(2deg);
      filter: blur(3px) brightness(0.7);
    }

    .gallery-item:hover .gallery-overlay {
      opacity: 1;
      transform: translateY(0);
    }

    .gallery-item:hover .gallery-overlay h4,
    .gallery-item:hover .gallery-overlay p {
      transform: translateY(0);
    }

    /* ========================================
   PUBLICITÉ
   ======================================== */
    .promo-badge {
      animation: pulse-glow 2s ease-in-out infinite;
    }

    @keyframes pulse-glow {

      0%,
      100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(220, 53, 69, 0.5));
      }

      50% {
        transform: scale(1.05);
        filter: drop-shadow(0 0 20px rgba(220, 53, 69, 0.8));
      }
    }

    .promo-content {
      border: 2px solid rgba(108, 99, 255, 0.3);
      transition: all 0.4s ease;
    }

    .promo-content:hover {
      border-color: var(--brand);
      box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
      transform: translateY(-5px);
    }

    .promo-img {
      transition: all 0.4s ease;
      filter: brightness(0.9);
    }

    .promo-content:hover .promo-img {
      transform: scale(1.05);
      filter: brightness(1);
    }

    /* ========================================
   MARQUEE
   ======================================== */
    .marquee-container {
      overflow: hidden;
      position: relative;
      background: rgba(108, 99, 255, 0.1);
      border: 1px solid rgba(108, 99, 255, 0.2);
    }

    .marquee {
      display: flex;
      animation: marquee-scroll 30s linear infinite;
      white-space: nowrap;
    }

    .marquee-item {
      display: inline-block;
      padding: 0 3rem;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.9);
    }

    @keyframes marquee-scroll {
      0% {
        transform: translateX(0);
      }

      100% {
        transform: translateX(-50%);
      }
    }

    .marquee:hover {
      animation-play-state: paused;
    }

    /* ========================================
   CARTE MAPS
   ======================================== */
    .map-container {
      position: relative;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
      transition: all 0.4s ease;
    }

    .map-container:hover {
      box-shadow: 0 15px 50px rgba(108, 99, 255, 0.4);
      transform: translateY(-5px);
    }

    .map-container iframe {
      display: block;
      filter: grayscale(0.2) contrast(1.1);
      transition: all 0.4s ease;
    }

    .map-container:hover iframe {
      filter: grayscale(0) contrast(1.2);
    }

    /* ========================================
   RESPONSIVE
   ======================================== */
    @media (max-width: 991px) {
      .gallery-item {
        height: 250px;
      }

      .map-container iframe {
        height: 350px;
      }
    }

    @media (max-width: 768px) {
      .hero-section h1 {
        font-size: 2rem;
      }

      section {
        padding: 60px 0;
      }

      .tech-icon i {
        font-size: 2.5rem;
      }

      .gallery-item {
        height: 220px;
      }

      .marquee-item {
        padding: 0 2rem;
        font-size: 0.9rem;
      }
    }

    /* ========================================
   POPUP PUBLICITAIRE PROFESSIONNEL
   ======================================== */
    .promo-popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.85);
      backdrop-filter: blur(10px);
      z-index: 9999;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      visibility: hidden;
      transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    .promo-popup-overlay.show {
      opacity: 1;
      visibility: visible;
    }

    .promo-popup {
      position: relative;
      background: linear-gradient(135deg, rgba(10, 10, 15, 0.98), rgba(26, 26, 46, 0.98));
      border-radius: 24px;
      max-width: 900px;
      width: 90%;
      max-height: 90vh;
      overflow: hidden;
      box-shadow: 0 30px 90px rgba(108, 99, 255, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
      transform: translateY(100px) scale(0.9);
      transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
      animation: popup-glow 3s ease-in-out infinite;
    }

    .promo-popup-overlay.show .promo-popup {
      transform: translateY(0) scale(1);
    }

    @keyframes popup-glow {

      0%,
      100% {
        box-shadow: 0 30px 90px rgba(108, 99, 255, 0.5),
          0 0 0 1px rgba(255, 255, 255, 0.1);
      }

      50% {
        box-shadow: 0 30px 90px rgba(108, 99, 255, 0.8),
          0 0 0 1px rgba(255, 255, 255, 0.2),
          0 0 60px rgba(255, 0, 238, 0.3);
      }
    }

    .promo-popup-close {
      position: absolute;
      top: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 10;
      transition: all 0.3s ease;
      color: #fff;
      font-size: 1.5rem;
    }

    .promo-popup-close:hover {
      background: rgba(255, 59, 48, 0.9);
      transform: rotate(90deg) scale(1.1);
      box-shadow: 0 5px 20px rgba(255, 59, 48, 0.5);
    }

    .promo-popup-content {
      display: flex;
      flex-direction: row;
    }

    .promo-popup-image {
      flex: 0 0 45%;
      position: relative;
      overflow: hidden;
    }

    .promo-popup-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      transition: all 0.6s ease;
    }

    .promo-popup:hover .promo-popup-image img {
      transform: scale(1.05);
    }

    .promo-popup-image::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(108, 99, 255, 0.3), rgba(255, 0, 238, 0.3));
      opacity: 0;
      transition: opacity 0.4s ease;
    }

    .promo-popup:hover .promo-popup-image::before {
      opacity: 1;
    }

    .promo-popup-body {
      flex: 1;
      padding: 40px;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .promo-badge-premium {
      display: inline-block;
      padding: 8px 20px;
      background: linear-gradient(135deg, #FFD700, #FFA500);
      color: #000;
      font-weight: 700;
      font-size: 0.85rem;
      border-radius: 30px;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 1px;
      box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
      animation: badge-shine 2s ease-in-out infinite;
    }

    @keyframes badge-shine {

      0%,
      100% {
        transform: scale(1);
      }

      50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
      }
    }

    .promo-popup-title {
      font-size: 2rem;
      font-weight: 800;
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 15px;
      line-height: 1.2;
    }

    .promo-popup-subtitle {
      color: rgba(255, 255, 255, 0.8);
      font-size: 1rem;
      margin-bottom: 30px;
      line-height: 1.6;
    }

    .promo-services-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
      margin-bottom: 30px;
    }

    .promo-service-card {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 20px;
      text-align: center;
      cursor: pointer;
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      position: relative;
      overflow: hidden;
    }

    .promo-service-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
      transition: left 0.6s ease;
    }

    .promo-service-card:hover::before {
      left: 100%;
    }

    .promo-service-card:hover {
      background: rgba(108, 99, 255, 0.2);
      border-color: var(--brand);
      transform: translateY(-5px) scale(1.05);
      box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
    }

    .promo-service-icon {
      font-size: 2.5rem;
      margin-bottom: 10px;
      display: block;
      transition: all 0.4s ease;
    }

    .promo-service-card:hover .promo-service-icon {
      transform: scale(1.2) rotateY(360deg);
    }

    .promo-service-card h4 {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 5px;
      color: #fff;
    }

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

    .promo-cta-container {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .promo-btn-primary {
      flex: 1;
      padding: 15px 30px;
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      color: #fff;
      border: none;
      border-radius: 12px;
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
      transition: all 0.4s ease;
      box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
      position: relative;
      overflow: hidden;
    }

    .promo-btn-primary::before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      border-radius: 50%;
      background: rgba(255, 255, 255, 0.3);
      transform: translate(-50%, -50%);
      transition: width 0.6s ease, height 0.6s ease;
    }

    .promo-btn-primary:hover::before {
      width: 300px;
      height: 300px;
    }

    .promo-btn-primary:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 35px rgba(108, 99, 255, 0.6);
    }

    .promo-btn-secondary {
      padding: 15px 30px;
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      color: #fff;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .promo-btn-secondary:hover {
      background: rgba(255, 255, 255, 0.15);
      border-color: var(--brand);
      transform: translateY(-3px);
    }

    .promo-timer {
      text-align: center;
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .promo-timer-text {
      font-size: 0.85rem;
      color: rgba(255, 255, 255, 0.6);
      margin-bottom: 8px;
    }

    .promo-timer-countdown {
      font-size: 1.5rem;
      font-weight: 700;
      background: linear-gradient(135deg, #FFD700, #FF6B6B);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: timer-pulse 1s ease-in-out infinite;
    }

    @keyframes timer-pulse {

      0%,
      100% {
        opacity: 1;
        transform: scale(1);
      }

      50% {
        opacity: 0.8;
        transform: scale(1.05);
      }
    }

    /* RESPONSIVE POPUP */
    @media (max-width: 768px) {
      .promo-popup {
        max-width: 95%;
        margin: 20px;
      }

      .promo-popup-content {
        flex-direction: column;
      }

      .promo-popup-image {
        flex: 0 0 250px;
      }

      .promo-popup-body {
        padding: 30px 20px;
      }

      .promo-popup-title {
        font-size: 1.5rem;
      }

      .promo-services-grid {
        grid-template-columns: 1fr;
      }

      .promo-cta-container {
        flex-direction: column;
      }

      .promo-btn-primary,
      .promo-btn-secondary {
        width: 100%;
      }
    }











    /* ========================================
   AMÉLIORATION RESPONSIVE POPUP MOBILE
   ======================================== */

    /* Conteneur avec scroll pour les services sur mobile */
    .promo-services-container {
      max-height: 400px;
      overflow-y: auto;
      margin-bottom: 20px;
      padding-right: 5px;
    }

    /* Scrollbar stylisée */
    .promo-services-container::-webkit-scrollbar {
      width: 6px;
    }

    .promo-services-container::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 10px;
    }

    .promo-services-container::-webkit-scrollbar-thumb {
      background: var(--brand);
      border-radius: 10px;
    }

    .promo-services-container::-webkit-scrollbar-thumb:hover {
      background: var(--brand-2);
    }

    /* RESPONSIVE POPUP AMÉLIORÉ */
    @media (max-width: 768px) {
      .promo-popup {
        max-width: 95%;
        max-height: 85vh;
        margin: 20px;
        overflow-y: auto;
      }

      .promo-popup-content {
        flex-direction: column;
        max-height: none;
      }

      .promo-popup-image {
        flex: 0 0 200px;
        min-height: 200px;
      }

      .promo-popup-body {
        padding: 25px 20px;
        max-height: none;
      }

      .promo-popup-title {
        font-size: 1.4rem;
      }

      .promo-popup-subtitle {
        font-size: 0.9rem;
      }

      /* Services en colonne sur mobile avec scroll */
      .promo-services-container {
        max-height: 300px;
        overflow-y: auto;
      }

      .promo-services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
      }

      .promo-service-card {
        padding: 15px;
      }

      .promo-service-icon {
        font-size: 2rem;
      }

      .promo-cta-container {
        flex-direction: column;
        gap: 10px;
      }

      .promo-btn-primary,
      .promo-btn-secondary {
        width: 100%;
        padding: 12px 20px;
      }

      .promo-timer-countdown {
        font-size: 1.2rem;
      }
    }

    /* Pour les très petits écrans */
    @media (max-width: 480px) {
      .promo-popup {
        max-height: 90vh;
      }

      .promo-popup-image {
        flex: 0 0 150px;
        min-height: 150px;
      }

      .promo-popup-body {
        padding: 20px 15px;
      }

      .promo-popup-title {
        font-size: 1.2rem;
      }

      .promo-services-container {
        max-height: 250px;
      }

      .promo-service-card h4 {
        font-size: 0.9rem;
      }

      .promo-service-card p {
        font-size: 0.75rem;
      }
    }

    /* ========================================
   STYLES POUR LA SECTION PACKS FORMATION
   ======================================== */
    .bg-gradient-primary {
      background: linear-gradient(135deg, var(--brand), var(--brand-2)) !important;
    }

    .card-header.bg-primary,
    .card-header.bg-gradient-primary,
    .card-header.bg-dark {
      border: none;
      position: relative;
      overflow: hidden;
    }

    .card-header.bg-primary::before,
    .card-header.bg-gradient-primary::before,
    .card-header.bg-dark::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
      opacity: 0.3;
    }

    .card-3d .card-body ul li {
      padding: 8px 0;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      transition: all 0.3s ease;
    }

    .card-3d .card-body ul li:last-child {
      border-bottom: none;
    }

    .card-3d .card-body ul li:hover {
      padding-left: 10px;
      color: var(--brand-2);
    }

    /* Animation pour les badges de promotion */
    .promo-badge .badge {
      animation: badge-pulse 2s ease-in-out infinite;
    }

    @keyframes badge-pulse {

      0%,
      100% {
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
      }

      50% {
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
      }
    }

    /* Responsive */
    @media (max-width: 768px) {
      .display-4 {
        font-size: 2.5rem;
      }

      .card-3d .card-body {
        padding: 1.5rem;
      }
    }
