/* ============================================
   PAGE AFFILIATION & PARTENARIAT - MODERN
   ============================================ */

/* :: HEADER :: */
.header {
  padding: 200px 0 100px;
  background: linear-gradient(180deg,
    #0a0e27 0%,
    #132037 25%,
    #1a2540 50%,
    #1a1b2e 75%,
    #0a0e27 100%
  );
  overflow: hidden;
  position: relative;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 96, 254, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(96, 165, 250, 0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.header > .container {
  position: relative;
  z-index: 1;
}

@media only screen and (max-width: 1199.98px) {
  .header {
    padding: 170px 0 80px;
  }
}

@media only screen and (max-width: 991.98px) {
  .header {
    padding: 150px 0 60px;
  }
}

/* :: HEADER CONTENT :: */
.header .title-5 {
  font-size: 17px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.header .title-1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: var(--secondary-font);
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.header .title-1.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header .para-1 {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

/* :: BUTTONS :: */
.header .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-fill-primary,
.btn-fill-light,
.btn-fill-dark {
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-fill-primary {
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  border: none;
  color: #fff;
}

.btn-fill-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 96, 254, 0.4);
}

.btn-fill-light {
  background-color: #90b2f9;
  color: #fff;
  border: 1px solid #90b2f9;
}

.btn-fill-light:hover {
  background-color: #7a9ef5;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(144, 178, 249, 0.3);
}

.btn-fill-dark {
  background-color: #302dba;
  color: #fff;
  border: 1px solid #302dba;
}

.btn-fill-dark:hover {
  background-color: #2622a3;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(48, 45, 186, 0.3);
}

.btn-outline-dark {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 15px 30px;
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

/* :: HERO IMAGE :: */
.header .hero {
  position: absolute;
  bottom: -30px;
  left: 50%;
  width: 700px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.header .hero:hover {
  opacity: 1;
  transform: scale(1.02);
}

@media only screen and (max-width: 1199.98px) {
  .header .hero {
    left: 60%;
    width: 500px;
  }
}

@media only screen and (max-width: 991.98px) {
  .header .hero {
    display: none;
  }
}

/* ============================================
   SECTION - COMMENT ÇA MARCHE
   ============================================ */

/* :: STEP NUMBER :: */
.step-number {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  color: white;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 25px rgba(0, 96, 254, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 8px 25px rgba(0, 96, 254, 0.4);
  }
  50% {
    box-shadow: 0 8px 35px rgba(0, 96, 254, 0.6);
  }
}

/* :: INFO CARDS :: */
.info-card {
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
}

.info-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 96, 254, 0.3);
  box-shadow: 0 20px 60px rgba(0, 96, 254, 0.2);
}

.info-card .media {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  transition: all 0.3s ease;
}

.info-card:hover .media {
  transform: scale(1.1) rotate(5deg);
}

/* ============================================
   SECTION - AVANTAGES / BENEFITS
   ============================================ */

.affiliate-benefit-card {
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
}

.affiliate-benefit-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 96, 254, 0.3);
  box-shadow: 0 20px 60px rgba(0, 96, 254, 0.2);
}

.benefit-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.affiliate-benefit-card .title-1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
}

.affiliate-benefit-card .para-1 {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   SECTION - TIERS DE COMMISSION
   ============================================ */

.tier-card {
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  transition: all 0.4s ease;
  height: 100%;
  text-align: center;
}

.tier-card:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tier-card.bronze:hover {
  border-color: #cd7f32;
  box-shadow: 0 20px 60px rgba(205, 127, 50, 0.3);
}

.tier-card.silver:hover {
  border-color: #c0c0c0;
  box-shadow: 0 20px 60px rgba(192, 192, 192, 0.3);
}

.tier-card.gold:hover {
  border-color: #ffd700;
  box-shadow: 0 20px 60px rgba(255, 215, 0, 0.3);
}

.tier-icon {
  margin-bottom: 20px;
}

.tier-commission {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin: 15px 0;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tier-card .badge {
  display: inline-block;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tier-card .badge-primary {
  background: var(--primary);
  color: #fff;
}

.tier-card .badge-warning {
  background: #ffd700;
  color: #000;
}

.tier-card ul {
  margin-top: 30px;
}

.tier-card ul li {
  padding: 10px 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tier-card ul li:last-child {
  border-bottom: none;
}

/* ============================================
   SECTION - PARTENAIRES
   ============================================ */

.se-iv {
  padding: 100px 0;
}

.se-iv .item {
  margin-bottom: 45px;
  transition: all 0.3s ease;
}

.se-iv .item:hover {
  transform: translateY(-10px);
}

.se-iv .item .avatar {
  width: 260px;
  margin: 0 auto 20px;
  border-radius: 15px;
  filter: grayscale(100%);
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.se-iv .item:hover .avatar {
  filter: grayscale(0%);
  box-shadow: 0 15px 40px rgba(0, 96, 254, 0.3);
  transform: scale(1.05);
}

.se-iv .item .name {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 600;
  font-family: var(--primary-font);
  margin-bottom: 8px;
}

.se-iv .item .job {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   FORMULAIRE PARTENARIAT
   ============================================ */

.partner-form {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  max-width: 700px;
  padding: 60px 50px;
  margin: 0 auto;
}

@media only screen and (max-width: 991.98px) {
  .partner-form {
    max-width: 100%;
    padding: 40px 30px;
  }
}

/* Form Label */
.partner-form .form-label {
  position: relative;
  display: block;
  margin-bottom: 25px;
}

.partner-form .form-label .input-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  text-align: left;
}

.partner-form .form-label .input-label .text-danger {
  color: #ff4444;
}

/* Form Input */
.partner-form .form-label .form-input,
.partner-form .form-label select {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border-radius: 10px;
  background: rgba(11, 12, 27, 0.5);
  border: 2px solid rgba(0, 96, 254, 0.2);
  font-size: 15px;
  font-family: var(--secondary-font);
  font-weight: 500;
  color: #ffffff;
  transition: all 0.3s ease;
}

.partner-form .form-label textarea.form-input {
  height: auto;
  padding: 15px 20px;
  resize: vertical;
  min-height: 150px;
}

.partner-form .form-label .form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.partner-form .form-label .form-input:hover,
.partner-form .form-label .form-input:focus {
  background: rgba(11, 12, 27, 0.7);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(0, 96, 254, 0.2);
}

/* Select Dropdown */
.partner-form .form-label select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  cursor: pointer;
}

.partner-form .form-label select option {
  background: #0a0e27;
  color: #fff;
}

/* Checkbox */
.partner-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* State Indicators */
.partner-form .form-label .state {
  position: absolute;
  top: 45px;
  right: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: none;
}

.partner-form .form-label .form-input.error ~ .state {
  display: block;
  background-color: #ff4444;
}

.partner-form .form-label .form-input.valid ~ .state {
  display: block;
  background-color: #4ad395;
}

/* Error Messages */
.partner-form .form-label span.error {
  display: block;
  font-size: 13px;
  color: #ff4444;
  margin-top: 8px;
}

/* Box Message */
.box-message {
  display: none;
  padding: 15px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 600;
}

.box-success {
  background: rgba(74, 211, 149, 0.1);
  border: 2px solid #4ad395;
  color: #4ad395;
}

.box-error {
  background: rgba(255, 68, 68, 0.1);
  border: 2px solid #ff4444;
  color: #ff4444;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media only screen and (max-width: 767px) {
  .header .buttons {
    flex-direction: column;
  }

  .step-number {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .benefit-icon {
    font-size: 2.5rem;
  }

  .tier-commission {
    font-size: 2rem;
  }

  .se-iv .item .avatar {
    width: 200px;
  }
}

/* ============================================
   UTILITIES
   ============================================ */

.text-primary {
  color: var(--primary) !important;
}

.text-muted {
  color: rgba(255, 255, 255, 0.6);
}

.small {
  font-size: 0.875rem;
}

/* ============================================
   NOTIFICATIONS MODERNES
   ============================================ */

.notifications {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 100px;
  right: 20px;
  pointer-events: none;
}

.notifications.active {
  display: block;
}

.notifications .notify {
  position: relative;
  padding: 20px 80px 20px 25px;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  margin-bottom: 15px;
  min-width: 400px;
  max-width: 550px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  right: -600px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: all;
}

.notifications .notify.show {
  right: 0;
  opacity: 1;
  visibility: visible;
}

/* :: SUCCESS NOTIFICATION :: */
.notifications .notify.success {
  border-left: 4px solid #4ad395;
}

.notifications .notify.success::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #4ad395 0%, #2ec77d 100%);
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

/* :: FAIL NOTIFICATION :: */
.notifications .notify.fail {
  border-left: 4px solid #ef3737;
}

.notifications .notify.fail::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ef3737 0%, #d32f2f 100%);
  border-top-left-radius: 15px;
  border-bottom-left-radius: 15px;
}

/* :: NOTIFICATION ICON :: */
.notifications .notify img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  flex-shrink: 0;
}

/* :: NOTIFICATION TEXT :: */
.notifications .notify .para-1 {
  font-size: 15px;
  font-family: var(--secondary-font);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  margin: 0;
}

.notifications .notify .para-1 span {
  font-weight: 700;
  font-size: 16px;
}

.notifications .notify.success .para-1 span {
  color: #4ad395;
}

.notifications .notify.fail .para-1 span {
  color: #ef3737;
}

/* :: CLOSE BUTTON :: */
.notifications .notify .close-notify-btn {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.notifications .notify .close-notify-btn:hover {
  background: rgba(255, 0, 0, 0.2);
  transform: translateY(-50%) rotate(90deg);
}

.notifications .notify .close-notify-btn svg {
  fill: rgba(255, 255, 255, 0.6);
  width: 14px;
  transition: all 0.3s ease;
}

.notifications .notify .close-notify-btn:hover svg {
  fill: #ef3737;
}

/* :: PROGRESS BAR :: */
.notifications .notify::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  animation: progressBar 4s linear;
}

.notifications .notify.success::after {
  background: linear-gradient(90deg, #4ad395, #2ec77d);
}

.notifications .notify.fail::after {
  background: linear-gradient(90deg, #ef3737, #d32f2f);
}

@keyframes progressBar {
  from {
    width: 100%;
  }
  to {
    width: 0%;
  }
}

/* :: RESPONSIVE :: */
@media only screen and (max-width: 767.98px) {
  .notifications {
    top: 80px;
    right: 10px;
    left: 10px;
  }

  .notifications .notify {
    min-width: auto;
    max-width: 100%;
    padding: 18px 70px 18px 20px;
  }

  .notifications .notify img {
    width: 50px;
    height: 50px;
    margin-right: 12px;
  }

  .notifications .notify .para-1 {
    font-size: 14px;
  }

  .notifications .notify .para-1 span {
    font-size: 15px;
  }
}

@media only screen and (max-width: 480px) {
  .notifications .notify {
    padding: 15px 60px 15px 15px;
  }

  .notifications .notify img {
    width: 40px;
    height: 40px;
  }

  .notifications .notify .para-1 {
    font-size: 13px;
  }

  .notifications .notify .close-notify-btn {
    width: 32px;
    height: 32px;
    right: 12px;
  }

  .notifications .notify .close-notify-btn svg {
    width: 12px;
  }
}

/* :: ANIMATION VARIANTS :: */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* :: HOVER EFFECTS :: */
.notifications .notify:hover {
  transform: translateX(-5px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.notifications .notify.success:hover {
  border-left-color: #2ec77d;
}

.notifications .notify.fail:hover {
  border-left-color: #d32f2f;
}

/* :: MULTIPLE NOTIFICATIONS STACKING :: */
.notifications .notify:nth-child(2) {
  margin-top: 0;
  transition-delay: 0.1s;
}

.notifications .notify:nth-child(3) {
  transition-delay: 0.2s;
}

/* :: ICON ANIMATION :: */
.notifications .notify.show img {
  animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* :: ICON CIRCLE :: */
.icon-circle {
  width: 120px;
  height: 120px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(0, 96, 254, 0.1), rgba(96, 165, 250, 0.1));
  border: 2px solid rgba(0, 96, 254, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.icon-circle i {
  font-size: 3rem;
  color: var(--primary);
  transition: all 0.4s ease;
}

.info-card:hover .icon-circle {
  background: linear-gradient(135deg, rgba(0, 96, 254, 0.2), rgba(96, 165, 250, 0.2));
  border-color: var(--primary);
  transform: rotate(360deg) scale(1.1);
  box-shadow: 0 10px 30px rgba(0, 96, 254, 0.3);
}

.info-card:hover .icon-circle i {
  color: #60a5fa;
  transform: scale(1.2);
}

/* :: RESPONSIVE :: */
@media only screen and (max-width: 767px) {
  .icon-circle {
    width: 100px;
    height: 100px;
  }

  .icon-circle i {
    font-size: 2.5rem;
  }
}

@media only screen and (max-width: 480px) {
  .icon-circle {
    width: 80px;
    height: 80px;
  }

  .icon-circle i {
    font-size: 2rem;
  }
}