/* ===================================
   Custom Site Styles with Brand Colors
   Primary: #348980, #54A48A
   Text: #000000
   =================================== */

/* Color Variables for Easy Maintenance */
:root {
  --primary-color: #348980;
  --primary-light: #54a48a;
  --text-color: #000000;
  --white: #ffffff;
  --light-gray: #f9fafb;
  --medium-gray: #e5e7eb;
  --dark-gray: #4b5563;
}

/* ===================================
   Activity Form Styles - Updated
   =================================== */

/* Form Container */
.activity-form-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Form Header */
.activity-form-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.activity-form-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.activity-form-subtitle {
  color: var(--dark-gray);
  font-size: 1rem;
}

/* Form Sections */
.form-section {
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(52, 137, 128, 0.1);
  transition: all 0.2s ease;
}

.add-variation-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.field-error svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

.file-input-display svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.alert svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* SVG icon sizes */
.form-section-title svg {
  width: 1.25rem;
  height: 1.25rem;
}

.form-section:hover {
  box-shadow: 0 4px 6px -1px rgba(52, 137, 128, 0.15),
    0 2px 4px -1px rgba(52, 137, 128, 0.1);
  border-color: var(--primary-light);
}

.form-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-section-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* Form Controls */
.form-control {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--medium-gray);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-color);
  background-color: var(--white);
  transition: all 0.15s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 137, 128, 0.1);
}

.form-control:hover:not(:focus) {
  border-color: var(--primary-light);
}

/* Labels */
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 15px;
  margin-top: 30px;
}

.form-label .required {
  color: #ef4444;
  margin-left: 0.25rem;
}

/* File Input */
.file-input-display {
  display: flex;
  align-items: center;
  padding: 0.75rem;
  border: 2px dashed var(--medium-gray);
  border-radius: 0.5rem;
  background-color: var(--light-gray);
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-input-display:hover {
  border-color: var(--primary-light);
  background-color: #f0f8f7;
}

.file-input-display.has-file {
  border-style: solid;
  border-color: var(--primary-color);
  background-color: rgba(52, 137, 128, 0.05);
}

.field-error {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.field-error svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}
/* Activity Fields Preview */
#activity-fields-preview {
  background-color: rgba(52, 137, 128, 0.05);
  border: 1px solid var(--primary-light);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

#activity-fields-preview h3 {
  color: var(--primary-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.field-preview-item {
  background: var(--white);
  padding: 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(52, 137, 128, 0.2);
  display: flex;
  align-items: start;
  gap: 0.5rem;
}

.field-preview-icon {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--primary-color);
  margin-top: 0.125rem;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #2d7a72;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(52, 137, 128, 0.3);
}

.btn-secondary {
  background-color: var(--primary-light);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #4a957f;
}

.btn-success {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-success:hover {
  background-color: #2d7a72;
}

/* Activity Type Cards */
.activity-type-card {
  transition: all 0.2s ease;
  border: 1px solid var(--medium-gray);
  background-color: var(--white);
}

.activity-type-card:hover {
  background-color: rgba(52, 137, 128, 0.05);
  border-color: var(--primary-color);
}

.activity-type-card.selected {
  background-color: rgba(52, 137, 128, 0.1);
  border-color: var(--primary-color);
  box-shadow: 0 0 0 1px var(--primary-color);
}

/* Variations Section */
.variation-group {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: 0.375rem;
  position: relative;
  transition: all 0.2s ease;
}

.variation-group:hover {
  border-color: var(--primary-light);
  box-shadow: 0 1px 3px 0 rgba(52, 137, 128, 0.1);
}

.add-variation-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px dashed var(--primary-color);
  border-radius: 0.375rem;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.add-variation-btn:hover {
  background-color: rgba(52, 137, 128, 0.05);
  border-style: solid;
}

/* ===================================
   Updated Background Colors
   =================================== */
.bg-blue-100 {
  background-color: rgba(52, 137, 128, 0.1);
}

.bg-blue-500 {
  background-color: var(--primary-color);
}

.bg-blue-600 {
  background-color: #2d7a72;
}

.bg-green-500 {
  background-color: var(--primary-light);
}

.bg-green-600 {
  background-color: #4a957f;
}

/* ===================================
   Updated Text Colors
   =================================== */
.text-blue-800 {
  color: var(--primary-color);
}

.text-green-600 {
  color: var(--primary-light);
}

.text-green-800 {
  color: var(--primary-color);
}

.text-gray-900 {
  color: var(--text-color);
}

/* ===================================
   Updated Border Colors
   =================================== */
.border-blue-500 {
  border-color: var(--primary-color);
}

.border-green {
  border-color: var(--primary-light);
  background-color: var(--primary-light);
}

/* ===================================
   Activity Table Styles - Updated
   =================================== */
.activity-table-header {
  background-color: rgba(52, 137, 128, 0.05);
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-color);
}

.activity-table-row:hover {
  background-color: rgba(52, 137, 128, 0.03);
}

.activity-details-card {
  background-color: rgba(52, 137, 128, 0.05);
  border-left: 4px solid var(--primary-color);
}

/* ===================================
   Select2 Custom Styles - Enhanced UX
   =================================== */

/* Base container styling */
.select2-container {
  width: 100% !important;
  font-family: inherit;
}

/* Selection box styling */
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
  border: 1px solid var(--medium-gray);
  border-radius: 0.375rem;
  background-color: var(--white);
  transition: all 0.15s ease;
  min-height: 42px;
  padding: 0;
}

.select2-container--default .select2-selection--single {
  height: 42px;
  line-height: 40px;
}

.select2-container--default .select2-selection--multiple {
  min-height: 42px;
  padding: 0.25rem 0.5rem;
}

/* Garder le champ (et les choix déjà ajoutés) visible au-dessus de la liste
   déroulante quand elle est ouverte, plutôt que d'être recouvert par elle. */
.select2-container--open .select2-selection--single,
.select2-container--open .select2-selection--multiple {
  position: relative;
  z-index: 10000;
}

/* Focus and hover states */
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(52, 137, 128, 0.1) !important;
  outline: none !important;
}

.select2-container--default:not(.select2-container--focus) .select2-selection--single:hover,
.select2-container--default:not(.select2-container--focus) .select2-selection--multiple:hover {
  border-color: var(--primary-light);
}

/* Dropdown arrow styling */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 40px;
  top: 1px;
  right: 8px;
  width: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--dark-gray) transparent transparent transparent;
  margin-top: -1px;
  transition: transform 0.2s ease;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  transform: rotate(180deg);
  border-color: var(--primary-color) transparent transparent transparent;
}

/* Selected value text styling */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--text-color);
  line-height: 40px;
  padding-left: 12px;
  padding-right: 32px;
  font-size: 0.875rem;
}

/* Placeholder styling */
.select2-container--default .select2-selection--single .select2-selection__placeholder,
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
  color: var(--dark-gray);
  font-style: italic;
  opacity: 0.7;
}

/* Multiple selection choices (tags) */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: var(--primary-color);
  border: 1px solid #2d7a72;
  color: var(--white);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  margin: 0.125rem 0.125rem 0.125rem 0;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.15s ease;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Select2 4.1 enveloppe le texte de chaque étiquette dans un span dédié
   (.select2-selection__choice__display) qui n'héritait pas toujours la couleur
   du texte ci-dessus, ce qui rendait le texte peu lisible (blanc sur fond pâle).
   On force explicitement un texte foncé et lisible ici. */
.select2-container--default .select2-selection--multiple .select2-selection__choice,
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  color: #1f2937 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
  background-color: #2d7a72;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(52, 137, 128, 0.2);
}

/* Remove button for multiple choices */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  color: rgba(31, 41, 55, 0.6);
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  margin-right: 0.25rem;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #1f2937;
  background-color: rgba(31, 41, 55, 0.1);
  border-radius: 50%;
  width: 16px;
  height: 16px;
  line-height: 14px;
  text-align: center;
}

/* Search input in multiple mode */
.select2-container--default .select2-search--inline .select2-search__field {
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: var(--text-color);
  font-size: 0.875rem;
  padding: 0;
  margin: 0;
  min-width: 120px;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
  color: var(--dark-gray);
  opacity: 0.7;
}

/* Dropdown styling */
.select2-dropdown {
  background-color: var(--white);
  border: 1px solid var(--primary-light);
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(52, 137, 128, 0.1), 0 2px 4px -1px rgba(52, 137, 128, 0.06);
  z-index: 9999;
  /* Espace pour que la liste ne commence pas collée au champ (dont les choix déjà
     ajoutés peuvent prendre plusieurs lignes) — évite que le premier choix de la
     liste soit caché derrière le champ. */
  margin-top: 32px;
}

.select2-dropdown--above {
  margin-top: 0;
  margin-bottom: 32px;
}

/* Search box in dropdown */
.select2-search--dropdown {
  padding: 0.5rem;
  background-color: var(--light-gray);
  border-bottom: 1px solid var(--medium-gray);
}

.select2-search--dropdown .select2-search__field {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--medium-gray);
  border-radius: 0.25rem;
  background-color: var(--white);
  color: var(--text-color);
  font-size: 0.875rem;
  width: 100%;
  box-sizing: border-box;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(52, 137, 128, 0.1);
}

/* Dropdown results */
.select2-results {
  max-height: 200px;
  overflow-y: auto;
  padding: 0;
}

.select2-results__options {
  max-height: 200px;
  overflow-y: auto;
}

.select2-results__option {
  padding: 0.75rem 1rem;
  color: var(--text-color);
  font-size: 0.875rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(52, 137, 128, 0.05);
  transition: all 0.15s ease;
  position: relative;
}

.select2-results__option:last-child {
  border-bottom: none;
}

.select2-results__option--highlighted {
  background-color: rgba(52, 137, 128, 0.08);
  color: var(--primary-color);
  font-weight: 500;
}

.select2-results__option--selected {
  background-color: rgba(52, 137, 128, 0.12);
  color: var(--primary-color);
  font-weight: 600;
}

.select2-results__option--selected::after {
  content: '✓';
  position: absolute;
  right: 1rem;
  color: var(--primary-color);
  font-weight: bold;
}

/* Loading state */
.select2-results__option--loading-more,
.select2-results__option--loading-all {
  text-align: center;
  color: var(--dark-gray);
  font-style: italic;
  padding: 1rem;
}

/* No results message */
.select2-results__message {
  color: var(--dark-gray);
  cursor: default;
  padding: 1rem;
  text-align: center;
  font-style: italic;
}

/* Enhanced styling for Niveaux and Groupes specifically */
#niveaux-select + .select2-container,
#groupe-select + .select2-container {
  margin-bottom: 0.5rem;
}

/* Custom styling for niveau options with visual hierarchy */
.select2-results__option[data-niveau-type] {
  padding-left: 1.5rem;
  position: relative;
}

.select2-results__option[data-niveau-type]::before {
  content: '📚';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
}

/* Custom styling for groupe options */
.select2-results__option[data-groupe-type] {
  padding-left: 1.5rem;
  position: relative;
}

.select2-results__option[data-groupe-type]::before {
  content: '👥';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
}

/* Loading state for Select2 */
.select2-container--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 30px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--medium-gray);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  z-index: 10;
}

/* Enhanced UX interactions */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  animation: slideInUp 0.2s ease;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Visual feedback for required fields */
.niveau-group.required .select2-container .select2-selection,
.groupe-group.required .select2-container .select2-selection {
  border-left: 3px solid #ef4444;
}

.niveau-group.required .select2-container .select2-selection::after,
.groupe-group.required .select2-container .select2-selection::after {
  content: '*';
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  color: #ef4444;
  font-weight: bold;
  pointer-events: none;
  z-index: 1;
}

/* Success state for validated fields */
.niveau-group.valid .select2-container .select2-selection,
.groupe-group.valid .select2-container .select2-selection {
  border-left: 3px solid var(--primary-color);
  background-color: rgba(52, 137, 128, 0.02);
}

/* Enhanced dropdown animations */
.select2-dropdown {
  animation: dropdownFadeIn 0.15s ease-out;
  transform-origin: top;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: scaleY(0.9) translateY(-5px);
  }
  to {
    opacity: 1;
    transform: scaleY(1) translateY(0);
  }
}

/* Better visual hierarchy for grouped options */
.select2-results__option--group {
  background-color: rgba(52, 137, 128, 0.05);
  font-weight: 600;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--primary-light);
}

/* Improved focus indicators for accessibility */
.select2-container--default .select2-selection:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.select2-results__option:focus-visible {
  background-color: rgba(52, 137, 128, 0.12);
  outline: none;
}

/* Enhanced loading state */
.select2-container--loading .select2-selection {
  position: relative;
  pointer-events: none;
}

.select2-container--loading .select2-selection::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: inherit;
  z-index: 5;
}

/* Tooltip-like helper text for options */
.select2-results__option[title]:hover::after {
  content: attr(title);
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-color);
  color: var(--white);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

/* Improved empty state messages */
.select2-results__message {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--dark-gray);
}

.select2-results__message::before {
  content: '🔍';
  display: block;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

/* Enhanced multi-select counter */
.select2-container--default .select2-selection--multiple::after {
  content: attr(data-selection-count) ' sélectionné(s)';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  color: var(--dark-gray);
  pointer-events: none;
  background: var(--white);
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  display: none;
}

.select2-container--default .select2-selection--multiple[data-selection-count]:not([data-selection-count="0"])::after {
  display: block;
}

/* Responsive improvements */
@media (max-width: 768px) {
  .select2-container--default .select2-selection--multiple .select2-selection__choice {
    max-width: 150px;
    font-size: 0.75rem;
  }

  .select2-results__option {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
  }

  .select2-dropdown {
    border-radius: 0.25rem;
  }

  /* Hide tooltips on mobile */
  .select2-results__option[title]:hover::after {
    display: none;
  }

  /* Larger touch targets */
  .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    width: 24px;
    height: 24px;
    line-height: 22px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .select2-container--default .select2-selection {
    border-width: 2px;
  }

  .select2-results__option--highlighted {
    background-color: var(--text-color);
    color: var(--white);
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .select2-container--default .select2-selection--multiple .select2-selection__choice,
  .select2-dropdown,
  .select2-container--default .select2-selection--single .select2-selection__arrow b {
    animation: none;
    transition: none;
  }
}

/* ===================================
   Alerts - Updated
   =================================== */
.alert-info {
  background-color: rgba(52, 137, 128, 0.1);
  border: 1px solid var(--primary-light);
  color: var(--primary-color);
}

.alert-success {
  background-color: rgba(84, 164, 138, 0.1);
  border: 1px solid var(--primary-light);
  color: var(--primary-color);
}

/* ===================================
   Hover States - Updated
   =================================== */
.hover\:bg-blue-700:hover {
  background-color: #2d7a72;
}

.hover\:bg-green-700:hover {
  background-color: #4a957f;
}

/* ===================================
   Focus States - Updated
   =================================== */
.focus\:ring-blue-500:focus {
  box-shadow: 0 0 0 2px rgba(52, 137, 128, 0.5);
}

.focus\:ring-green-500:focus {
  box-shadow: 0 0 0 2px rgba(84, 164, 138, 0.5);
}

.focus\:border-blue-500:focus {
  border-color: var(--primary-color);
}

/* ===================================
   Custom Components
   =================================== */

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--white);
}

.status-badge.approved {
  background-color: var(--primary-color);
}

.status-badge.pending {
  background-color: var(--primary-light);
}

/* Navigation */
.nav-link {
  color: var(--text-color);
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
}

.nav-link:hover {
  background-color: rgba(52, 137, 128, 0.1);
  color: var(--primary-color);
}

.nav-link.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Cards */
.card {
  background-color: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(52, 137, 128, 0.1);
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 6px -1px rgba(52, 137, 128, 0.15);
  border-color: var(--primary-light);
}

.card-header {
  background-color: rgba(52, 137, 128, 0.05);
  border-bottom: 1px solid var(--primary-light);
  padding: 1rem;
  border-radius: 0.5rem 0.5rem 0 0;
}

.card-title {
  color: var(--text-color);
  font-weight: 600;
  margin: 0;
}

/* ===================================
   WooCommerce Product Styles
   =================================== */

/* Product Cards */
/*.woocommerce .product,*/
.product-card {
  background-color: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  color: var(--text-color);
}

/*.woocommerce .product:hover,*/
.product-card:hover {
  box-shadow: 0 4px 6px -1px rgba(52, 137, 128, 0.15);
  border-color: var(--primary-light);
}

/* Product Titles */
.woocommerce .woocommerce-loop-product__title,
.product-title {
/*  color: var(--text-color) !important;*/
  font-weight: 600;
}

/* Product Prices */
.woocommerce .price,
.product-price {
  color: var(--primary-color) !important;
  font-weight: 600;
}

/* Add to Cart Buttons */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.add-to-cart-btn {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 0.375rem !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 500 !important;
  transition: all 0.15s ease !important;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.add-to-cart-btn:hover {
  background-color: #2d7a72 !important;
  transform: translateY(-1px);
}

/* Product Categories */
.woocommerce .product-category a,
.product-category-link {
  color: var(--text-color);
  text-decoration: none;
}

.woocommerce .product-category a:hover,
.product-category-link:hover {
  color: var(--primary-color);
}

/* ===================================
   WooCommerce Cart Styles - Enhanced Remove Button
   =================================== */

/* Cart Remove Button - Replace × symbol with styled button */
.woocommerce-cart-form .remove,
.woocommerce .cart-remove .remove,
.woocommerce table.cart .remove,
.woocommerce-page table.cart .remove,
.cart_item .remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #dc2626 !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 0.375rem !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 1.75rem !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  min-width: 60px !important;
  height: 32px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px 0 rgba(220, 38, 38, 0.1) !important;
}

/* Hide the original × symbol */
/* .woocommerce-cart-form .remove,
.woocommerce .cart-remove .remove,
.woocommerce table.cart .remove,
.woocommerce-page table.cart .remove,
.cart_item .remove {
  font-size: 0 !important; /* Hide original text 
  text-indent: -9999px !important;
} */

/* Hover effects */
.woocommerce-cart-form .remove:hover,
.woocommerce .cart-remove .remove:hover,
.woocommerce table.cart .remove:hover,
.woocommerce-page table.cart .remove:hover,
.cart_item .remove:hover {
  background-color: #b91c1c !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.2) !important;
}

/* Focus state for accessibility */
.woocommerce-cart-form .remove:focus,
.woocommerce .cart-remove .remove:focus,
.woocommerce table.cart .remove:focus,
.woocommerce-page table.cart .remove:focus,
.cart_item .remove:focus {
  outline: 2px solid #dc2626 !important;
  outline-offset: 2px !important;
}

/* Active state */
.woocommerce-cart-form .remove:active,
.woocommerce .cart-remove .remove:active,
.woocommerce table.cart .remove:active,
.woocommerce-page table.cart .remove:active,
.cart_item .remove:active {
  transform: translateY(0) !important;
  box-shadow: 0 1px 2px 0 rgba(220, 38, 38, 0.1) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .woocommerce-cart-form .remove,
  .woocommerce .cart-remove .remove,
  .woocommerce table.cart .remove,
  .woocommerce-page table.cart .remove,
  .cart_item .remove {
    min-width: 50px !important;
    height: 28px !important;
    font-size: 0.7rem !important;
    padding: 0.375rem 0.5rem !important;
  }

  .woocommerce-cart-form .remove::before,
  .woocommerce .cart-remove .remove::before,
  .woocommerce table.cart .remove::before,
  .woocommerce-page table.cart .remove::before,
  .cart_item .remove::before {
    content: 'Suppr.' !important; /* Shortened text for mobile */
    font-size: 0.7rem !important;
  }
}

/* Alternative styling for mini cart remove buttons */
.woocommerce .widget_shopping_cart .remove,
.woocommerce.widget_shopping_cart .remove {
  background-color: #dc2626 !important;
  color: var(--white) !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  line-height: 22px !important;
  text-align: center !important;
  font-size: 0.8rem !important;
  font-weight: bold !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.woocommerce .widget_shopping_cart .remove::before,
.woocommerce.widget_shopping_cart .remove::before {
  content: '×' !important; /* Keep × symbol for mini cart due to space constraints */
}

.woocommerce .widget_shopping_cart .remove:hover,
.woocommerce.widget_shopping_cart .remove:hover {
  background-color: #b91c1c !important;
  transform: scale(1.1) !important;
}

/* ===================================
   WooCommerce Postal Code Validation Styles
   =================================== */

/* Postal code field styling */
#billing_postcode {
  text-transform: uppercase !important;
  font-family: 'Courier New', monospace !important;
  letter-spacing: 0.5px !important;
}

/* Valid postal code state */
#billing_postcode.woocommerce-validated {
  border-color: var(--primary-color) !important;
  background-color: rgba(52, 137, 128, 0.05) !important;
  box-shadow: 0 0 0 2px rgba(52, 137, 128, 0.1) !important;
}

/* Invalid postal code state */
#billing_postcode.woocommerce-invalid {
  border-color: #dc2626 !important;
  background-color: rgba(220, 38, 38, 0.05) !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.1) !important;
}

/* Postal code error message */
.postal-code-error {
  color: #dc2626 !important;
  font-size: 0.875rem !important;
  margin-top: 0.25rem !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.25rem !important;
  animation: slideInDown 0.3s ease-out !important;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Postal code helper text */
.postal-code-helper {
  color: #6b7280 !important;
  font-size: 0.8rem !important;
  margin-top: 0.25rem !important;
  display: block !important;
  font-style: italic !important;
}

/* Enhanced placeholder styling for postal code */
#billing_postcode::placeholder {
  color: #9ca3af !important;
  font-style: italic !important;
  opacity: 0.7 !important;
}

/* Focus state enhancement */
#billing_postcode:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(52, 137, 128, 0.1) !important;
  outline: none !important;
}

/* Loading state for postal code validation */
.postal-code-validating {
  position: relative;
}

.postal-code-validating::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Success checkmark for validated postal code */
#billing_postcode.woocommerce-validated {
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23348980" viewBox="0 0 16 16"><path d="M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z"/></svg>') !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 10px) center !important;
  background-size: 16px 16px !important;
  padding-right: 35px !important;
}

/* Country field enhancement for Canada */
#billing_country option[value="CA"] {
  font-weight: 600 !important;
  color: var(--primary-color) !important;
}

/* Responsive adjustments for postal code field */
@media (max-width: 768px) {
  .postal-code-error {
    font-size: 0.8rem !important;
  }

  .postal-code-helper {
    font-size: 0.75rem !important;
  }

  #billing_postcode {
    font-size: 16px !important; /* Prevent zoom on iOS */
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  #billing_postcode.woocommerce-validated {
    border-width: 3px !important;
  }

  #billing_postcode.woocommerce-invalid {
    border-width: 3px !important;
  }

  .postal-code-error {
    font-weight: 600 !important;
  }
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
  .postal-code-helper {
    color: #9ca3af !important;
  }

  #billing_postcode::placeholder {
    color: #6b7280 !important;
  }
}

/* Print styles - hide validation elements */
@media print {
  .postal-code-error,
  .postal-code-helper {
    display: none !important;
  }
}

/* ===================================
   WooCommerce Checkout - Remove Additional Information
   =================================== */

/* Hide Additional Information section and Order Notes */
.woocommerce-checkout .woocommerce-additional-fields,
.woocommerce-checkout .woocommerce-checkout-review-order-additional-fields,
.woocommerce-checkout h3#order_review_heading + .woocommerce-additional-fields,
.woocommerce-checkout .checkout-additional-fields,
.woocommerce-checkout #additional-information,
.woocommerce-checkout .additional-fields,
.woocommerce-checkout .order-notes,
.woocommerce-checkout #order_comments_field,
.woocommerce-checkout .woocommerce-form-row--wide.notes,
.woocommerce-checkout textarea#order_comments,
.woocommerce-checkout .form-row.notes,
.woocommerce-checkout .woocommerce-checkout-payment .form-row.notes,
.woocommerce-checkout .woocommerce-additional-fields h3,
.woocommerce-checkout .col2-set .col-2 .woocommerce-additional-fields {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Hide Additional Information headings */
.woocommerce-checkout h2:contains("Informations complémentaires"),
.woocommerce-checkout h3:contains("Informations complémentaires"),
.woocommerce-checkout h2:contains("Additional Information"),
.woocommerce-checkout h3:contains("Additional Information"),
.woocommerce-checkout .woocommerce-billing-fields h3:contains("Informations complémentaires"),
.woocommerce-checkout .step-title:contains("Informations complémentaires") {
  display: none !important;
}

/* Remove any spacing that might remain */
.woocommerce-checkout .col2-set .col-2:empty {
  display: none !important;
}

/* Ensure the checkout layout remains clean without the additional fields */
.woocommerce-checkout .col2-set .col-1 {
  width: 100% !important;
}

/* Hide any remaining textarea that might be order notes */
.woocommerce-checkout textarea[name="order_comments"],
.woocommerce-checkout input[name="order_comments"],
.woocommerce-checkout .notes textarea,
.woocommerce-checkout .additional-fields textarea {
  display: none !important;
}

/* Hide labels associated with order notes */
.woocommerce-checkout label[for="order_comments"],
.woocommerce-checkout .notes label {
  display: none !important;
}

/* Account/My Account page - also remove order notes if they appear there */
.woocommerce-account .woocommerce-form-row.notes,
.woocommerce-account #order_comments_field,
.woocommerce-account textarea#order_comments {
  display: none !important;
}

/* Admin order page - reduce visibility of order notes (but keep functionality) */
.post-type-shop_order #order_comments,
.post-type-shop_order .order_notes {
  opacity: 0.3;
  pointer-events: none;
}

.post-type-shop_order #order_comments:hover,
.post-type-shop_order .order_notes:hover {
  opacity: 1;
  pointer-events: auto;
}

.shake {
  animation: shake 0.5s ease-in-out;
}

.variation-remove-blocked {
  grid-column: 1 / -1;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 0.35rem 0.6rem;
  transition: opacity 0.3s ease;
}

.variation-remove-blocked.fade-out {
  opacity: 0;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.changed {
  background-color: #fef3c7 !important;
  border-color: var(--primary-light) !important;
}

.loading::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .activity-form-container {
    padding: 1rem 0.5rem;
  }

  .form-section {
    padding: 1rem;
  }

  .variation-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================
   Responsive Enhancements
   =================================== */
@media (max-width: 768px) {
  .activity-form-container {
    padding: 1rem 0.5rem;
  }

  .variation-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================
   Accessibility Improvements
   =================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus indicators */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Variations Section */
.variations-section {
  background: #f9fafb;
  border-radius: 0.5rem;
  padding: 1rem;
}

.variation-group {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  position: relative;
  transition: all 0.2s ease;
}

.variation-group:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.variation-stock-container {
  display: flex;
  gap: 0.5rem;
}

.remove-variation {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ef4444;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 1.25rem;
}

.remove-variation:hover {
  background-color: #dc2626;
  transform: scale(1.05);
}

.add-variation-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #3b82f6;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px dashed #3b82f6;
  border-radius: 0.375rem;
  background-color: transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.add-variation-btn svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.add-variation-btn:hover {
  background-color: #eff6ff;
  border-style: solid;
}

/* Alerts and Messages */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: start;
  gap: 0.75rem;
}

.alert-icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

.alert svg {
  width: 1.25rem;
  height: 1.25rem;
}

.alert-info {
  background-color: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.alert-success {
  background-color: #d1fae5;
  border: 1px solid #86efac;
  color: #065f46;
}

.alert-error {
  background-color: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.alert-warning {
  background-color: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

/* Field Validation States */
.form-control.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-control.success {
  border-color: #10b981;
  background-color: #f0fdf4;
}

.form-control.warning {
  border-color: #f59e0b;
  background-color: #fffbeb;
}

.field-error {
  color: #dc2626;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.field-error svg {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid #e5e7eb;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .activity-form-container {
    padding: 1rem 0.5rem;
  }

  .form-section {
    padding: 1rem;
  }

  .variation-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltiptext {
  visibility: hidden;
  background-color: #1f2937;
  color: #fff;
  text-align: center;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.75rem;
  white-space: nowrap;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Progressive Enhancement */
.js-enhanced {
  display: none;
}

.no-js .js-enhanced {
  display: block;
}

/* Print Styles */
@media print {
  .form-actions,
  .remove-variation,
  .add-variation-btn {
    display: none;
  }

  .form-section {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #000;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .form-control {
    border-width: 2px;
  }

  .btn {
    border: 2px solid var(--text-color);
  }
}

/* Questions personnalisées */
.question-group {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.question-group:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.question-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.remove-question {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.remove-question:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: var(--primary-color);
}

.remove-question svg {
  width: 1rem;
  height: 1rem;
}

.question-fields {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.question-options {
  transition: all 0.3s ease;
}

.add-question-btn {
  background: #fff;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.add-question-btn:hover {
  border-color: #3b82f6;
  color: #3b82f6;
  background: #eff6ff;
}

.add-question-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  cursor: pointer;
}

.checkbox-label {
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.activity-pricing-choice {
  margin-bottom: 1.25rem;
}

.activity-pricing-choice .checkbox-group {
  margin-bottom: 0.75rem;
}

.activity-pricing-choice .checkbox-group:last-child {
  margin-bottom: 0;
}

/* Animation pour l'ajout/suppression */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-group.fade-in {
  animation: slideDown 0.3s ease-out;
}

.question-group.fade-out {
  animation: slideDown 0.3s ease-out reverse;
}

/* ===================================
   Draft Tip Alert
   =================================== */

/* Draft tip alert */
.alert-tip {
  background: linear-gradient(135deg, rgba(52, 137, 128, 0.08) 0%, rgba(149, 207, 188, 0.12) 100%);
  border: 1px solid rgba(52, 137, 128, 0.2);
  border-left: 4px solid var(--primary-color);
  color: var(--primary-color);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: 0 2px 8px rgba(52, 137, 128, 0.08);
  position: relative;
  overflow: hidden;
}

.alert-tip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color) 0%, rgba(149, 207, 188, 0.6) 100%);
}

.alert-tip .alert-icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
  color: var(--primary-color);
}

.alert-tip .alert-content {
  flex: 1;
  line-height: 1.5;
}

.alert-tip .alert-content strong {
  color: var(--primary-color);
  font-weight: 600;
}

.alert-tip .alert-content small {
  color: rgba(52, 137, 128, 0.8);
  font-size: 0.875rem;
  opacity: 0.9;
  margin-top: 0.25rem;
  display: block;
}

/* Fade in animation */
.alert-tip.fade-in {
  animation: fadeInSlide 0.5s ease-out;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .alert-tip {
    padding: 0.875rem 1rem;
    gap: 0.5rem;
  }

  .alert-tip .alert-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .alert-tip .alert-content small {
    font-size: 0.8125rem;
  }
}

/* ===================================
   Bulk Action Buttons for Groupes Selection
   =================================== */

.groupes-bulk-actions,
.niveaux-bulk-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn-bulk-select,
.btn-bulk-deselect {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s ease;
  background-color: var(--white);
  white-space: nowrap;
}

.btn-bulk-select {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-bulk-select:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(52, 137, 128, 0.2);
}

.btn-bulk-select svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn-bulk-deselect {
  border-color: var(--dark-gray);
  color: var(--dark-gray);
}

.btn-bulk-deselect:hover {
  background-color: var(--dark-gray);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(75, 85, 99, 0.2);
}

.btn-bulk-deselect svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Active state */
.btn-bulk-select:active,
.btn-bulk-deselect:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Focus state for accessibility */
.btn-bulk-select:focus,
.btn-bulk-deselect:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading state */
.btn-bulk-select.loading,
.btn-bulk-deselect.loading {
  pointer-events: none;
  opacity: 0.6;
  position: relative;
}

.btn-bulk-select.loading::after,
.btn-bulk-deselect.loading::after {
  content: '';
  position: absolute;
  right: 0.5rem;
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
  .groupes-bulk-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-bulk-select,
  .btn-bulk-deselect {
    width: 100%;
    justify-content: center;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .btn-bulk-select,
  .btn-bulk-deselect {
    border-width: 2px;
    font-weight: 600;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .btn-bulk-select,
  .btn-bulk-deselect {
    transition: none;
  }

  .btn-bulk-select:hover,
  .btn-bulk-deselect:hover {
    transform: none;
  }
}
