/* ==========================================
   OPTI TERMINAL - COMPLETE CSS WITH GRADIENTS
   ========================================== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-image: linear-gradient(to right, #243949 0%, #517fa4 100%);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================
   HEADER - CORRECTION
   ========================================== */

.main-header {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-section i {
  font-size: 1.5rem;
  color: white;
}

.logo-section h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
}
/* Navbar: empêcher les retours à la ligne et garder icône+texte ensemble */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap; /* pas de wrap */
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-flex; /* icône+texte sur une seule ligne */
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap; /* évite que “Montage PC” casse la ligne */
  text-decoration: none;
}

/* Ajustements mobiles */
@media (max-width: 480px) {
  .main-nav ul {
    gap: 0.5rem;
  }
  .main-nav a {
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
  }
}

/* Option si l’écran est très étroit */
@media (max-width: 360px) {
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  position: relative;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 30% 50%,
      rgba(102, 126, 234, 0.2) 0%,
      transparent 60%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(118, 75, 162, 0.2) 0%,
      transparent 60%
    );
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  background: rgba(0, 0, 0, 0.2);
  padding: 1rem 2rem;
  border-radius: 15px;
  display: inline-block;
}

.hero-description {
  font-size: 1.25rem;
  color: white;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   CONFIGURATOR QUESTIONS
   ========================================== */

.configurator-questions {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.question-card {
  background-image: linear-gradient(
    to top,
    #bdc2e8 0%,
    #bdc2e8 1%,
    #e6dee9 100%
  );
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.question-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #1f2937;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.option-btn {
  background: #f3f4f6;
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 1.5rem 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  color: #1f2937;
}

.option-btn:hover {
  background: #e5e7eb;
  transform: translateY(-2px);
}

.option-btn.selected {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.option-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.option-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.option-label {
  font-weight: 600;
  font-size: 1.1rem;
}

.option-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #667eea;
}

.option-btn.selected .option-value {
  color: white;
}

.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 600;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  position: relative;
  z-index: 1;
}

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-generate:not(:disabled):hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

/* ==========================================
   RESULTS SECTION - CORRECTION
   ========================================== */

.results-section {
  display: none;
  padding: 4rem 0;
  min-height: 100vh;
  background-image: linear-gradient(to right, #243949 0%, #517fa4 100%);
}

.results-section.active {
  display: block;
}

.results-header {
  text-align: center;
  margin-bottom: 3rem;
}

.results-header h2 {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
}

.build-summary {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1.5rem;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.summary-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.summary-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

/* ==========================================
   COMPONENTS GRID
   ========================================== */

.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.component-card {
  background: white;
  border: 1px solid rgba(102, 126, 234, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.component-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.component-card:hover::before {
  left: 100%;
}

.component-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.3);
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.component-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.component-header i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.component-header h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
}

.component-body {
  margin-bottom: 1rem;
}

.component-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.component-price {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-buy-component {
  width: 100%;
  padding: 0.75rem;
  background: #f3f4f6;
  color: #1f2937;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-buy-component:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* ==========================================
   BUILD ACTIONS
   ========================================== */

.build-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #f3f4f6;
  color: #1f2937;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

/* ==========================================
   FOOTER
   ========================================== */

.main-footer {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(102, 126, 234, 0.2);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo i {
  font-size: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-logo h3 {
  font-size: 1.25rem;
  color: #f3f4f6;
}

.footer-section p {
  color: #f3f4f6;
  line-height: 1.8;
}

.footer-section h4 {
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  color: #6b7280;
  border-radius: 8px;
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(102, 126, 234, 0.2);
  color: #6b7280;
  font-size: 0.9rem;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .options-grid {
    grid-template-columns: 1fr 1fr;
  }

  .build-summary {
    flex-direction: column;
    gap: 1rem;
  }

  .components-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .main-nav ul {
    gap: 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}
/* ==========================================
   ABOUT SECTION
   ========================================== */

.about-section {
  display: none;
  padding: 4rem 0;
  min-height: 100vh;
  background-image: linear-gradient(to right, #243949 0%, #517fa4 100%);
}

.about-section.active {
  display: block;
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-title {
  font-size: 2.5rem;
  color: white;
  text-align: center;
  margin-bottom: 3rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.about-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-icon i {
  font-size: 2rem;
  color: white;
}

.about-card h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.about-card p {
  color: #6b7280;
  line-height: 1.6;
}

.about-mission {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  margin-bottom: 2rem;
}

.about-mission h3 {
  font-size: 1.8rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

.about-mission p {
  color: #6b7280;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: white;
  color: #667eea;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-back:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transform: scale(1.05);
}

/* ==========================================
   FOOTER COMPLETE
   ========================================== */

.main-footer {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1rem;
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: white;
}

.footer-links i {
  font-size: 0.9rem;
  width: 18px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 8px;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 1.2rem;
}

.social-links a:hover {
  background: white;
  color: #667eea;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================
   MODALS
   ========================================== */

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  margin: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #1f2937;
}

.modal-content h2 {
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  color: #6b7280;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.modal-content h3 {
  font-size: 1.3rem;
  color: #1f2937;
  margin: 1.5rem 0 0.75rem;
}

.modal-content p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.modal-content ul {
  margin-left: 1.5rem;
  color: #4b5563;
  line-height: 1.8;
}

.modal-content li {
  margin-bottom: 0.5rem;
}

.faq-item {
  background: #f9fafb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid #667eea;
}

.faq-item h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

.popular-build {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.popular-build h3 {
  margin-top: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.popular-build p {
  margin-bottom: 0.75rem;
}

.popular-build ul {
  margin-left: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
    margin: 1rem;
    padding: 2rem 1.5rem;
    max-height: 90vh;
  }
}
.buy-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-buy-component {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-buy-component.amazon {
  background: #ff9900;
  color: white;
}

.btn-buy-component.amazon:hover {
  background: #e88800;
  transform: translateY(-2px);
}

.btn-buy-component.ldlc {
  background: #003d7a;
  color: white;
}

.btn-buy-component.ldlc:hover {
  background: #002f5c;
  transform: translateY(-2px);
}

/* Police dédiée aux cartes du configurateur */
.configurator-questions,
.configurator-questions .question-card,
.configurator-questions .option-btn,
.configurator-questions .option-content,
.configurator-questions .option-label,
.configurator-questions .option-value {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
}

/* Hiérarchie claire: labels en 500, valeurs en 700 pour les prix */
.configurator-questions .option-label {
  font-weight: 500;
}
.configurator-questions .option-value {
  font-weight: 700;
}

/* Titres de section un peu plus forts pour la lisibilité */
.configurator-questions h3 {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  font-weight: 700;
}
