/* Import de la police Almarai */
@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300&display=swap');

body {
  font-family: 'Almarai', sans-serif;
}

/* Style du bouton principal */
.webform-file-button {
  position: relative;
  display: inline-flex;
  align-items: center; /* centre verticalement texte + icône */
  justify-content: center; /* centre horizontalement le texte */
  padding: 12px 20px 12px 45px; /* espace pour icône à gauche */
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
  //background: url('https://form.univ-usto.dz/sites/default/files/backrg.jpg') no-repeat center center;
  background-size: cover;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: filter 0.3s ease, background-position 0.3s ease;
}

/* Hover sur le bouton */
.webform-file-button:hover {
  filter: brightness(1.1); /* éclaircit légèrement le bouton */
  background-position: center top; /* léger déplacement du fond */
}

/* Icône à gauche */
.webform-file-button::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url('/sites/default/files/telecharger.png') no-repeat center center;
  background-size: contain;
  transition: transform 0.3s ease;
}

/* Hover sur l'icône */
.webform-file-button:hover::before {
  transform: translateY(-50%) scale(1.1);
}

/* Texte centré correctement si bouton très large */
.webform-file-button span {
  display: inline-block;
  text-align: center;
  width: 100%;
}

/* --- Responsive pour mobile et tablette --- */

/* Tablette (max 1024px) */
@media (max-width: 1024px) {
  .webform-file-button {
    padding: 10px 18px 10px 40px;
    font-size: 15px;
    border-radius: 6px;
  }

  .webform-file-button::before {
    width: 18px;
    height: 18px;
    left: 10px;
  }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
  .webform-file-button {
    padding: 8px 16px 8px 38px;
    font-size: 14px;
    border-radius: 5px;
  }

  .webform-file-button::before {
    width: 16px;
    height: 16px;
    left: 8px;
  }
}

/* Petit mobile (max 480px) */
@media (max-width: 480px) {
  .webform-file-button {
    padding: 6px 12px 6px 36px;
    font-size: 13px;
  }

  .webform-file-button::before {
    width: 14px;
    height: 14px;
    left: 6px;
  }
}


/********************/
#checkbox-limit-message {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  animation: fadeIn 0.2s ease;
}

.checkbox-limit-box {
  width: 90%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
  animation: popupIn 0.25s ease;
}

.checkbox-limit-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 15px;
  border-radius: 50%;
  background: #fff3cd;
  color: #d39e00;
  font-size: 32px;
  font-weight: bold;
  line-height: 55px;
}

.checkbox-limit-title {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.checkbox-limit-text {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 25px;
}

.checkbox-limit-button {
  border: 0;
  padding: 11px 35px;
  border-radius: 8px;
  background: #007bff;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.checkbox-limit-button:hover {
  background: #0056b3;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

