@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --primary: #E6007E;
  --secondary: #FF9900;
  --dark: #363636;
  --light: #f8f9fa;
  --gradient-primary: linear-gradient(90deg, #fff 0%, #ffe3f0 100%);
  --gradient-card: linear-gradient(120deg, #fff 60%, #f8f9fa 100%);
  --shadow: 0 4px 24px #E6007E22, 0 1.5px 8px #36363611;
}

html, body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--gradient-primary);
  color: var(--dark);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s, background 0.3s, padding 0.3s;
  padding: 0.7em 0 0.7em 0;
  margin-bottom: 1.2em;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 1em;
}
.logo-icon img {
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 2px 8px #E6007E22;
}
.logo-text #logo {
  color: #E6007E !important;
  font-weight: 700;
  font-size: 1.5em;
  letter-spacing: 1px;
}
.logo-subtitle {
  color: var(--dark);
  font-size: 0.98em;
  font-weight: 600;
  margin-top: 0.1em;
}
.header-info {
  display: flex;
  align-items: center;
  gap: 1.2em;
  font-size: 1em;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 0.4em;
  color: var(--primary);
  font-weight: 600;
  font-size: 1em;
}
.info-icon {
  color: var(--secondary);
  font-size: 1.1em;
}
@media (max-width: 700px) {
  .header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5em;
  }
  .header-info {
    margin-top: 0.5em;
    gap: 0.7em;
  }
  .logo-container {
    gap: 0.7em;
  }
  header {
    padding: 0.7em 0 0.7em 0;
  }
}

.candidat-menu {
  display: flex;
  gap: 1.5em;
  justify-content: center;
  background: var(--primary);
  padding: 1.2em 0;
  border-radius: 0 0 18px 18px;
  margin-bottom: 2em;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px #E6007E11;
}
.candidat-menu a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  transition: background 0.25s, color 0.2s, box-shadow 0.2s;
  background: rgba(255,255,255,0.09);
  box-shadow: 0 1px 4px #E6007E11;
  position: relative;
}
.candidat-menu a.active, .candidat-menu a:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 8px #FF990033;
}

.dashboard-content, .profile-container {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--gradient-card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 2.5em 2em;
  margin-bottom: 2.5em;
}

.profile-section, .stat-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 2em 2em 1.5em 2em;
  margin-bottom: 2em;
  transition: box-shadow 0.2s;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s cubic-bezier(.77,0,.18,1) forwards;
}
.profile-section:hover, .stat-card:hover {
  box-shadow: 0 8px 32px #E6007E33, 0 2px 12px #36363622;
}
.profile-section { animation-delay: 0.1s; }
.stat-card { animation-delay: 0.2s; }

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.5px;
}
h2 i, h3 i {
  color: var(--secondary);
  margin-right: 0.5em;
}

.btn-primary, .btn-secondary, .btn-danger {
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.7em 2em;
  font-size: 1.08em;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px #E6007E11;
  margin-top: 0.7em;
  margin-bottom: 0.7em;
  outline: none;
}
.btn-primary {
  background: linear-gradient(90deg, #E6007E 0%, #FF9900 100%);
  color: #fff;
}
.btn-primary:hover {
  background: linear-gradient(90deg, #FF9900 0%, #E6007E 100%);
  color: #fff;
  box-shadow: 0 4px 16px #E6007E33;
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: #fff;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px #E6007E33;
}
.btn-danger {
  background: #fff0f3;
  color: #E6007E;
  border: 2px solid #E6007E;
}
.btn-danger:hover {
  background: #E6007E;
  color: #fff;
  box-shadow: 0 4px 16px #E6007E33;
}

input, textarea, select {
  font-family: 'Poppins', Arial, sans-serif;
  border-radius: 8px;
  border: 1.5px solid #e0e0e0;
  padding: 0.7em 1em;
  font-size: 1em;
  margin-bottom: 1em;
  width: 100%;
  background: #f8f9fa;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px #E6007E11;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--primary);
  box-shadow: 0 2px 8px #E6007E22;
  outline: none;
}

.form-group, .form-row {
  margin-bottom: 1.2em;
}
.form-row {
  display: flex;
  gap: 1em;
}

.success {
  background: #d4edda;
  color: #155724;
  border-radius: 8px;
  padding: 1em 1.5em;
  margin-bottom: 1.5em;
  font-weight: 600;
  box-shadow: 0 2px 8px #27ae6011;
}
.error {
  background: #f8d7da;
  color: #721c24;
  border-radius: 8px;
  padding: 1em 1.5em;
  margin-bottom: 1.5em;
  font-weight: 600;
  box-shadow: 0 2px 8px #E6007E11;
}

.profile-progress-container {
  margin: 2em auto 2.5em auto;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px #E6007E33, 0 1.5px 8px #36363611;
  padding: 1.5em 2em;
  text-align: left;
  border: 2px solid #ffe3f0;
  position: relative;
  z-index: 2;
}
.profile-progress-container::after {
  content: '';
  display: block;
  height: 0.5em;
  width: 100%;
  margin: 1.2em 0 0 0;
  border-bottom: 2px solid #f0f0f0;
  opacity: 0.7;
}
.profile-progress-label {
  font-weight: 600;
  color: #363636;
  margin-bottom: 0.7em;
  font-size: 1.1em;
  text-shadow: none;
}
.profile-progress-bar {
  width: 100%;
  height: 18px;
  background: linear-gradient(90deg, #f8f9fa 60%, #ffe3f0 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 8px #E6007E22;
  margin-bottom: 0.5em;
  position: relative;
}
.profile-progress-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #E6007E 0%, #FF9900 100%);
  border-radius: 12px 0 0 12px;
  transition: width 1s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 2px 8px #E6007E33;
  position: absolute;
  left: 0; top: 0;
}
.profile-progress-tip {
  font-size: 0.98em;
  color: #E6007E;
  margin-top: 0.5em;
  text-align: left;
}

/* Tableaux et stats */
.candidatures-section {
  margin-top: 2.5em;
}
.candidatures-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1em;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px #E6007E11;
  font-size: 0.97em;
}
.candidatures-table th {
  background: linear-gradient(90deg, #ffe3f0 0%, #fff 100%);
  padding: 0.7em 0.6em;
  text-align: left;
  font-weight: 700;
  color: #E6007E;
  border-bottom: 2.5px solid #E6007E33;
  font-size: 1em;
  letter-spacing: 0.2px;
}
.candidatures-table td {
  background: #fff;
  color: #363636;
  font-size: 0.97em;
  padding: 0.6em 0.6em;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.candidatures-table tr:hover {
  background: #f8f9fa;
}
.status-badge {
  padding: 0.3em 0.8em;
  border-radius: 15px;
  font-size: 0.85em;
  font-weight: 600;
  text-align: center;
  display: inline-block;
  box-shadow: 0 1px 4px #E6007E11;
}
.status-en_attente { background: #fff3cd; color: #856404; }
.status-entretien { background: #d1ecf1; color: #0c5460; }
.status-acceptee { background: #d4edda; color: #155724; }
.status-refusee { background: #f8d7da; color: #721c24; }

.formation-badge {
  background: #ffe3f0;
  color: var(--primary);
  padding: 0.2em 0.7em;
  border-radius: 12px;
  font-size: 0.9em;
  font-weight: 600;
  display: inline-block;
  margin-right: 0.25em;
  margin-bottom: 0.25em;
  box-shadow: 0 1px 4px #E6007E11;
}

.app-footer {
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 16px #E6007E11;
  margin-top: 3em;
  padding: 1.5em 0 0.5em 0;
  text-align: center;
}
.footer-content {
  color: #363636;
  font-size: 1em;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .dashboard-content, .profile-container {
    padding: 1.2em 0.5em;
  }
  .profile-section, .stat-card {
    padding: 1.2em 0.7em 1em 0.7em;
  }
  .candidatures-table th, .candidatures-table td {
    padding: 0.5em 0.3em;
    font-size: 0.95em;
  }
}
@media (max-width: 600px) {
  .dashboard-content, .profile-container {
    padding: 0.5em 0.1em;
  }
  .profile-section, .stat-card {
    padding: 0.7em 0.2em 0.7em 0.2em;
  }
  .candidat-menu {
    gap: 0.5em;
    padding: 0.7em 0.2em;
  }
  .profile-progress-container {
    padding: 1em 0.5em;
  }
  .candidatures-table th, .candidatures-table td {
    padding: 0.35em 0.2em;
    font-size: 0.93em;
  }
  .candidatures-table {
    font-size: 0.93em;
  }
}

/* --- Timeline --- */
.timeline {
  position: relative;
  margin-left: 1.5em;
  padding-left: 1.5em;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.5em;
  top: 0.5em;
  bottom: 0.5em;
  width: 4px;
  background: linear-gradient(180deg, #E6007E 0%, #FF9900 100%);
  border-radius: 2px;
  opacity: 0.18;
}
.timeline-item {
  position: relative;
  margin-bottom: 2em;
  animation: fadeInUp 0.7s cubic-bezier(.77,0,.18,1);
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s cubic-bezier(.77,0,.18,1) forwards;
  animation-delay: 0.3s;
}
.timeline-dot {
  position: absolute;
  left: -1.1em;
  top: 0.7em;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #E6007E 60%, #FF9900 100%);
  border-radius: 50%;
  box-shadow: 0 2px 8px #E6007E33;
  border: 3px solid #fff;
  z-index: 2;
}
.timeline-content {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px #E6007E11;
  padding: 1.1em 1.5em;
  margin-left: 1.5em;
  position: relative;
  transition: box-shadow 0.2s;
}
.timeline-content:hover {
  box-shadow: 0 6px 24px #E6007E22;
}
.timeline-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.13em;
}
.timeline-ecole, .exp-entreprise {
  color: var(--secondary);
  font-size: 1em;
  font-weight: 600;
}
.timeline-date, .exp-dates {
  color: #363636;
  font-size: 0.98em;
  font-weight: 600;
  margin-bottom: 0.2em;
}
.timeline-desc, .exp-desc {
  color: #666;
  font-size: 0.98em;
  margin-top: 0.3em;
}

/* --- Badges/Chips --- */
.competence-item, .logiciel-badge, .langue-badge {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(90deg, #fff 60%, #ffe3f0 100%);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.5em 1.3em 0.5em 1em;
  margin: 0.2em 0.4em 0.2em 0;
  font-size: 1em;
  font-weight: 600;
  box-shadow: 0 1px 6px #E6007E11;
  position: relative;
  transition: box-shadow 0.2s, background 0.2s;
  border: 2px solid #ffe3f0;
  animation: fadeInUp 0.6s cubic-bezier(.77,0,.18,1);
}
.competence-item:hover, .logiciel-badge:hover, .langue-badge:hover {
  background: linear-gradient(90deg, #ffe3f0 0%, #fff 100%);
  box-shadow: 0 4px 16px #E6007E22;
}
.competence-title {
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.7em;
}
.competence-desc {
  color: #363636;
  font-size: 0.98em;
  margin-right: 0.7em;
}
.langue-niveau {
  color: var(--secondary);
  font-weight: 700;
  margin-left: 0.5em;
}
.btn-icon {
  background: none;
  border: none;
  color: #E6007E;
  padding: 0 0.05em;
  margin-left: 0.15em;
  cursor: pointer;
  opacity: 0.7;
  font-size: 0.75em;
  transition: opacity 0.2s, color 0.2s;
  position: absolute;
  right: -0.2em;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}
.btn-icon:hover {
  opacity: 1;
  color: #FF9900;
}

/* --- Permis & Véhicule boutons --- */
.permis-btn-group {
  display: flex;
  gap: 1.2em;
  margin-bottom: 1.2em;
  flex-wrap: wrap;
}
.permis-btn {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: #fff;
  color: var(--primary);
  border: 2px solid #ffe3f0;
  border-radius: 999px;
  padding: 0.6em 1.5em;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 6px #E6007E11;
  outline: none;
  position: relative;
}
.permis-btn.selected, .permis-btn:active {
  background: linear-gradient(90deg, #E6007E 0%, #FF9900 100%);
  color: #fff;
  border: 2px solid #E6007E;
  box-shadow: 0 4px 16px #E6007E22;
}
.permis-btn .fa-car {
  color: var(--secondary);
  font-size: 1.2em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Dark mode auto --- */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #ff5db1;
    --secondary: #ffb84d;
    --dark: #f8f9fa;
    --light: #23242a;
    --gradient-primary: linear-gradient(90deg, #23242a 0%, #2d2d39 100%);
    --gradient-card: linear-gradient(120deg, #23242a 60%, #2d2d39 100%);
    --shadow: 0 4px 24px #0008, 0 1.5px 8px #0004;
  }
  html, body {
    background: var(--gradient-primary);
    color: var(--dark);
  }
  header, .dashboard-content, .profile-container, .profile-section, .stat-card, .timeline-content {
    background: #23242a !important;
    color: #f8f9fa !important;
    box-shadow: 0 4px 24px #0008, 0 1.5px 8px #0004;
  }
  .candidat-menu {
    background: #18181d;
  }
  .candidat-menu a {
    background: rgba(255,255,255,0.04);
    color: #fff;
  }
  .candidat-menu a.active, .candidat-menu a:hover {
    background: var(--secondary);
    color: #23242a;
  }
  .profile-progress-container, .success, .error {
    background: #23242a !important;
    color: #fff !important;
  }
  input, textarea, select {
    background: #2d2d39;
    color: #fff;
    border: 1.5px solid #444;
  }
  input:focus, textarea:focus, select:focus {
    border: 1.5px solid var(--primary);
    box-shadow: 0 2px 8px #ff5db122;
  }
  .competence-item, .logiciel-badge, .langue-badge {
    background: linear-gradient(90deg, #23242a 60%, #2d2d39 100%);
    color: var(--primary);
    border: 2px solid #2d2d39;
  }
  .competence-item:hover, .logiciel-badge:hover, .langue-badge:hover {
    background: linear-gradient(90deg, #2d2d39 0%, #23242a 100%);
  }
  .timeline-dot {
    border: 3px solid #23242a;
  }
  .app-footer {
    background: #18181d;
    color: #fff;
  }
  .profile-progress-container {
    background: #23242a !important;
    border: 2px solid #333;
  }
  .profile-progress-container::after {
    border-bottom: 2px solid #333;
  }
  .candidatures-table th {
    background: linear-gradient(90deg, #2d2d39 0%, #23242a 100%);
    color: #ff5db1;
    border-bottom: 2.5px solid #ff5db133;
  }
  .candidatures-table td {
    background: #23242a;
    color: #f8f9fa;
  }
  .profile-progress-label {
    color: #fff;
    text-shadow: 0 2px 8px #000a;
  }
}

/* --- Cards Candidatures --- */
.candidatures-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5em;
  margin-top: 1.5em;
}
.candidature-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px #E6007E11, 0 1.5px 8px #36363611;
  padding: 1.3em 1.5em 1.1em 1.5em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  position: relative;
  transition: box-shadow 0.2s, transform 0.15s;
  border: 2px solid #ffe3f0;
  min-width: 0;
}
.candidature-card:hover {
  box-shadow: 0 8px 32px #E6007E22, 0 2px 12px #36363622;
  transform: translateY(-2px) scale(1.01);
}
.candidature-card .card-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-size: 1.08em;
  font-weight: 700;
  color: var(--primary);
}
.candidature-card .card-header i {
  color: var(--secondary);
  font-size: 1.3em;
}
.candidature-card .card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  font-size: 0.98em;
  color: #363636;
}
.candidature-card .card-label {
  font-weight: 600;
  color: var(--primary);
  margin-right: 0.3em;
}
.candidature-card .card-value {
  color: #363636;
  font-weight: 500;
}
.candidature-card .card-badge {
  display: inline-block;
  padding: 0.3em 1em;
  border-radius: 999px;
  font-size: 0.98em;
  font-weight: 700;
  background: linear-gradient(90deg, #ffe3f0 0%, #fff 100%);
  color: #E6007E;
  box-shadow: 0 1px 4px #E6007E11;
  margin-left: 0.7em;
}
.candidature-card .card-badge.status-en_attente { background: #fff3cd; color: #856404; }
.candidature-card .card-badge.status-entretien { background: #d1ecf1; color: #0c5460; }
.candidature-card .card-badge.status-acceptee { background: #d4edda; color: #155724; }
.candidature-card .card-badge.status-refusee { background: #f8d7da; color: #721c24; }
.candidature-card .card-badge.status-non-selectionne { background: #e0e0e0; color: #888; }
.candidature-card .card-badge.status-cv-envoye { background: #e9d6f7; color: #6c3483; }
.candidature-card .formations-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em;
  align-items: center;
}
.candidature-card .formation-badge {
  background: #ffe3f0;
  color: var(--primary);
  padding: 0.2em 0.7em;
  border-radius: 12px;
  font-size: 0.93em;
  font-weight: 600;
  display: inline-block;
  margin-right: 0.15em;
  margin-bottom: 0.15em;
  box-shadow: 0 1px 4px #E6007E11;
}
@media (prefers-color-scheme: dark) {
  .candidatures-cards .candidature-card {
    background: #23242a;
    border: 2px solid #333;
    color: #f8f9fa;
  }
  .candidature-card .card-header {
    color: #ff5db1;
  }
  .candidature-card .card-label {
    color: #ff5db1;
  }
  .candidature-card .card-badge {
    background: linear-gradient(90deg, #2d2d39 0%, #23242a 100%);
    color: #ff5db1;
  }
  .candidature-card .card-badge.status-en_attente { background: #fff3cd; color: #856404; }
  .candidature-card .card-badge.status-entretien { background: #d1ecf1; color: #0c5460; }
  .candidature-card .card-badge.status-acceptee { background: #d4edda; color: #155724; }
  .candidature-card .card-badge.status-refusee { background: #f8d7da; color: #721c24; }
  .candidature-card .formation-badge {
    background: #2d2d39;
    color: #ff5db1;
  }
  .candidature-card .card-value {
    color: #f8f9fa;
  }
}

.postule-btn {
  background: linear-gradient(90deg, #E6007E 0%, #FF9900 100%);
  color: #fff;
  border: none;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05em;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px #E6007E11;
  margin-right: 0.5em;
  outline: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.postule-btn:hover {
  background: linear-gradient(90deg, #FF9900 0%, #E6007E 100%);
  color: #fff;
  box-shadow: 0 4px 16px #E6007E33;
  transform: translateY(-2px) scale(1.03);
}
.postule-btn:disabled {
  background: #bdbdbd;
  color: #fff;
  cursor: not-allowed;
  box-shadow: none;
}
.deja-postule {
  background: #d4edda;
  color: #155724;
  padding: 0.7em 1.5em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  box-shadow: 0 2px 8px #27ae6011;
  border: 2px solid #27ae60;
}
@media (prefers-color-scheme: dark) {
  .deja-postule {
    background: #23242a;
    color: #27ae60;
    border: 2px solid #27ae60;
  }
}

/* MODALE ACTUALITE */
/* (supprimé car plus utilisé) */

/* MODALE ACTUALITE */
/* (supprimé car plus utilisé) */

.actualite-image, .profile-section img.actualite-image, .profile-section img[src*='uploads/actualites/'] {
  width: 100%;
  max-height: 220px;
  min-height: 120px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1.2em;
  box-shadow: 0 2px 8px #E6007E22;
  display: block;
}
@media (max-width: 600px) {
  .actualite-image, .profile-section img.actualite-image, .profile-section img[src*='uploads/actualites/'] {
    max-height: 140px;
    min-height: 70px;
  }
}

.actualites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2em;
  margin-bottom: 2em;
}

/* Contenu d'actualité en blanc dans la page de détail */
.actualite-content.detail-view {
  color: #fff !important;
  background: #E6007E;
  border-radius: 10px;
  padding: 1.2em 1em;
  margin-bottom: 0.5em;
  font-size: 1.13em;
  line-height: 1.7;
  box-shadow: 0 2px 8px #E6007E22;
}

/* Nettoyage : couleur du titre admin sans JS, annule tout effet dégradé */
.admin-header h1#admin-candidats-title, #admin-candidats-title, #admin-candidats-title i {
  color: #FF9900 !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  background-clip: initial !important;
  filter: none !important;
  text-shadow: none !important;
}

/* BOUTONS NAVIGATION ADMIN */
.admin-nav-link, .admin-logout {
  background: #fff !important;
  color: #E6007E !important;
  border: 2px solid #E6007E !important;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border 0.2s;
}
.admin-nav-link.active, .admin-nav-link:focus {
  background: #E6007E !important;
  color: #fff !important;
  border-color: #E6007E !important;
}
.admin-nav-link:hover {
  background: #FF9900 !important;
  color: #fff !important;
  border-color: #FF9900 !important;
}

/* BARRE DE RECHERCHE FILTRE */
.search-input {
  background: #f8f9fa !important;
  color: #363636 !important;
  border: 2px solid #E6007E !important;
  border-radius: 8px !important;
  padding: 0.7em 1em !important;
  font-size: 1em !important;
  box-shadow: 0 1px 4px #E6007E11;
  transition: border 0.2s, box-shadow 0.2s;
}
.search-input:focus {
  border: 2px solid #FF9900 !important;
  box-shadow: 0 2px 8px #FF990022;
}
.search-btn {
  background: #E6007E !important;
  color: #fff !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 0.7em 1.2em !important;
  font-size: 1em !important;
  font-weight: 600;
  transition: background 0.2s;
}
.search-btn:hover {
  background: #FF9900 !important;
  color: #fff !important;
}

/* LISTES DÉROULANTES DU FILTRE */
.formation-filter, .tag-filter, select {
  background: #fff !important;
  color: #222 !important;
  border: 2px solid #E6007E !important;
  border-radius: 8px !important;
  font-size: 1em !important;
  font-weight: 600;
  padding: 0.7em 1em !important;
  box-shadow: 0 1px 4px #E6007E11;
  transition: border 0.2s, box-shadow 0.2s;
}
.formation-filter:focus, .tag-filter:focus, select:focus {
  border: 2px solid #FF9900 !important;
  box-shadow: 0 2px 8px #FF990022;
  outline: none !important;
}

/* Correction du texte dans les options */
.formation-filter option, .tag-filter option, select option {
  color: #222 !important;
  background: #fff !important;
}

/* Pour éviter que le texte soit blanc sur fond blanc dans certains navigateurs */
select:invalid, select option[value=""] {
  color: #888 !important;
}

/* ===== MODE CLAIR EXPLICITE ===== */
@media (prefers-color-scheme: light) {
  :root {
    --primary: #E6007E;
    --secondary: #FF9900;
    --dark: #363636;
    --light: #f8f9fa;
    --gradient-primary: linear-gradient(90deg, #fff 0%, #ffe3f0 100%);
    --gradient-card: linear-gradient(120deg, #fff 60%, #f8f9fa 100%);
    --shadow: 0 4px 24px #E6007E22, 0 1.5px 8px #36363611;
  }
  html, body {
    background: var(--gradient-primary);
    color: var(--dark);
  }
  header, .dashboard-content, .profile-container, .profile-section, .stat-card, .timeline-content {
    background: #fff !important;
    color: var(--dark) !important;
  }
  .candidat-menu {
    background: var(--primary);
  }
  .candidat-menu a {
    background: rgba(255,255,255,0.09);
    color: #fff;
  }
  .candidat-menu a.active, .candidat-menu a:hover {
    background: var(--secondary);
    color: #fff;
  }
  .profile-progress-container, .success, .error {
    background: #fff !important;
    color: var(--dark) !important;
  }
  input, textarea, select {
    background: #fff;
    color: var(--dark);
    border: 1.5px solid #ccc;
  }
  input:focus, textarea:focus, select:focus {
    border: 1.5px solid var(--primary);
    box-shadow: 0 2px 8px #E6007E22;
  }
  .competence-item, .logiciel-badge, .langue-badge {
    background: linear-gradient(90deg, #fff 60%, #f8f9fa 100%);
    color: var(--primary);
    border: 2px solid #f8f9fa;
  }
  .competence-item:hover, .logiciel-badge:hover, .langue-badge:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #fff 100%);
  }
  .timeline-dot {
    border: 3px solid #fff;
  }
  .app-footer {
    background: #fff;
    color: var(--dark);
  }
  .profile-progress-container {
    background: #fff !important;
    border: 2px solid #eee;
  }
  .profile-progress-container::after {
    border-bottom: 2px solid #eee;
  }
  .candidatures-table th {
    background: linear-gradient(90deg, #fff 0%, #f8f9fa 100%);
    color: var(--primary);
    border-bottom: 2.5px solid #E6007E33;
  }
  .candidatures-table td {
    background: #fff;
    color: var(--dark);
  }
  .profile-progress-label {
    color: var(--dark);
    text-shadow: none;
  }
  body .status-badge,
  body .candidature-card .card-badge.status-en_attente,
  body .candidature-card .card-badge.status-entretien,
  body .candidature-card .card-badge.status-acceptee,
  body .candidature-card .card-badge.status-refusee {
    font-weight: 700 !important;
    border: 2px solid #e0e0e0 !important;
    box-shadow: 0 2px 8px #E6007E11 !important;
    background-clip: padding-box !important;
    background-origin: border-box !important;
  }
  body .status-en_attente,
  body .candidature-card .card-badge.status-en_attente {
    background: #fff3cd !important;
    color: #b8860b !important;
    border-color: #ffe082 !important;
  }
  body .status-entretien,
  body .candidature-card .card-badge.status-entretien {
    background: #d1ecf1 !important;
    color: #01579b !important;
    border-color: #81d4fa !important;
  }
  body .status-acceptee,
  body .candidature-card .card-badge.status-acceptee {
    background: #d4edda !important;
    color: #1b5e20 !important;
    border-color: #a5d6a7 !important;
  }
  body .status-refusee,
  body .candidature-card .card-badge.status-refusee {
    background: #f8d7da !important;
    color: #b71c1c !important;
    border-color: #ef9a9a !important;
  }
} 