/* ==========================================
   STYLE SNDI - ORANGE PRINCIPAL
   ========================================== */

:root {
  /* Couleurs principales SNDI - ORANGE */
  --sndi-orange: #FF9900;
  --sndi-orange-dark: #E68A00;
  --sndi-orange-light: #FFB84D;
  
  /* Couleurs secondaires */
  --sndi-green: #009B4D;
  --sndi-green-dark: #007A3D;
  --sndi-blue: #0066CC;
  --sndi-yellow: #FFCC00;
  
  /* Couleurs neutres */
  --gray-light: #F5F7FA;
  --gray-medium: #E1E8ED;
  --gray-dark: #657786;
  --white: #FFFFFF;
}

/* ==========================================
   GÉNÉRAL
   ========================================== */
body {
  background-color: var(--gray-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* ==========================================
   HEADER AVEC LOGOS
   ========================================== */
.header-logos {
  background: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-logos .logo-left img,
.header-logos .logo-right img {
  max-height: 80px;
  width: auto;
}

.header-title {
  text-align: center;
  flex: 1;
}

.header-title h2,
.header-title h3,
.header-title h4 {
  margin: 5px 0;
  color: var(--sndi-green);  /* VERT POUR LE HEADER */
  font-weight: bold;
}

.header-title h2 {
  font-size: 1.5rem;
}

.header-title h3 {
  font-size: 1.2rem;
}

.header-title h4 {
  font-size: 1rem;
  color: var(--gray-dark);
}

/* ==========================================
   NAVBAR - ORANGE PRINCIPAL
   ========================================== */
.navbar {
  background: linear-gradient(135deg, var(--sndi-orange) 0%, var(--sndi-orange-dark) 100%) !important;
  box-shadow: 0 2px 10px rgba(255, 153, 0, 0.3);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 600;
  color: white !important;
}

.navbar .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transition: all 0.3s ease;
}

.navbar .btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-2px);
}

/* ==========================================
   CARTES
   ========================================== */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  margin-bottom: 2rem;
}

.card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
}

.card-header {
  background: linear-gradient(135deg, var(--sndi-orange) 0%, var(--sndi-orange-dark) 100%);
  color: white;
  border-radius: 12px 12px 0 0 !important;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.shadow-sndi {
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.2) !important;
}

/* ==========================================
   FORMULAIRES
   ========================================== */
.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Astérisques rouges pour champs obligatoires */
.required::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
  font-size: 1.1em;
}

.form-control,
.form-select {
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 0.75rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sndi-orange);
  box-shadow: 0 0 0 0.25rem rgba(255, 153, 0, 0.25);
  outline: none;
}

.form-control[type="number"] {
  -moz-appearance: textfield;
}

.form-control[type="number"]::-webkit-outer-spin-button,
.form-control[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ==========================================
   BOUTONS
   ========================================== */
.btn {
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sndi-orange) 0%, var(--sndi-orange-dark) 100%);
  border: none;
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--sndi-orange-dark) 0%, var(--sndi-orange) 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 153, 0, 0.3);
}

.btn-sndi-primary {
  background: linear-gradient(135deg, var(--sndi-orange) 0%, var(--sndi-orange-dark) 100%);
  border: none;
  color: white;
}

.btn-sndi-primary:hover {
  background: linear-gradient(135deg, var(--sndi-orange-dark) 0%, var(--sndi-orange) 100%);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* ==========================================
   WIZARD STEPS - CLIQUABLES
   ========================================== */
.wizard-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
  position: relative;
}

.wizard-steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gray-medium);
  z-index: 0;
}

.wizard-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  cursor: pointer;  /* CLIQUABLE */
  transition: all 0.3s ease;
}

.wizard-step:hover .step-number {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.4);
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--gray-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  color: var(--gray-dark);
}

.wizard-step.active .step-number {
  background: linear-gradient(135deg, var(--sndi-orange) 0%, var(--sndi-orange-dark) 100%);
  border-color: var(--sndi-orange);
  color: white;
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
  transform: scale(1.15);
}

.wizard-step.completed .step-number {
  background: var(--sndi-green);
  border-color: var(--sndi-green);
  color: white;
}

.wizard-step.completed .step-number::after {
  content: '✓';
  position: absolute;
  font-size: 1.5rem;
}

.step-label {
  font-size: 0.85rem;
  color: var(--gray-dark);
  font-weight: 500;
}

.wizard-step.active .step-label {
  color: var(--sndi-orange);
  font-weight: 600;
}

/* ==========================================
   TITRES DE SECTION
   ========================================== */
.section-title {
  border-left: 4px solid var(--sndi-orange);
  padding-left: 1rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--sndi-orange-dark);
}

/* ==========================================
   ALERTES
   ========================================== */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.5rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

/* ==========================================
   TABLEAUX
   ========================================== */
.table {
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background: linear-gradient(135deg, var(--sndi-orange) 0%, var(--sndi-orange-dark) 100%);
  color: white;
}

.table tbody tr:hover {
  background-color: rgba(255, 153, 0, 0.05);
}

/* ==========================================
   CLASSES UTILITAIRES
   ========================================== */
.text-sndi-orange { color: var(--sndi-orange) !important; }
.text-sndi-green { color: var(--sndi-green) !important; }
.text-sndi-blue { color: var(--sndi-blue) !important; }

.bg-sndi-orange { 
  background: linear-gradient(135deg, var(--sndi-orange) 0%, var(--sndi-orange-dark) 100%) !important;
  color: white !important;
}

.bg-sndi-green { 
  background-color: var(--sndi-green) !important;
  color: white !important;
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.4s ease-out;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .header-logos {
    flex-direction: column;
    text-align: center;
  }
  
  .header-logos .logo-left,
  .header-logos .logo-right {
    margin-bottom: 1rem;
  }
  
  .wizard-steps {
    flex-wrap: wrap;
  }
  
  .wizard-step {
    flex-basis: 33.333%;
    margin-bottom: 1rem;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .step-label {
    font-size: 0.75rem;
  }
}

@media (max-width: 576px) {
  .wizard-step {
    flex-basis: 50%;
  }
  
  .header-title h2 {
    font-size: 1.2rem;
  }
  
  .header-title h3 {
    font-size: 1rem;
  }
}
