@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Montserrat:wght@500;600;700;800&display=swap");

/* --- THEME Wei'k up --- */
:root {
  --primary-color: #BD2D97; /* Magenta */
  --secondary-color: #FAD02C; /* Jaune Soleil */
  --dark-color: #333333; /* Anthracite Profond (pour la lisibilité du texte) */
  --bg-color: #FAFAFA; /* Gris ultra-clair neutre, sans vert */
  --accent-color: #FFFFFF; /* Blanc pur */
  --light-color: #FFFFFF; /* Blanc */
  --success-color: #22c55e; /* Vert neutre (UI base) */
  --warning-color: #FAD02C; /* Jaune Soleil */
  --danger-color: #FF7158; /* Corail Electrique */
  --info-color: #66C2FF; /* Bleu Serein */
  --font-main: "Poppins", sans-serif;
  --font-heading: "Montserrat", sans-serif;
  --border-radius: 15px;
  --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  
  color: var(--dark-color);
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}
a {
  text-decoration: none;
}

/* --- IMAGES & RESPONSIVE --- */
img {
  max-width: 100%;
  height: auto;
}

/* --- NAVBAR --- */
.navbar {
  background-color: var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  min-height: 70px;
  border-radius: 0 0 2rem 2rem;
}
.navbar-brand img {
  max-height: 50px;
  transition: transform 0.3s;
}
.navbar-brand img:hover {
  transform: scale(1.05);
}
.navbar-brand,
.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--primary-color);
}
.navbar-title {
  font-family: var(--font-heading);
  color: var(--primary-color);
  letter-spacing: 0.02em;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-color) 0%, #D84BAA 100%);
  border: none;
  border-radius: 2rem;
  padding: 0.8rem 2rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.btn-outline-primary:hover {
  background: rgba(189, 45, 151, 0.05);
  color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-1px);
}

.payment-options {
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

/* --- HERO SECTION --- */
.hero-section {
  padding: 3rem 0;
  text-align: center;
}
.hero-title {
  color: var(--primary-color) !important;
  text-shadow: 0 2px 10px rgba(189, 45, 151, 0.2);
  font-size: 2.5rem;
}
.hero-subtitle {
  color: var(--dark-color);
  font-size: 1.2rem;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* --- CARDS (GLASSMORPHISM) --- */
.content-card,
.card {
  background-color: rgba(255, 255, 255, 0.85); /* rgba equivalent of #314A7A */
  backdrop-filter: blur(12px);
  border-radius: var(--border-radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(189, 45, 151, 0.15); /* Bordure or très subtile */
  color: var(--dark-color);
  transition: var(--transition-smooth);
  margin-bottom: 2rem;
  overflow: hidden;
}
.content-card {
  padding-top: 1.5rem;
}
.card:hover {
  border: 1px solid rgba(250, 208, 44, 0.6); /* Jaune Soleil */
  box-shadow: 0 0 25px rgba(250, 208, 44, 0.3);
  transform: translateY(-5px);
}
.card-header {
  background: #FFFFFF;
  color: var(--primary-color);
  font-weight: 600;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(189, 45, 151, 0.1);
}
.card-body {
  padding: 25px;
}
.card-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* --- BOUTONS --- */
.btn {
  border-radius: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  padding: 0.65rem 1.8rem;
}
.btn-primary {
  background: var(--primary-color);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 4px 15px rgba(189, 45, 151, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(255, 113, 88, 0.5);
  color: #FFFFFF;
  background: #FF7158;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- CHECKBOX VISIBILITY --- */
.form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  border: 2px solid var(--primary-color) !important;
  background-color: #ffffff !important;
  border-radius: 0.35rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.form-check-input::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  transform: scale(0);
  transition: transform 150ms cubic-bezier(0.18, 0.89, 0.32, 1.28);
  background-color: #ffffff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 18%, 82% 0, 43% 62%);
}

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

.form-check-input:checked::before {
  transform: scale(1);
}

.form-check-input:focus {
  border-color: #FAD02C;
  box-shadow: 0 0 0 0.2rem rgba(250, 208, 44, 0.3);
}

.form-check-input:checked + .form-check-label {
  color: var(--dark-color) !important;
}

/* --- FOOTER & LOGOS RESPONSIVE --- */
.footer {
  background-color: var(--accent-color);
  color: var(--dark-color);
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-radius: 2rem 2rem 0 0;
}
@media (min-width: 768px) {
  .footer {
    margin-top: 2.5rem;
  }
}
@media (min-width: 992px) {
  .footer {
    margin-top: 3rem;
  }
}

.footer-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
@media (min-width: 992px) {
  .footer-container {
    flex-direction: row;
  }
}

.footer-left,
.footer-center,
.footer-right {
  margin-bottom: 1.5rem;
  text-align: center;
}
@media (min-width: 992px) {
  .footer-left {
    text-align: left;
    margin-bottom: 0;
  }
  .footer-right {
    text-align: right;
    margin-bottom: 0;
  }
}

.footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
}
@media (min-width: 992px) {
  .footer-center {
    order: 0;
    margin-bottom: 0;
  }
}

.footer-link,
.footer a {
  color: var(--primary-color);
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
  font-weight: 500;
}
.footer-link:hover,
.footer a:hover {
  color: var(--dark-color);
}

.footer-email,
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
@media (min-width: 992px) {
  .footer-left .footer-email,
  .footer-left .footer-social {
    justify-content: flex-start;
  }
  .footer-right .footer-email,
  .footer-right .footer-social {
    justify-content: flex-end;
  }
}
.footer-icon {
  margin-right: 0.5rem;
}
.footer-right .footer-icon {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Navbar Logo */
.navbar-brand {
  padding-left: 1rem;
  margin-right: 0;
}
.navbar-brand img {
  transition: transform 0.3s ease;
  height: auto;
  max-height: 50px;
}
.navbar-brand img:hover {
  transform: scale(1.05);
}
@media (min-width: 576px) {
  .navbar-brand img {
    max-height: 60px;
  }
}
@media (min-width: 992px) {
  .navbar-brand img {
    max-height: 70px;
    padding-left: 1rem;
  }
}

/* Footer Logos */
.logos-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  margin-top: 1rem;
}
.logo-wanted {
  height: 75px;
  margin: 0.5rem;
  width: auto !important;
  max-width: 80px;
  object-fit: contain;
}
.logo-olympus {
  height: 75px;
  margin: 0.5rem;
  width: auto !important;
  max-width: 80px;
  object-fit: contain;
}
.logo-x {
  height: 40px;
  margin: 0.5rem;
  width: auto !important;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 576px) {
  .logo-wanted { height: 85px; }
  .logo-olympus { height: 85px; max-width: 90px; }
  .logo-x { height: 45px; }
}
@media (min-width: 992px) {
  .logo-wanted { height: 95px; margin: 0 10px; }
  .logo-olympus { height: 95px; margin: 0 10px; max-width: 105px; }
  .logo-x { height: 50px; margin: 0 10px; }
}

/* Hero Logo */
.logo-circle {
  width: auto;
  max-width: 255px;
  height: auto;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  animation: float 6s ease-in-out infinite;
  padding: 0;
}
.logo-circle img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
@media (min-width: 576px) {
  .logo-circle {
    max-width: 340px;
  }
}
@media (min-width: 768px) {
  .logo-circle {
    max-width: 425px;
  }
}

/* --- ALERTS --- */
.alert {
  padding: 15px 20px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--primary-color);
  background: rgba(
    49,
    74,
    122,
    0.9
  ); /* Fond ardoise plus dur pour contraster */
  color: var(--dark-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.alert-success {
  border-left-color: var(--success-color);
  background-color: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
}
.alert-danger,
.alert-error {
  border-left-color: var(--danger-color);
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}
.alert-warning {
  border-left-color: var(--warning-color);
  background-color: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}
.alert-info {
  border-left-color: var(--info-color);
  background-color: rgba(14, 165, 233, 0.15);
  border-color: rgba(14, 165, 233, 0.3);
}

/* --- FORMULAIRES --- */
.form-control,
.form-select,
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(189, 45, 151, 0.2);
  color: var(--dark-color);
  border-radius: 10px;
  padding: 10px 15px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}
label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* --- PAGE PAIEMENT --- */
.main-card {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.tarifs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tarif-card {
  border: 1px solid rgba(189, 45, 151, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
}

.tarif-badge {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--primary-color);
}

.card-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.9rem;
  color: var(--dark-color);
}

.payment-summary {
  border: 1px solid rgba(189, 45, 151, 0.12);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.85);
}

.payment-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.2rem 0;
}

.payment-summary-row.promo {
  color: #FF7158; /* Corail Electrique */
}

.payment-summary-row.total {
  margin-top: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(189, 45, 151, 0.2);
  font-size: 1.05rem;
  color: var(--dark-color);
}

.payment-consent {
  border: 1px solid rgba(189, 45, 151, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.8rem 0.9rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.payment-consent.form-check {
  padding-left: 0 !important;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: 0.75rem;
  row-gap: 0;
}

.payment-consent .form-check-input {
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0.2rem;
  float: none;
  flex: 0 0 auto;
}

.payment-consent-label {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--dark-color) !important;
  margin-bottom: 0;
  display: block;
}

.payment-danger-note {
  display: block;
  margin-top: 0.6rem;
  padding: 0.5rem 0.8rem;
  border-left: 4px solid #dc3545;
  border-radius: 8px;
  background: rgba(220, 53, 69, 0.08);
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.4;
}

.payment-consent:hover {
  border-color: rgba(189, 45, 151, 0.45);
  background: rgba(255, 255, 255, 0.55);
}

.payment-consent:has(.form-check-input:focus),
.payment-consent:has(.form-check-input:checked) {
  border-color: rgba(189, 45, 151, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(189, 45, 151, 0.12);
}

.tarif-card .form-select {
  margin-bottom: 0.35rem;
}

.payment-choice-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 0.01em;
}

.tarif-card .payment-choice-select {
  border: 2px solid rgba(189, 45, 151, 0.75) !important;
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: var(--dark-color) !important;
  font-weight: 700;
  font-size: 0.98rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  box-shadow: 0 0 0 2px rgba(189, 45, 151, 0.08);
}

.tarif-card .payment-choice-select option {
  background-color: #FFFFFF;
  color: var(--dark-color);
}

.tarif-card .payment-choice-select:focus {
  border-color: #FAD02C !important;
  box-shadow: 0 0 0 0.24rem rgba(250, 208, 44, 0.28) !important;
}

.tarif-card .btn-primary {
  width: 100%;
}

/* Keep Bootstrap modals above the backdrop even with custom stacking contexts. */
.modal {
  z-index: 1080;
}

.modal-backdrop {
  z-index: 1070;
}

.modal-content {
  background: #f8fafc;
  color: var(--dark-color);
  border: 1px solid rgba(189, 45, 151, 0.18);
}

.modal-header,
.modal-footer {
  border-color: rgba(189, 45, 151, 0.15);
}

.modal-title,
.modal-body,
.modal-body p,
.modal-body li {
  color: var(--dark-color);
}

@media (min-width: 768px) {
  .card-price {
    font-size: 2.35rem;
  }
}

/* --- PREMIUM DASHBOARD --- */
.dashboard-score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .dashboard-score-grid {
        grid-template-columns: 1fr;
    }
}

.score-card {
    background: white;
    padding: 1.25rem 0.75rem;
    border-radius: 18px;
    border: 1px solid rgba(189, 45, 151, 0.08);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}

.score-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(189, 45, 151, 0.06);
}

.score-card i {
    font-size: 1.25rem;
    margin-bottom: 10px;
    display: block;
    color: var(--primary-color);
}

.score-card .label {
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.score-card .value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--dark-color);
}

.score-card.highlight {
    background: linear-gradient(135deg, rgba(189, 45, 151, 0.05) 0%, rgba(250, 208, 44, 0.05) 100%);
    border: 1px solid rgba(189, 45, 151, 0.2);
}

.score-card.highlight .value {
    color: var(--primary-color);
    font-size: 1.15rem;
}

.payment-progress-container {
    margin-bottom: 2.5rem;
    padding: 0 10px;
}

.premium-progress {
    height: 14px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.premium-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: 0 0 15px rgba(189, 45, 151, 0.3);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.btn-secondary-link {
    background: transparent;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-secondary-link:hover {
    color: var(--secondary-color);
    transform: scale(1.05);
}
