/* ==================================================
   FDPL — SIDEBAR + LAYOUT PREMIUM V3
================================================== */

/* ==================================================
   LAYOUT GLOBAL
================================================== */

.fdpl-layout--with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.fdpl-layout--with-sidebar .content-area {
  max-width: 760px;
  width: 100%;
}


/* ==================================================
   SIDEBAR
================================================== */

.fdpl-sidebar {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;

  border-left: 1px solid #eef2f7;
  padding-left: 28px;
  margin-left: 28px;
}

.fdpl-sidebar-sticky {
  position: sticky;
  top: 120px;
}


/* ==================================================
   CARDS — SOFT PREMIUM
================================================== */

.fdpl-card {
  display:block; 
  
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
     
  border: 1px solid #eef2f7;

  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.05),
    0 2px 6px rgba(15, 23, 42, 0.04);
}

.fdpl-card-cta {
  text-align: center;
}


/* ==================================================
   BUTTON — ULTRA PREMIUM
================================================== */

.fdpl-btn {
  display: block;
  width: 100%;

  padding: 12px;
  border-radius: 14px;

  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #ffffff;

  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;

  box-shadow:
    0 10px 25px rgba(15, 23, 42, 0.35),
    inset 0 1px 0 rgba(255,255,255,0.1);

  transition: all 0.25s ease;

  position: relative;
  overflow: hidden;
}

/* glow subtle */
.fdpl-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.fdpl-btn:hover::after {
  opacity: 1;
}

.fdpl-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 35px rgba(15, 23, 42, 0.45);
}

.fdpl-btn:active {
  transform: scale(0.98);
}


/* ==================================================
   NOTE
================================================== */

.fdpl-note {
  margin-top: 8px;
  font-size: 0.75rem;
  color: #64748b;
}

/* ==================================================
   CODE PROMO — FDPL CTA ONLY
================================================== */

.fdpl-card-cta .fdpl-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

/* CODE UNIQUEMENT DANS CTA */
.fdpl-card-cta .code-promo.ancv-style {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 10px 16px;
  border-radius: 10px;

  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 1.2px;

  color: #0f172a;

  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  border: 1px dashed #c7d2fe;

  box-shadow:
    0 4px 10px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255,255,255,0.6);

  cursor: pointer;
  transition: all 0.2s ease;
}

/* HOVER */
.fdpl-card-cta .code-promo.ancv-style:hover {
  transform: translateY(-2px);
  border-color: #6366f1;

  box-shadow:
    0 8px 20px rgba(99, 102, 241, 0.25);
}

/* LABEL */
.fdpl-card-cta .fdpl-note {
  font-size: 0.75rem;
  color: #64748b;
}



/* ==================================================
   TITRES
================================================== */

.fdpl-sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;

  display: flex;
  align-items: center;
  gap: 8px;

  color: #0f172a;
}

.fdpl-sidebar-title::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(180deg, #6366f1, #22c55e);
}


/* ==================================================
   LISTE
================================================== */

.fdpl-profiles-list li {
  font-size: 0.85rem;
  color: #334155;
  padding-left: 14px;
  position: relative;
}

.fdpl-profiles-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #6366f1;
}


/* ==================================================
   CTA MOBILE FIXED
================================================== */

.fdpl-cta-mobile-fixed {
  display: none;
}


/* ==================================================
   MOBILE — VERSION ULTRA CLEAN
================================================== */

@media (max-width: 1023px) {

  .fdpl-layout--with-sidebar {
    display: block;
  }

  .fdpl-layout--with-sidebar .content-area {
    padding: 0 16px;
  }

  .fdpl-sidebar {
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
  }

  .fdpl-sidebar-sticky {
    position: static;
  }

  .fdpl-card {
    padding: 14px;
    border-radius: 16px;
  }

  /* cacher desktop */
  .fdpl-cta-desktop {
    display: none;
  }

  /* CTA FIXED */
  .fdpl-cta-mobile-fixed {
    display: block;

    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    padding: 10px 12px;

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(14px);

    box-shadow: 0 -8px 30px rgba(0,0,0,0.12);
  }

  .fdpl-cta-mobile-fixed .fdpl-card {
    padding: 12px;
  }

  /* bouton encore plus compact */
  .fdpl-cta-mobile-fixed .fdpl-btn {
    padding: 10px;
    font-size: 0.9rem;
    border-radius: 12px;
  }

  .fdpl-cta-mobile-fixed .fdpl-note {
    font-size: 0.7rem;
  }

  .fdpl-cta-mobile-fixed .fdpl-code {
    font-size: 0.75rem;
    padding: 5px 8px;
  }

  body {
    padding-bottom: 95px;
  }
}