/* Variables */
:root {
  --primary-color: #c80000;
  --secondary-color: #2c2e43;
  --primary-light: #3d566e;
  --success-color: #27ae60;
  --warning-color: #f39c12;
  --light-color: #f8f9fa;
  --dark-color: #2c3e50;
  --gray-color: #95a5a6;
  --light-gray: #ecf0f1;
  --border-radius: 6px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  --transition: all 0.2s ease;
  --spacing-unit: 1.5rem;
}

/* Base Styles */
.depannage-container {
  /* max-width: 1000px; */
  margin: 0 auto;
  /* padding: var(--spacing-unit); */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Header */
.page-header {
  margin: 0 0 var(--spacing-unit) 0;
  text-align: center;
  padding: 2rem var(--spacing-unit);
  background: var(--secondary-color);
  color: white !important;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
}

.page-header h1 {
  margin: 0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.header-content {
  display: block;
  margin-bottom: 0;
}
.page-header .subtitle {
  color: white;
  font-size: 12px;
  margin: 0.5rem 0 0;
  opacity: 0.9;
  font-weight: 400;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: var(--spacing-unit);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #eee;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Card Header */
.card-header {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 0;
}

.header-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: transparent !important;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  margin-right: 5px;
}

.header-icon i {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.card-header h3 {
  margin: 0 0 0.25rem 0;
  font-size: 20px;
  color: var(--dark-color);
}

.card-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.card-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--dark-color);
}

.card-body {
  padding: 1.5rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
}

.required {
  color: var(--secondary-color);
  margin-left: 0.25rem;
}

.form-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--gray-color);
  font-style: italic;
}

.form-row {
  display: flex;
  gap: 1.5rem;
  margin: 0 -0.5rem;
  margin-bottom: 3.5rem !important;
}

.info-icon::before {
  content: none !important;
  margin-right: 0 !important;
}

.form-row .form-group {
  flex: 1;
  margin: 0 0.5rem;
  height: 45px;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.2s ease;
  background-color: #fff;
  color: var(--dark-color);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
  outline: none;
}

.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Input with icon */
.input-icon {
  position: relative;
  right: 0;
}

.input-icon i {
  position: absolute;
  left: 1rem;
  z-index: 999999;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-color);
}

.input-icon .form-control {
  padding-left: 2.5rem;
}



/* Textarea Wrapper */
.textarea-wrapper {
  position: relative;
}

.char-count {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.75rem;
  color: var(--gray-color);
  background: white;
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  padding: 0.75rem 1rem;
}

/* Select Wrapper */
.select-wrapper {
  position: relative;
}

/* .select-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    border-style: solid;
    border-width: 0.35rem 0.35rem 0 0.35rem;
    border-color: var(--gray-color) transparent transparent transparent;
} */

select.form-control {
  height: 48px;
  appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.5;
  letter-spacing: 0.3px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-danger {
  color: white !important;
}

.btn-danger:hover {
  background-color: #c0392b;
  border-color: #c0392b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.2);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  border-color: #6c757d;
}

.btn-secondary:hover {
  background-color: #5a6268;
  border-color: #545b62;
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}

.alert-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.alert i {
  font-size: 1.25rem;
  margin-top: 0.2rem;
}

.alert-warning {
  background-color: #fff8e6;
  border-color: #ffe8b3;
  color: #8a6d3b;
}

.alert-info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-unit);
}

.info-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.info-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--secondary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.info-content h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.info-content p {
  margin: 0;
  color: var(--gray-color);
  font-size: 0.9rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1050;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 1rem;
}

.modal.show {
  display: flex;
  opacity: 1;
}



.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h5 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --spacing-unit: 1.25rem;
  }

  .form-row {
    flex-direction: column;
    gap: 1rem;
    margin: 0;
  }

  .form-row .form-group {
    margin: 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .btn-lg {
    width: 100%;
    padding: 0.875rem 1.25rem;
  }

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

  
  
}
