/*
Theme Name: Exertio child
Theme URI: https://themeforest.net/user/scriptsbundle/portfolio
Description: Freelance Marketplace WordPress Theme
Version: 1.0.0
Author: ScriptsBundle
Author URI: http://scriptsbundle.com/
Template: exertio
*/

.user-credits a {
  font-weight: 600;
  color: #ff9800 !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-credits .credits-number {
  background: #fff3e0;
  color: #e65100;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: bold;
}

#demanda-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}

#demanda-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  z-index: 9999;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#demanda-modal .btn-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Conteneur de la photo de profil */
.profile-link {
  position: relative;
  display: inline-block;
}

/* La pastille rouge des solicitudes */
.solicitudes-badge {
  position: absolute;
  top: 0px;
  right: 0px;
  transform: translate(30%, -30%);
  background: #e63946;
  /* rouge vif */
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 9999px;
  /* cercle */
  line-height: 1;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 20;
  pointer-events: none;
  /* pas de clic sur la pastille */
}

/* Ajustement de l'image de profil si besoin */
.profile-link img {
  border-radius: 50%;
  display: block;
  max-width: 40px;
  /* ajuste à ton thème */
  height: auto;
}

/* Profile dropdown menu z-index fix */
.sb-menu .submenu-right.dropdown_menu,
.sb-menu .loggedin {
  position: relative;
  z-index: 9999;
}

.sb-menu .submenu-right.dropdown_menu ul,
.sb-menu .loggedin ul {
  z-index: 9999;
  position: absolute;
}

/* Notification dropdown z-index */
.notification-click .dropdown-menu {
  z-index: 9999;
  position: absolute;
}

#notif-badge {
  border-radius: 50% !important;
  min-width: 20px;
  min-height: 20px;
  padding: 3px 6px;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

/* Badge panier identique aux notifications */
#cart-badge {
  border-radius: 50% !important;
  min-width: 20px;
  min-height: 20px;
  padding: 3px 6px;
  font-size: 12px;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
}

/* Style icône panier */
.cart-icon .nav-link {
  font-size: 1.1rem;
  color: inherit;
  transition: color 0.3s ease;
}

.cart-icon .nav-link:hover {
  color: #fe696a;
}

.cart-icon .fa-shopping-cart {
  font-size: 1.1rem;
}

.btn-solicitudes {
  background-color: #fe6f34 !important;
  border: none !important;
  color: #fff !important;
  text-transform: uppercase !important;
}

.btn-solicitudes:hover {
  background-color: #e85f28 !important;
  /* un peu plus foncé au hover */
  color: #fff !important;
}

/* ===== MODAL DE NOTATION MODERNE ===== */

.review-modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.review-modal-header {
  background: #fe6f34;
  color: white;
  padding: 24px 30px;
  border-bottom: none;
  position: relative;
}

.review-header-content h5 {
  margin: 0;
  font-size: 20px;
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-subtitle {
  margin: 8px 0 0 0;
  opacity: 0.9;
  font-size: 14px;
  font-weight: 400;
  color: white;
}

.review-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.review-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.review-modal-body {
  padding: 30px;
  background: #f8f9fa;
}

.review-form {
  max-width: 100%;
}

/* === CATEGORIES DE NOTATION === */

.rating-categories {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.rating-category {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.rating-category:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.category-header h6 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.rating-value {
  background: #fe696a;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  min-width: 32px;
  text-align: center;
}

/* === ÉTOILES INTERACTIVES === */

.star-rating {
  display: flex;
  gap: 4px;
  cursor: pointer;
}

.star-rating i {
  font-size: 24px;
  color: #ffc107;
  transition: all 0.2s ease;
  cursor: pointer;
}

.star-rating i:hover,
.star-rating i.active {
  color: #ffc107;
  transform: scale(1.1);
}

.star-rating i.active {
  text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* === NOTATION GÉNÉRALE === */

.overall-rating {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.overall-header h5 {
  margin: 0 0 16px 0;
  color: #2c3e50;
  font-weight: 600;
}

.overall-stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.overall-number {
  font-size: 28px;
  font-weight: 700;
  color: #fe696a;
}

.overall-star-display {
  display: flex;
  gap: 2px;
}

.overall-star-display i {
  font-size: 20px;
  color: #ffc107;
}

/* === SECTION COMMENTAIRES === */

.feedback-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.feedback-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 12px;
}

.feedback-textarea {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.3s ease;
  background-color: white;
}

.feedback-textarea:focus {
  border-color: #fe696a;
  box-shadow: 0 0 0 3px rgba(254, 105, 106, 0.1);
}

.character-count {
  text-align: right;
  margin-top: 8px;
  font-size: 12px;
  color: #6c757d;
}

.character-count .count {
  font-weight: 600;
}

/* === BOUTONS D'ACTION === */
.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid #e9ecef;
}

.cancel-review {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  border: 2px solid #6c757d;
  background: transparent;
  color: #6c757d;
  transition: all 0.3s ease;
}

.cancel-review:hover {
  background: #6c757d;
  color: white;
}

.submit-review {
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  color: white;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.submit-review:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(254, 105, 106, 0.3);
}

.submit-review:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* === ANIMATIONS === */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rating-category {
  animation: slideInUp 0.3s ease forwards;
}

.rating-category:nth-child(1) {
  animation-delay: 0.1s;
}

.rating-category:nth-child(2) {
  animation-delay: 0.2s;
}

.rating-category:nth-child(3) {
  animation-delay: 0.3s;
}

/* === RESPONSIVE === */

@media (max-width: 576px) {
  .modal-dialog {
    margin: 20px;
  }

  .review-modal-body {
    padding: 20px;
  }

  .rating-categories,
  .overall-rating,
  .feedback-section,
  .tip-section {
    padding: 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .btn {
    width: 100%;
  }

  .overall-stars {
    flex-direction: column;
    gap: 8px;
  }

  .category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .star-rating i {
    font-size: 20px;
  }

  .overall-number {
    font-size: 24px;
  }
}

/* === ÉTATS DE VALIDATION === */

.feedback-textarea.is-invalid {
  border-color: #dc3545;
}

.feedback-textarea.is-valid {
  border-color: #28a745;
}

.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 12px;
  margin-top: 4px;
}

.valid-feedback {
  display: block;
  color: #28a745;
  font-size: 12px;
  margin-top: 4px;
}

/* === EFFETS VISUELS ADDITIONNELS === */

.review-modal-content {
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.star-rating i {
  position: relative;
}

.star-rating i:before {
  transition: all 0.2s ease;
}

.star-rating:hover i {
  color: #ffc107;
}

.star-rating:hover i:hover~i {
  color: #ddd;
}

/* Améliorations des bordures */
.rating-categories,
.overall-rating,
.feedback-section,
.tip-section {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Focus states améliorés */
.star-rating i:focus {
  outline: 2px solid #fe696a;
  outline-offset: 2px;
  border-radius: 2px;
}

.tip-switch:focus-within {
  box-shadow: 0 0 0 3px rgba(254, 105, 106, 0.2);
}

/* ========================================
   FIX: Preloader bloqué sur mobile
   ======================================== */
@media screen and (max-width: 840px) {

  .exertio-loader-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  body {
    overflow: visible !important;
  }
}

/* =============================================
   Custom: Couleur de fond dropdown submenu-right
   ============================================== */

/* Dropdown submenu standard */
.sb-menu li>ul {
  background-color: #f8f9fa !important;
  /* Changer cette couleur */
}

/* Dropdown submenu-right spécifique */
.sb-menu li.submenu-right>ul {
  background-color: #f8f9fa !important;
  /* Changer cette couleur */
}

/* Version dark header */
.header-dark .sb-menu li>ul,
.header-dark .sb-menu li.submenu-right>ul {
  background-color: #1a1a1a !important;
  /* Changer cette couleur pour dark mode */
}

/* Sous-menus imbriqués */
.sb-menu li>ul ul {
  background-color: #f8f9fa !important;
  /* Changer cette couleur */
}

.header-dark .sb-menu li>ul ul {
  background-color: #1a1a1a !important;
}

/* ========================================
   PAGE COMO FUNCIONA - Styles Custom
   ======================================== */

.como-funciona-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.intro-section {
  text-align: center;
  margin-bottom: 80px;
}

.intro-section h1 {
  font-size: 3rem;
  color: #2c3e50 !important;
  margin-bottom: 20px;
  font-weight: 700;
}

.intro-section .subtitle {
  font-size: 1.2rem;
  color: #6c757d !important;
  margin-bottom: 50px;
}

.intro-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.intro-card {
  background: #fff !important;
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.intro-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.intro-card .icon {
  font-size: 3rem;
  color: #fe696a !important;
  margin-bottom: 20px;
}

.intro-card h3 {
  font-size: 1.8rem;
  color: #2c3e50 !important;
  margin-bottom: 15px;
  font-weight: 600;
}

.intro-card p {
  color: #6c757d !important;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.intro-card .btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: #fe696a !important;
  color: #fff !important;
  border: none !important;
}

.intro-card .btn-theme:hover {
  transform: scale(1.05);
  background-color: #ff8c9a !important;
  color: #fff !important;
}

.intro-card .btn-theme:focus,
.intro-card .btn-theme:active {
  background-color: #fe696a !important;
  color: #fff !important;
  box-shadow: 0 0 0 3px rgba(254, 105, 106, 0.3) !important;
}

.section-workflow {
  margin-bottom: 100px;
  scroll-margin-top: 100px;
}

.section-workflow .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-workflow h2 {
  font-size: 2.5rem;
  color: #2c3e50 !important;
  margin-bottom: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-workflow .section-subtitle {
  font-size: 1.1rem;
  color: #6c757d !important;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.step-card {
  background: #fff !important;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: #fe696a !important;
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.step-card:hover::before {
  transform: scaleY(1);
}

.step-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.step-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fe696a, #ff8c9a) !important;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-icon {
  font-size: 2rem;
  color: #fe696a !important;
  margin-right: 15px;
}

.step-content h3 {
  font-size: 1.4rem;
  color: #2c3e50 !important;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.step-content p {
  color: #6c757d !important;
  line-height: 1.6;
  font-size: 1rem;
}

.free-badge {
  display: inline-block;
  background: #27ae60 !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 10px;
}

/* Animation fade-in désactivée - affichage direct */
.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .como-funciona-container {
    padding: 40px 15px;
  }

  .intro-section h1 {
    font-size: 2rem;
  }

  .intro-section .subtitle {
    font-size: 1rem;
  }

  .intro-cards {
    grid-template-columns: 1fr;
  }

  .section-workflow h2 {
    font-size: 1.8rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .step-header {
    flex-direction: row;
    align-items: center;
  }

  .free-badge {
    display: block;
    margin: 10px 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .intro-section h1 {
    font-size: 1.5rem;
  }

  .intro-card {
    padding: 30px 20px;
  }

  .section-workflow h2 {
    font-size: 1.5rem;
  }

  .step-card {
    padding: 25px;
  }

  .step-header {
    flex-direction: column;
    /*  align-items: flex-start; */
  }

  .step-content {
    text-align: center;
  }

  .step-number {
    margin-bottom: 10px;
  }
}

/* Notification Badge Positioning */
.notification-click {
  position: relative;
}

/* Responsive adjustment for mobile */
@media (max-width: 991px) {
  .notification-click #notif-badge {
    margin-right: 42%;
    top: 5px;

  }
}

/* Status Filter Buttons */
.status-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.status-filters .status-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid transparent;
  background: #f5f5f5;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.status-filters .status-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* All Status */
.status-filters .status-btn.status-all {
  background: #e3f2fd;
  color: #1976d2;
  border-color: #1976d2;
}

.status-filters .status-btn.status-all.active {
  background: #1976d2;
  color: #fff;
}

/* Pending Status */
.status-filters .status-btn.status-pending {
  background: #fff3e0;
  color: #f57c00;
  border-color: #f57c00;
}

.status-filters .status-btn.status-pending.active {
  background: #f57c00;
  color: #fff;
}

/* Ongoing Status */
.status-filters .status-btn.status-ongoing {
  background: #e1f5fe;
  color: #0277bd;
  border-color: #0277bd;
}

.status-filters .status-btn.status-ongoing.active {
  background: #0277bd;
  color: #fff;
}

/* Completed Status */
.status-filters .status-btn.status-completed {
  background: #e8f5e9;
  color: #2e7d32;
  border-color: #2e7d32;
}

.status-filters .status-btn.status-completed.active {
  background: #2e7d32;
  color: #fff;
}

/* Cancelled Status */
.status-filters .status-btn.status-cancelled {
  background: #ffebee;
  color: #c62828;
  border-color: #c62828;
}

.status-filters .status-btn.status-cancelled.active {
  background: #c62828;
  color: #fff;
}

/* ========================================
   WPML Language Switcher - Header Menu
   ======================================== */

/* Masquer le texte de la langue (ex: "Español") */
.wpml-ls-native {
  display: none !important;
}

/* Agrandir et styliser le drapeau comme un bouton */
.wpml-ls-flag {
  width: 32px !important;
  height: 32px !important;
  border-radius: 15%;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

/* Effet hover sur le drapeau */
.wpml-ls-flag:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: var(--theme-primary-color, #e85f28);
}

/* Réajuster la position du dropdown de sélection de langue */
.wpml-ls-menu-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ajuster l'espacement du lien WPML dans le menu */
.wpml-ls-item-legacy-dropdown>a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
}

/* Corriger le dropdown si décalé */
.wpml-ls-sub-menu {
  margin-top: 8px !important;
}

/* Pour mobile : garder le même style */
@media (max-width: 991px) {
  .wpml-ls-flag {
    width: 28px !important;
    height: 28px !important;
  }
}