@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", "Inter", sans-serif;
  background: #f8fafc;
  min-height: 100vh;
  color: #2d3748;
  overflow-x: hidden;
}

.background-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.08) 0%,
      transparent 50%
    );
  z-index: -1;
}

.section__list .points-forts .icon {
  font-weight: 600;
}

.wrapper__container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header Section */
#results__container .header {
  text-align: center;
}

#results__container .header h1 {
  font-size: 30px;
  font-weight: 700;
  color: #082b5e;
  font-family: "Poppins", sans-serif;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  margin-top: 30px;
}

#results__container .header p {
  color: #64748b;
  font-size: 1.1rem;
  font-weight: 400;
}

/* Score Hero Section */
.score-hero {
  background: #ffffff;
  border-radius: 1.5rem;
  /*padding: 3rem;*/
  text-align: center;
  margin-bottom: 2rem;
  /*border: 1px solid #e2e8f0;*/
  /*box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);*/
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.score-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.03) 0%,
    rgba(139, 92, 246, 0.03) 100%
  );
  pointer-events: none;
}

.score-content {
  /* position: relative; */
  z-index: 1;
  margin-bottom: 50px;
  /* box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, .1); */
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 35px;
  /* border: 1px solid red; */
  width: 880px;
  margin: 0 auto;
  margin-bottom: 50px;
  margin-top: 20px;
}

.main-score {
  font-size: 4.5rem;
  font-weight: 700;
  color: #2563eb !important;
  background-clip: text;
  margin-bottom: 0.5rem;
  font-family: "Poppins", sans-serif;
  text-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

@keyframes scoreGlow {
  from {
    filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.3));
  }

  to {
    filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6));
  }
}

.btn-show-correction {
  margin-top: 5px;
  background: #2980b9 !important;
}

.btn-show-correction:hover {
  background: #3498db;
}

.score-subtitle {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 0;
  font-weight: 500;
  font-weight: 600;
  text-transform: uppercase;
}

.btn-hide-correction {
  background: #e74c3c !important;
  border: 0 !important;
  margin-top: 5px !important;
}

.btn-hide-correction:hover {
  background: #c0392b;
  border: 0 !important;
}

/* Stats Section */
.stats-section {
  margin-bottom: 2rem;
}

.section-title {
  display: none;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1.5rem;
  align-items: center;
  gap: 0.75rem;
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title i {
  color: #3b82f6;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1) 0%,
    rgba(139, 92, 246, 0.1) 100%
  );
  padding: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.stats-grid {
  display: none !important;
  height: 250px;
  display: flex;
  justify-content: center;
  gap: 25px;
}

.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  width: 200px;
  height: 200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(139, 92, 246, 0.05) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #3b82f6;
}

.stat-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #1363df 0%, #1e40af 100%);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  transition: all 0.3s ease;
}

.stat-icon i {
  font-size: 1.25rem;
  font-weight: 600;
}

.stat-card:hover .stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.4);
}

.stat-title {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  position: relative;
  z-index: 1;
  line-height: 1.3;
}

.buttons__bloc {
  width: 100%;
  background: #061e43;
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  flex-wrap: wrap;
}

.main__wrapper {
  width: 100%;
  height: 100%;
  position: relative;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Poppins", sans-serif;
  position: relative;
  z-index: 1;
}

.stat-max {
  font-size: 0.7rem;
  color: #9ca3af;
  line-height: 5;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  margin-top: 1rem;
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(10px);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  border-radius: 3px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.progress-fill::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: progressShine 2s infinite;
}

@keyframes progressShine {
  0% {
    left: -100%;
  }

  100% {
    left: 100%;
  }
}

/* Tasks Section */
.tasks-section {
  margin-bottom: 2rem;
}

.task-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.task-button {
  border-color: white !important;
  padding: 6px 1.5rem;
  font-size: 14px;
  font-weight: 500;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  position: relative;
  overflow: hidden;
}

.task-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.1),
    transparent
  );
  transition: left 0.5s ease;
}

.task-button:hover::before {
  left: 100%;
}

.task-button.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb !important;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.25) !important;
}

.task-button:hover:not(.active) {
  background: #f8fafc;
  border-color: #3b82f6;
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.task-card {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  margin-top: 40px;
  padding-top: 40px;
  /* padding: 2rem; */
  transition: all 0.3s ease;
  /* box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); */
  display: none;
}

.task-card.active {
  display: block;
}

/*.task-card:hover {*/
/*    transform: translateY(-4px);*/
/*    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);*/
/*    border-color: #3b82f6;*/
/*}*/

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.task-title {
  font-size: 1rem;
  font-weight: 600;
  color: #2d3748;
}

.task-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-success {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.status-error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.status-warning {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.task-message {
  color: #6b7280;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  padding: 15px 20px;
}

.no-response-message {
  background: rgba(245, 158, 11, 0.05);
  border-left: 3px solid #f59e0b;
  color: #92400e;
}

/* Styles pour le contenu des tâches sans réponse */
.no-response-content {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(59, 130, 246, 0.02);
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.task-info-content {
  margin-bottom: 1.5rem;
}

.task-description,
.task-limits,
.task-methodology {
  margin-bottom: 1rem;
}

.task-description strong,
.task-limits strong,
.task-methodology strong {
  color: #1e293b;
  font-weight: 600;
}

.task-methodology ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.task-methodology li {
  margin-bottom: 0.25rem;
  color: #4b5563;
  line-height: 1.5;
}

.no-response-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(245, 158, 11, 0.05);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 0.5rem;
  color: #92400e;
  font-size: 0.9rem;
  line-height: 1.5;
}

.no-response-notice i {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #f59e0b;
}

.task-details {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 25px;
  margin-bottom: 65px;
}

.detail-item {
  background: rgba(0, 0, 0, 0.03);
  padding: 15px 25px;
  border-radius: 0.4rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 300px;
}

.detail-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 0.2rem;
  font-weight: 500;
  text-transform: uppercase;
}

.detail-value {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #2d3748 !important;
}

/* Correction Details */
.correction-details {
  /* background: rgba(0, 0, 0, 0.03); */
  /* border-radius: 0.5rem; */
  /*padding: 1rem;*/
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  margin-top: 40px;
  /*padding-top: 50px;*/
  padding: 50px 20px 0 20px;
}

.correction-subtitle {
  font-size: 0.9rem;
  font-weight: 600;
  color: #082b5e;
  margin-bottom: 15px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 35px;
}

.correction-subtitle > svg {
  color: #2c5aa0;
  width: 20px;
}

.correction-subtitle:first-child {
  margin-top: 0;
}

.task-message {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 30px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.15);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  justify-content: center;
  margin-bottom: 20px;
}

.error-item {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.1);
  border-radius: 0.4rem;
  padding: 20px;
  margin-bottom: 0.5rem;
}

.error-title {
  font-weight: 600;
  color: #ef4444;
  font-size: 0.85rem !important;
  margin-bottom: 0.2rem !important;
}
section__list.points-forts {
  padding-left: 0 !important;
}

.error-explanation {
  color: #004085;
  font-size: 14px;
  margin-bottom: 0.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.negative svg,
.positive svg {
  width: 18px;
  margin-top: 1px;
}
.section__list {
  list-style: none;
  padding-left: 20px;
}
.negative,
.negative .error-explanation {
  color: #e74c3c !important;
  flex: 1;
}
.section__list li::before {
  display: none;
}
.section__list li {
  display: flex;
  gap: 15px;
  align-items: start;
  flex-wrap: wrap;
}
.task-level {
  display: flex;
  align-items: center;
  gap: 5px;
}
.task-level svg {
  height: 15px;
}
.positive {
  color: #22c55e !important;
  padding-left: 0 !important;
}
.errors__card .error-explanation {
  margin-bottom: 0;
}

.positive .error-explanation {
  color: #22c55e !important;
  flex: 1;
}

.error-correction {
  color: #22c55e;
  font-size: 14px;
  font-weight: 500;
}
.points-forts,
.error-item {
  list-style: none;
}

.correction-text {
  /* background: rgba(255, 255, 255, 0.9); */
  background: white !important;
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);

  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 0.4rem;
  padding: 2.5rem;
  margin: 0.5rem 0;
  line-height: 1.6;
  color: #2d3748;
  font-size: 15px;
  font-weight: 400 !important;
}

/* Styles pour les documents de référence dans la proposition de correction */
.task-documents {
  background: rgba(34, 197, 94, 0.05) !important;
  border: 1px solid rgba(34, 197, 94, 0.1) !important;
  border-radius: 0.4rem;
  padding: 1.5rem;
  margin: 20px 0;
  transition: all 0.3s ease;
}

.task-documents .detail-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #22c55e;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 15px;
}

.document-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 0.5rem;
  padding: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1.5;
  color: #2d3748;
}

.document-item:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(34, 197, 94, 0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.1);
}

.document-item:last-child {
  margin-bottom: 0;
}

.points-forts,
.conseils {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.1);
  border-radius: 0.4rem;
  padding: 20px;
  margin: 0.5rem 0;
  padding-bottom: 5px;
}
.errors__card {
  padding-left: 25px;
  margin-bottom: 20px;
}

.points-forts ul,
.conseils ul {
  list-style: none;
  padding: 0;
}

#results__container {
  min-height: 100vh;
  display: block;
  background: white !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 20px 50px !important;
}

.points-forts li,
.conseils li {
  color: #22c55e !important;
  font-size: 14px;
  margin-bottom: 0.4rem;
  padding-left: 1.2rem;
  position: relative;
  font-weight: 500;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
}

.corrected__tasks.alert {
  display: block !important;
  color: orange;
  font-size: 12px;
  margin-top: -6px;
  font-weight: 400;
}

.points-forts li::before,
.conseils li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: bold;
  margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .correction-text,
  .correction-text {
    padding: 20px;
  }
  .correction-subtitle svg {
    display: none;
  }
  .task-methodology ul {
    margin-left: 0;
    padding-left: 20px;
  }
  .points-forts li {
    padding-left: 20px !important;
  }
  .negative svg,
  .positive svg {
    /* display: none; */
    margin-right: 8px;
    margin-top: 5px;
  }
  .section__list li {
    gap: 0;
    font-size: 15px;
    font-weight: 400;
  }
  .correction-subtitle {
    font-size: 15px;
  }
  .error-explanation {
    font-size: 15px;
    font-weight: 400;
  }
  .section__list {
    padding: 10px !important;
  }
  .btn-back-to-edit {
    background: white;
    color: #082b5e;
    font-size: 15px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-top: 20px;
    max-width: unset;
  }
  .section__list .icon {
    display: none;
  }
  .correction-actions {
    padding-left: 0!important;

  }

  .comment-link a {
    margin-bottom: 20px;
  }

  .error-title {
    line-height: 1.3rem;
  }
  .detail-label {
    flex-wrap: wrap;
    gap: 10px;
  }
  .wrapper__container {
    padding: 1rem;
  }

  #results__container {
    padding: 20px !important;
  }

  .score-hero {
    margin-bottom: 0;
  }

  .stats-grid {
    height: unset !important;
    flex-wrap: wrap;
  }

  .header h1 {
    font-size: 2rem;
  }

  .main-score {
    font-size: 3.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .task-details {
    flex-direction: column;
    align-items: center;
  }

  .score-content {
    width: unset !important;
    padding: 25px 0;
    margin:0 !important;
  }

  .level-badge {
    font-size: 0.85rem !important;
  }

  .task-button {
    padding: 6px 0.5rem !important;
    font-size: 13px !important;
  }

  .task-card {
    margin-top: 20px !important;
    padding-top: 20px !important;
  }

  .correction-details {
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    margin-top: 20px !important;
    padding: 20px 0 0 0 !important;
    margin-top: 40px !important;
  }

  #results__container .header {
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  #results__container .header h1 {
    font-size: 25px !important;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    height: unset !important;
    flex-wrap: wrap;
  }

  .score-hero {
    margin-bottom: 0;
  }

  .main-score {
    font-size: 3rem;
  }

  .header h1 {
    font-size: 1.75rem;
  }

  .task-header {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .task-button {
    flex: 1;
    text-align: center;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  opacity: 0;
  transform: translateX(-8px);
  animation: slideIn 0.4s ease-out forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loader de correction */
#correction-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.loader-content {
  text-align: center;
  max-width: 400px;
  padding: 2rem;
}

.loader-spinner {
  width: 64px;
  height: 64px;
  border: 4px solid #e2e8f0;
  border-top: 4px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loader-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.loader-subtext {
  font-size: 0.875rem;
  color: #64748b;
}

/* ===== POPUP DE CONFIRMATION DE CORRECTION ===== */
.correction-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.tcf-popup-icon {
  background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
  color: #d97706;
}

.correction-popup-container {
  background: #ffffff;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  opacity: 0;
  animation: popupFadeIn 0.3s ease-out forwards;
}

@keyframes popupFadeIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.correction-popup-header {
  padding: 1.5rem 1.5rem 0;
  text-align: center;
}

.correction-popup-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.popup-icon {
  color: #f59e0b;
  width: 24px;
  height: 24px;
}

.correction-popup-body {
  padding: 0 1.5rem;
  font-size: 15px;
  font-weight: 400;
  color: #111827;
  margin: 0 0 12px;
  margin-top: 8px;
  line-height: 1.5;
}

.popup-message {
  font-size: 1.04rem;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.5;
}
#open-whatsapp-btn svg {
  height: 18px;
  margin-top: -8px;
}
.popup-submessage {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.correction-popup-actions {
  /* padding: 0 1.5rem 1.5rem; */
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  padding: 10px 24px 24px;
}

.popup-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  min-width: 150px;
  /* padding: 0; */
  width: 100%;
  justify-content: center;
}

.popup-btn-cancel {
  /* background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0; */
  background: #EEF2FF;
  color: #374151;
  border: 1px solid #EEF2FF;
}

.popup-btn-cancel:hover {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.popup-btn-confirm {
  /* background: #3b82f6; */
  color: #ffffff;
  /* border: 1px solid #3b82f6; */
  background: #2563EB;
  border-color: #2563EB;
}

.popup-btn-confirm:hover {
  background: #2563eb;
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-icon {
  width: 16px;
  height: 16px;
}

/* Responsive pour la popup */
@media (max-width: 640px) {
  .correction-popup-container {
    margin: 1rem;
    max-width: none;
  }

  .correction-popup-actions {
    flex-direction: column;
  }

  .popup-btn {
    width: 100%;
  }
}
