/* PAGE PROFIL CUISINIER */

.chef-profil-main {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 90px 20px 40px;
}

.chef-profil-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 12px;
}

.page-header p {
  font-size: 16px;
  color: #666;
  margin: 0;
}

/* Grid Layout */
.profil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 24px;
}

.profil-section {
  display: flex;
  flex-direction: column;
}

.avatar-section {
  grid-column: 1 / -1;
}

.section-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a1a;
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #f8f9fa;
}

/* Section Avatar */
.avatar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.avatar-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 24px rgba(255, 138, 0, 0.3);
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.avatar-wrapper:hover .avatar-overlay {
  opacity: 1;
}

.btn-change-avatar {
  padding: 12px 24px;
  background: white;
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.btn-change-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.btn-remove-avatar {
  padding: 10px 20px;
  background: rgba(255, 59, 48, 0.9);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-remove-avatar:hover {
  background: rgba(255, 59, 48, 1);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.3);
}

.avatar-hint {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

/* Formulaires */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="time"],
.form-group input[type="password"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 138, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group small {
  display: block;
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.form-group input[type="checkbox"] {
  margin-right: 8px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

.form-actions {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f8f9fa;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 138, 0, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Disponibilité */
.availability-days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.day-checkbox {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.day-checkbox:hover {
  background: #e9ecef;
}

.day-checkbox input[type="checkbox"] {
  margin-right: 8px;
}

.day-checkbox input[type="checkbox"]:checked + span {
  font-weight: 700;
  color: var(--primary);
}

.day-checkbox span {
  flex: 1;
  font-size: 14px;
  color: #1a1a1a;
}

/* Options de livraison */
#delivery-options {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-top: 16px;
}

/* Alerts / Messages */
.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.alert-success {
  background: #d5f4e6;
  color: #00b894;
  border: 1px solid #00b894;
}

.alert-error {
  background: #ffe8e8;
  color: #d63031;
  border: 1px solid #d63031;
}

.alert-info {
  background: #e3f2fd;
  color: #0984e3;
  border: 1px solid #0984e3;
}

/* Loading state */
.form-loading {
  position: relative;
  opacity: 0.6;
  pointer-events: none;
}

.form-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: white;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10000;
  animation: toastSlideIn 0.3s ease;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast.success {
  border-left: 4px solid #00b894;
}

.toast.error {
  border-left: 4px solid #d63031;
}

.toast.info {
  border-left: 4px solid #0984e3;
}

.toast-icon {
  font-size: 24px;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
}

.toast-message {
  font-size: 13px;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .chef-profil-main {
    padding: 80px 10px 40px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .profil-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-card {
    padding: 20px;
  }

  .section-title {
    font-size: 20px;
  }

  .avatar-wrapper {
    width: 150px;
    height: 150px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .availability-days {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-actions {
    justify-content: stretch;
  }

  .btn-primary {
    width: 100%;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}
