/* ===================================
   VARIABLES CSS
   =================================== */
:root {
  /* Couleurs principales */
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --secondary-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;

  /* Couleurs de texte */
  --text-dark: #1f2937;
  --text-light: #6b7280;

  /* Couleurs de fond */
  --bg-light: #f9fafb;
  --bg-white: #ffffff;

  /* Bordures et ombres */
  --border-color: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

  /* Transitions */
  --transition: all 0.3s ease;
}

/* ===================================
   RESET ET BASE
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* ===================================
   CONTENEURS ET SECTIONS
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-dark {
  background-color: var(--text-dark);
  color: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: inherit;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: #cbd5e1;
}

/* ===================================
   HEADER ET NAVIGATION
   =================================== */
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--text-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  background-color: var(--primary-color);
  color: white;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 6rem 0;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.8;
}

.hero-search {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 1rem;
}

.search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features {
  padding: 80px 0;
  background-color: var(--bg-white);
}

.features .section-title {
  text-align: center;
  margin-bottom: 50px;
}

/* ===================================
   BOUTONS
   =================================== */
.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #059669;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-full {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
}

.btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-white);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-social:hover {
  border-color: var(--text-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* ===================================
   GRILLES ET CARTES
   =================================== */
.features-grid,
.services-grid,
.values-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card,
.service-card,
.value-card,
.team-member {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.section-dark .feature-card,
.section-dark .service-card,
.section-dark .value-card,
.section-dark .team-member {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.feature-card:hover,
.service-card:hover,
.value-card:hover,
.team-member:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.section-dark .feature-card:hover,
.section-dark .service-card:hover,
.section-dark .value-card:hover,
.section-dark .team-member:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Icônes */
.feature-icon,
.service-icon,
.value-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  color: white;
  font-size: 2rem;
}

.feature-card h3,
.service-card h3,
.value-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.section-dark .feature-card h3,
.section-dark .service-card h3,
.section-dark .value-card h3 {
  color: white;
}

.feature-card p,
.service-card p,
.value-card p {
  color: var(--text-light);
  line-height: 1.7;
}

.section-dark .feature-card p,
.section-dark .service-card p,
.section-dark .value-card p {
  color: #cbd5e1;
}

/* ===================================
   FORMULAIRES (GÉNÉRAL)
   =================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.form-group label svg {
  opacity: 0.6;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.checkbox-group,
.form-group-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
}

.checkbox-group label,
.form-group-checkbox label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.9rem;
  user-select: none;
}

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

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.form-footer {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-light);
  font-size: 0.875rem;
}

.form-footer a,
.link-primary {
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
}

.form-footer a:hover,
.link-primary:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.form-divider span {
  padding: 0 1rem;
}

/* Formulaire avec mot de passe */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.75rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: var(--transition);
}

.password-toggle:hover {
  opacity: 1;
}

.password-strength {
  margin-top: 0.5rem;
}

.strength-bar {
  height: 4px;
  background-color: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.strength-fill {
  height: 100%;
  width: 0%;
  transition: var(--transition);
  border-radius: 2px;
}

.strength-text {
  font-size: 0.75rem;
  color: var(--text-light);
}

.strength-weak .strength-fill {
  width: 33%;
  background-color: var(--danger-color);
}

.strength-medium .strength-fill {
  width: 66%;
  background-color: var(--warning-color);
}

.strength-strong .strength-fill {
  width: 100%;
  background-color: var(--secondary-color);
}

/* ===================================
   LOGIN PAGE - ONE PAGE (SPÉCIFIQUE)
   =================================== */
.login-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.login-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
  max-height: 92vh;
}

/* Info Panel - GAUCHE - COMPACT */
.login-info {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 16px;
  padding: 2rem;
  color: white;
  box-shadow: var(--shadow-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.login-info .info-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.login-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0;
}

.login-info .info-features {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  flex: 1;
}

.login-info .info-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.login-info .info-feature:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

.login-info .info-icon {
  font-size: 1.5rem;
  min-width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-info .info-feature h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.login-info .info-feature p {
  font-size: 0.8125rem;
  opacity: 0.9;
  line-height: 1.3;
  margin: 0;
}

.login-info .info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.login-info .stat {
  text-align: center;
}

.login-info .stat-number {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.125rem;
}

.login-info .stat-label {
  font-size: 0.6875rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Forms Wrapper - DROITE - SCROLLABLE */
.forms-wrapper {
  flex: 1;
  max-width: 500px;
  max-height: 92vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.forms-wrapper::-webkit-scrollbar {
  width: 6px;
}

.forms-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.forms-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

.forms-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Login Card - COMPACT */
.login-card {
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.login-header h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.375rem;
}

.login-header p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* Form compact pour login */
.login-card .form-group {
  margin-bottom: 1rem;
}

.login-card .auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  margin: 0.25rem 0;
}

/* Success Card */
.success-card {
  text-align: center;
  padding: 2.5rem 2rem;
}

.success-icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.success-card h2 {
  color: var(--secondary-color);
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.success-card p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* ===================================
   PAGE HEADER
   =================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.page-header p {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* ===================================
   SEARCH SECTION
   =================================== */
.search-section {
  padding: 3rem 0;
}

.search-form-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.search-form {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.search-tips {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  align-self: start;
}

.search-tips h3 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.search-tips ul {
  list-style: none;
}

.search-tips li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-light);
}

.search-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* ===================================
   RESULTS SECTION
   =================================== */
.results-section {
  padding: 3rem 0;
  min-height: 60vh;
}

.results-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: var(--bg-white);
  padding: 1rem;
  border-radius: 8px;
}

.results-count {
  font-weight: 600;
  color: var(--text-dark);
}

.view-toggle {
  display: flex;
  gap: 0.5rem;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.view-btn.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.view-btn:hover:not(.active) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

/* Vue en grille */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.result-card {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-header {
  margin-bottom: 1rem;
}

.card-reference {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-light);
  font-size: 0.95rem;
}

.card-body {
  margin-bottom: 1rem;
}

.card-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.info-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

.info-value {
  font-weight: 600;
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 1rem 0;
}

.card-footer {
  display: flex;
  gap: 0.5rem;
}

.card-footer .btn {
  flex: 1;
  padding: 0.625rem;
  font-size: 0.9rem;
}

/* Badges de stock */
.stock-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.stock-available {
  background-color: #d1fae5;
  color: #065f46;
}

.stock-limited {
  background-color: #fed7aa;
  color: #92400e;
}

.stock-unavailable {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Vue en tableau */
.table-container {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
}

.results-table thead {
  background-color: var(--primary-color);
  color: white;
}

.results-table th,
.results-table td {
  padding: 1rem;
  text-align: left;
}

.results-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.results-table tbody tr:hover {
  background-color: var(--bg-light);
}

.table-reference {
  font-weight: 700;
  color: var(--primary-color);
}

.table-price {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--secondary-color);
}

/* Aucun résultat */
.no-results {
  text-align: center;
  padding: 4rem 2rem;
}

.no-results-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.no-results h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.no-results p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ===================================
   CONTENT SECTIONS
   =================================== */
.content-section {
  padding: 3rem 0;
}

.content-wrapper {
  background: var(--bg-white);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.content-wrapper h2 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.content-wrapper h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.content-list {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.content-list li {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.example-box {
  background-color: var(--bg-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  margin-top: 2rem;
}

.example-box h4 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

/* ===================================
   ABOUT PAGE
   =================================== */
.about-intro {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-intro h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 25px;
}

.about-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.team-grid {
  gap: 40px;
}

.team-photo {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  font-size: 2rem;
}

.team-member h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--primary-color);
}

.team-role {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.team-member p {
  color: var(--text-light);
  line-height: 1.6;
}

/* Feature numérotée */
.feature-number {
  font-size: 3.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 15px;
}

/* ===================================
   SERVICE DETAIL
   =================================== */
.service-detail {
  margin: 60px 0;
}

.service-detail-content {
  display: flex;
  gap: 50px;
  align-items: center;
}

.service-detail.reverse .service-detail-content {
  flex-direction: row-reverse;
}

.service-detail-text {
  flex: 1;
}

.service-detail-text h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-detail-text p {
  color: var(--text-dark);
  line-height: 1.8;
  margin-bottom: 20px;
}

.service-list {
  list-style: none;
  margin-top: 20px;
}

.service-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-dark);
  line-height: 1.6;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.service-detail-image {
  flex: 1;
}

.image-placeholder {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
}

/* ===================================
   INFO BOXES
   =================================== */
.info-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.info-box {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.info-box h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.info-box p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  text-align: center;
  padding: 80px 0;
}

.cta-section .container h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-section .container p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  color: rgba(255, 255, 255, 0.9);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background-color: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer-section p {
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #9ca3af;
  transition: var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 968px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    display: none;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    width: 100%;
  }

  .login-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-height: none;
  }

  .forms-wrapper {
    order: 1;
    max-width: 100%;
    max-height: none;
    overflow-y: visible;
    padding-right: 0;
  }

  .login-info {
    order: 2;
    height: auto;
  }

  .service-detail-content {
    flex-direction: column !important;
    gap: 30px;
  }

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

  .results-controls {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-search {
    flex-direction: column;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .services-grid,
  .values-grid,
  .team-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .table-container {
    overflow-x: auto;
  }

  .results-table {
    min-width: 800px;
  }

  .login-card,
  .login-info {
    padding: 1.5rem;
  }

  .login-info .info-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cta-section .container h2 {
    font-size: 1.8rem;
  }

  .cta-section .container p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 3rem 0;
  }

  .login-section {
    padding: 1.5rem 0;
  }

  .section {
    padding: 2rem 0;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .feature-number {
    font-size: 2.5rem;
  }

  .login-card {
    padding: 1.25rem;
  }

  .login-info {
    padding: 1.25rem;
  }

  .login-header h2 {
    font-size: 1.375rem;
  }

  .login-info h3 {
    font-size: 1.25rem;
  }

  .login-info .info-icon {
    font-size: 1.25rem;
    min-width: 30px;
  }

  .login-info .info-feature h4 {
    font-size: 0.875rem;
  }

  .login-info .info-feature p {
    font-size: 0.75rem;
  }

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

/* Historique des recherches */
.search-history {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
}

.search-history h3 {
  color: #2c3e50;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.search-history ul {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
}

.search-history li {
  border-bottom: 1px solid #e0e0e0;
  padding: 10px 0;
}

.search-history li:last-child {
  border-bottom: none;
}

.search-history a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.3s;
}

.search-history a:hover {
  color: #e74c3c;
}

.search-history strong {
  font-weight: 600;
}

.search-history small {
  color: #7f8c8d;
  font-size: 0.85rem;
}

.btn-link {
  color: #e74c3c;
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.btn-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* Messages d'alerte */
.alert {
  padding: 15px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-weight: 500;
}

.alert-error {
  background: #fee;
  border-left: 4px solid #e74c3c;
  color: #c0392b;
}

.alert-success {
  background: #efe;
  border-left: 4px solid #27ae60;
  color: #1e8449;
}

.alert-warning {
  background: #fef9e7;
  border-left: 4px solid #f39c12;
  color: #b9770e;
}

/* Tri et contrôles */
.results-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.sort-form select {
  padding: 10px 35px 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  background: white;
  cursor: pointer;
}

/* Badges de stock */
.badge-success {
  background: #d4edda;
  color: #155724;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.badge-danger {
  background: #f8d7da;
  color: #721c24;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 500;
}

.in-stock {
  color: #27ae60;
  font-weight: 600;
}

.out-of-stock {
  color: #e74c3c;
  font-weight: 600;
}

/* Actions sans résultat */
.no-results-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

/* Image visuelle générée */
.result-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.visual-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  z-index: 1;
}

.visual-icon {
  font-size: 4rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.visual-ref {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 20px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  letter-spacing: 2px;
}

.category-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Card adjustments */
.result-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.result-card:hover .visual-icon {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.card-header {
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.card-header h3 {
  font-size: 1.1rem;
  margin: 0 0 8px 0;
  color: #2c3e50;
  font-weight: 600;
}

.reference {
  display: inline-block;
  font-size: 0.85rem;
  color: #7f8c8d;
  background: #ecf0f1;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
}

.card-body {
  padding: 15px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f8f9fa;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  font-size: 0.9rem;
  color: #7f8c8d;
  font-weight: 500;
}

.info-row .value {
  font-size: 0.95rem;
  color: #2c3e50;
  font-weight: 600;
}

.in-stock {
  color: #27ae60 !important;
}

.out-of-stock {
  color: #e74c3c !important;
}

.price-row {
  background: #f8f9fa;
  padding: 12px;
  margin: 10px -15px 0;
  border-top: 2px solid #e9ecef;
}

.price-ht {
  font-size: 1.3rem;
  color: #2c3e50;
  font-weight: 700;
}

.price-ttc {
  font-size: 1.1rem;
  color: #e74c3c;
  font-weight: 700;
}

.card-footer {
  padding: 15px;
  background: #f8f9fa;
  text-align: center;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.95rem;
  width: 100%;
  display: block;
}

/* Effet de brillance sur l'image */
.result-image::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg,
      transparent 30%,
      rgba(255, 255, 255, 0.1) 50%,
      transparent 70%);
  transform: rotate(45deg);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }

  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}