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

.humane-success {
  background-color: #28a745 !important;
}

.humane-error {
  background-color: #dc3545 !important;
}

body{
  overflow-x: hidden;
}

/* Header */
header {
  background: white;
  padding: 9px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: none;
  border-bottom: 1px solid #e8e8e8;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 25px;
}

.logos {
  display: flex;
  gap: 15px;
  align-items: center;
}

.logo-text-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-republic {
  font-size: 26px;
  color: #999;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-shadow: 0 0 black;
}

.logo-ministry {
  font-size: 20px;
  /*color: #0088cc;*/
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: linear-gradient(89.9deg, #127e76 42.51%, #127e76 98.27%), linear-gradient(357.74deg, #FF9F31 3.08%, #FBD690 99.45%), linear-gradient(357.74deg, #11766E 3.08%, #1AA09F 99.45%);
  color: transparent;
  -webkit-background-clip: text;

}
.lang-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1.5px solid #e0e0e0;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  background: white;
  transition: all 0.3s;
}

.lang-selector:hover {
  border-color: #0088cc;
  background: #f8fbff;
}

.flag-icon {
  width: 24px;
  height: 16px;
  border-radius: 2px;
}

.dropdown-arrow {
  font-size: 12px;
  color: #666;
}


@media (max-width: 768px) {

  header {
    background: white;
    padding: 25px 80px;
    display: block;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
    border-bottom: 1px solid #e8e8e8;
  }

  header {
    padding-left: 30px;
    padding-right: 30px;
  }

  .logos {
    display: flex;

    align-items: center;
    justify-content: space-between;
  }
  .logo-section {
    display: block;
    margin-bottom: 15px;
  }
  .logo-republic {
    font-size: 16px
  }

  .logo-ministry  {
    font-size: 16px;
  }
}

/* Preloader full screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white; /* ou une autre couleur de fond */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Inner content (logo + texte) */
.preloader {
  text-align: center;
}
.container {
  display: flex;
  height: 100vh;
}

/* Section gauche - Teal */
.left-section {
  background: linear-gradient(89.9deg, #127E76 42.51%, #127E76 98.27%);
  width: 42%;
  padding: 60px 50px;
  color: white;
  display: flex;
  flex-direction: column;
}

.left-section h1 {
  /*font-size: 2.8rem;*/
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 40px;
}

.form-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  /*margin-top: auto;*/
}

.form-card-title {
  color: #333;
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-card-subtitle {
  color: #dc3545;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.form-control,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #666;
  background: #f8f9fa;
  transition: all 0.3s;
}

.form-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='%2317a2b8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-control:focus,
.form-select:focus {
  outline: none;
  border-color: #17a2b8;
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 2px solid #17a2b8;
  color: #17a2b8;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-pdf:hover {
  background: #17a2b8;
  color: white;
}

/* Section droite - Blanc/Gris clair */
.right-section {
  /*background: #f5f5f5;*/
  width: 58%;

  display: flex;
  /*align-items: center;*/
  justify-content: center;
}
@media (min-width: 1024px) {
  .right-section {

    padding: 60px 80px;
  }
}

.right-content {
  width: 100%;
  max-width: 650px;
}

/* Carte de recherche */
.search-card {
  background: linear-gradient(89.9deg, #127E76 42.51%, #127E76 98.27%);
  border-radius: 16px;
  padding: 35px;
  margin-bottom: 30px;
  box-shadow: 0 4px 20px rgba(23, 162, 184, 0.2);
}

.search-card h2 {
  color: white;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.search-input-group {
  position: relative;
  margin-bottom: 15px;
}

.search-input {
  width: 100%;
  padding: 16px 50px 16px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  color: #333;
  background: white;
}

.search-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #17a2b8;
  font-size: 1.2rem;
}



.btn-primary {
  background: #138496;
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #0f6674;
  transform: translateX(3px);
}

.radio-group {
  display: flex;
  gap: 2rem;
  justify-content: center;
  padding: 1rem 0;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
  transition: all 0.2s ease;
}

.radio-label:hover {
  color: white;
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #127E76;
}

.radio-label span {
  font-weight: 500;
  user-select: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.button-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Icônes SVG */
.icon-pdf::before {
  content: "📄";
  margin-right: 5px;
}

.icon-search::after {
  content: "🔍";
}

.icon-arrow::after {
  content: "→";
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }
  .left-section,
  .right-section {
    width: 100%;
  }
}

/* Appliquer l'animation à l'image (facultatif) */
.preloader img {
  animation: shake 1.5s infinite;
}

/* Language Selector avec Dropdown */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border: 1.5px solid #e0e0e0;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  color: #333;
  background: white;
  transition: all 0.3s;
  position: relative;
  user-select: none;
}

.lang-selector:hover {
  border-color: #127e76;
  background: #f8fbff;
}

.lang-selector.open {
  border-color: #127e76;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.flag-icon {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

.dropdown-arrow {
  font-size: 12px;
  color: #666;
  transition: transform 0.3s;
}

.lang-selector.open .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.lang-dropdown {
  position: absolute;
  top: 100%;
  left: -1.5px;
  right: -1.5px;
  background: white;
  border: 1.5px solid #127e76;
  border-top: none;
  border-radius: 0 0 25px 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.lang-selector.open + .lang-dropdown,
.lang-selector.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
  position: relative;
}

.lang-option:hover {
  background: #f8fbff;
  padding-left: 25px;
}

.lang-option.active {
  background: #f0f8ff;
  font-weight: 600;
  color: #127e76;
}

.lang-option .fa-check {
  margin-left: auto;
  color: #127e76;
  font-size: 12px;
}

.lang-option:first-child {
  padding-top: 15px;
}

.lang-option:last-child {
  padding-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .lang-selector {
    padding: 8px 15px;
    font-size: 13px;
  }
  .left-section h1 {
    font-size: 1.4rem;
  }

  .lang-option {
    padding: 10px 15px;
    font-size: 13px;
  }
  .search-card {
    /*background: #0c84ff;*/
    margin: 1rem;
    padding: 28px 13px;
  }
  .button-group {
    display: flex;
    /*justify-content: space-between;*/
    align-items: center;
  }

  .form-card-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
  }

  .form-card-subtitle {
    color: #dc3545;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 25px;
  }
}

/* Carte d'informations */
.info-card {
  background: white;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  display: none;
}

.payement-card {
  background: white;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  display: none;
}

.info-card.show {
  display: block;
  animation: slideIn 0.4s ease;
}

.info-card.none {
  display: none;
  animation: slideIn 0.4s ease;
}

.payement-card.show {
  display: block;
  animation: slideIn 0.4s ease;
}

.payement-card.none {
  display: none;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.info-card h3 {
  color: #dc3545;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.info-field {
  display: flex;
  flex-direction: column;
}

.info-field label {
  color: #888;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.info-field input {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #333;
  background: #f8f9fa;
}

.payment-box {
  background: #dc3545;
  border-radius: 12px;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.payment-box .label {
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
}

.payment-box .amount {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.button-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.confirmation-check {
  margin-bottom: 25px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.checkbox-container input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  min-width: 22px;
  height: 22px;
  background-color: #fff;
  border: 2px solid #ddd;
  border-radius: 5px;
  position: relative;
  transition: all 0.3s;
}

.checkbox-container:hover .checkmark {
  border-color: #17a2b8;
}

.checkbox-container input:checked ~ .checkmark {
  background-color: #17a2b8;
  border-color: #17a2b8;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-label {
  color: #555;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Bouton désactivé */
.btn-primary:disabled {
  background: #ccc;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-primary:disabled:hover {
  background: #ccc;
  transform: none;
}

.btn-primary.active {
  background: #138496;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .info-card {
    padding: 25px 20px;
  }

  .info-card h3 {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 20px;
  }

  .info-field label {
    font-size: 0.75rem;
    margin-bottom: 6px;
  }

  .info-field input {
    padding: 10px 12px;
    font-size: 0.85rem;
    border-radius: 6px;
  }

  .payment-box {
    padding: 15px 20px;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin-bottom: 20px;
  }

  .payment-box .label {
    font-size: 0.9rem;
  }

  .payment-box .amount {
    font-size: 1.3rem;
  }

  .button-group {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .btn-assistance,
  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  .confirmation-check {
    margin-bottom: 20px;
  }

  .checkbox-label {
    font-size: 0.8rem;
  }

  .checkmark {
    min-width: 20px;
    height: 20px;
  }
}

/* Responsive Tablette */
@media (max-width: 1024px) and (min-width: 769px) {
  .info-card {
    padding: 30px 25px;
  }

  .info-card h3 {
    font-size: 1.1rem;
  }

  .info-field label {
    font-size: 0.8rem;
  }

  .info-field input {
    padding: 11px 14px;
    font-size: 0.9rem;
  }

  .payment-box {
    padding: 18px 25px;
  }

  .payment-box .label {
    font-size: 1rem;
  }

  .payment-box .amount {
    font-size: 1.4rem;
  }

  .btn-assistance,
  .btn-primary {
    padding: 11px 22px;
    font-size: 0.9rem;
  }
}

/* Icônes SVG */
.icon-pdf::before {
  content: "📄";
  margin-right: 5px;
}

.icon-search::after {
  content: "🔍";
}

.icon-arrow::after {
  content: "→";
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }
  .left-section,
  .right-section {
    width: 100%;
  }
}
.payement-card {
  /*max-width: 450px;*/
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.payment-title {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.operator-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.operator-card {
  position: relative;
  padding: 1.5rem;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.operator-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.operator-card.active {
  border-color: currentColor;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.operator-card.orange {
  color: #FF6600;
}

.operator-card.orange.active {
  background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), rgba(255, 102, 0, 0.05));
}

.operator-card.mtn {
  color: #FFCC00;
}

.operator-card.mtn.active {
  background: linear-gradient(135deg, rgba(255, 204, 0, 0.15), rgba(255, 204, 0, 0.05));
}

.operator-logo {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.operator-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.operator-name {
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.phone-input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.phone-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #555;
  font-weight: 500;
  font-size: 0.95rem;
}

.phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.operator-icon {
  position: absolute;
  left: 1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.8);
  overflow: hidden;
  background: white;
  padding: 4px;
}

.operator-icon.show {
  opacity: 1;
  transform: scale(1);
}

.operator-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phone-input {
  width: 100%;
  padding: 1rem 1rem 1rem 4.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
  letter-spacing: 0.5px;
}

.phone-input:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.phone-input.orange-border {
  border-color: #FF6600;
}

.phone-input.mtn-border {
  border-color: #FFCC00;
}

.btn-pay {
  width: 100%;
  padding: 1.2rem;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-pay:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-pay.orange {
  background: linear-gradient(135deg, #FF6600, #FF8833);
}

.btn-pay.mtn {
  background: linear-gradient(135deg, #FFCC00, #FFD633);
  color: #000;
}

.btn-pay.default {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.btn-pay:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-pay:not(:disabled):active {
  transform: translateY(0);
}

.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}

.error-message.show {
  display: block;
}

.already-paid-message {
  margin-block: 1rem;
  padding: 0.75rem 1rem;
  background-color: #edf7ed;
  color: #2f855a;
  border: 1px solid #c6f6d5;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
}

.d-none {
  display: none;
}

