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

:root {
  /* Palette de couleurs douces et professionnelles */
  --main-bg: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #60a5fa 100%);
  --box-bg: #ebf5ff;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #3b82f6;
  --secondary-hover: #2563eb;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
  --success: #10B981;
  --text: #1e293b;
  --text-light: #475569;
  --text-lighter: #64748b;
  
  /* Éléments UI */
  --radius: 16px;
  --btn-radius: 12px;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --divider: #E5E7EB;
  --border: #D1D5DB;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  background: #ffffff;
  border: none;
  border-radius: 0;
  box-shadow: none;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  max-width: 1000px;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.header {
  margin-bottom: 1.5rem;
}

.header .logo {
  width: 80px;
  margin-bottom: 0.8rem;
}

.company-gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: 'Inter', -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.8rem;
  text-align: center;
  font-size: 1.25rem;
}

.title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.divider {
  margin: 1.5rem 0;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  text-align: center;
}

.divider::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--divider);
  border-radius: 2px;
}

/* Boutons */
.btn {
  min-height: 48px;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 0.75rem auto;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--btn-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

@media (min-width: 1025px) {
  .btn {
    max-width: 100%;
  }
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--primary-hover);
  box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(244, 114, 182, 0.2);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: var(--secondary-hover);
  box-shadow: 0 4px 8px rgba(244, 114, 182, 0.3);
  transform: translateY(-1px);
}

.btn-link {
  display: block;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
  text-decoration: none;
  background: none;
  border: none;
  margin-top: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* Options List */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem auto;
  max-width: 500px;
  width: 100%;
}

@media (min-width: 1025px) {
  .options-list {
    max-width: 100%;
  }
}

.option-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #ffffff;
  color: var(--text);
  border: 1px solid #d1d5db;
  border-radius: var(--btn-radius);
  padding: 1rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.option-btn:hover,
.option-btn:focus {
  border-color: var(--primary);
  background: #EEF2FF;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.option-btn .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Forms */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem auto;
  text-align: left;
  max-width: 500px;
  width: 100%;
}

@media (min-width: 1025px) {
  .form {
    max-width: 100%;
  }
}

.form-label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label-text {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: var(--text);
  transition: all 0.2s ease;
}

.form-input:hover {
  border-color: var(--text-light);
}

.form-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input::placeholder {
  color: var(--text-lighter);
}

/* Action Cards */
/* Action Cards */
.action-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 0 auto 1rem auto;
  max-width: 700px;
  width: 100%;
  text-align: left;
  transition: all 0.2s ease;
}

@media (min-width: 1025px) {
  .action-card {
    background: rgba(255, 255, 255, 0.9);
    max-width: 100%;
  }
}

.action-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}

.action-title {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.action-desc {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.action-card.notification {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: var(--primary);
}

/* Tabs */
.tabs-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.4rem;
  background: #F3F4F6;
  border-radius: 12px;
}

.tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  background: transparent;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.tab.active,
.tab:hover,
.tab:focus {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.tab .icon {
  width: 20px;
  height: 20px;
}

/* Order Steps */
.order-steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #F9FAFB;
}

.order-step.completed {
  background: #ECFDF5;
  color: var(--success);
}

.order-step.active {
  background: #EEF2FF;
  color: var(--primary);
  font-weight: 500;
}

/* Footer Legal */
.legal-footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  margin-top: auto;
  padding: 2rem clamp(1rem, 5vw, 3rem) 1rem;
  font-size: 0.85rem;
  color: #1e293b;
  width: 100%;
}

@media (min-width: 1025px) {
  body:not(.dashboard-page):not(.legal-page) .legal-footer {
    background: #f8fafc;
    padding: 2rem 4rem 1rem;
  }
}

.legal-footer .footer-content {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.legal-footer .company-info {
  margin-bottom: 1.5rem;
}

.legal-footer .company-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.legal-footer .company-desc {
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.legal-footer .contact-info {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.legal-footer .contact-info .info-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.legal-footer .contact-info .info-label {
  font-weight: 600;
  color: var(--text);
}

.legal-footer .legal-links {
  margin-bottom: 1rem;
}

.legal-footer .legal-links a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.75rem;
  font-weight: 500;
}

.legal-footer .legal-links a:hover {
  text-decoration: underline;
}

.legal-footer .disclaimer {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
  font-style: italic;
}

.legal-footer .copyright {
  font-size: 0.75rem;
  color: var(--text-lighter);
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
}

/* Legal Pages */
.legal-page .container {
  text-align: left;
  max-width: 900px;
  width: 100%;
  padding: 2rem clamp(1rem, 3vw, 2rem);
  margin: 0 auto;
  background: #ffffff;
}

@media (min-width: 1025px) {
  .legal-page .container {
    max-width: 1200px;
    margin: 0 auto;
  }
}

.legal-page .title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.legal-page .action-card {
  background: #fff;
}

.legal-page .action-card h2 {
  color: var(--primary);
  margin: 1.5rem 0 1rem;
  font-size: 1.25rem;
}

.legal-page .action-card h3 {
  color: var(--text);
  margin: 1.25rem 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.legal-page .action-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.legal-page .action-card ul {
  margin: 1rem 0;
  padding-left: 2rem;
  line-height: 1.6;
}

.legal-page .action-card li {
  margin-bottom: 0.5rem;
}

.legal-page .action-card strong {
  font-weight: 600;
  color: var(--text);
}

/* Auth Actions */
.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

/* Utility Classes */
.icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem;
    min-height: 100vh;
    max-width: 100%;
    background: #ffffff;
  }
  
  .title {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 0.95rem;
  }
  
  .btn {
    font-size: 0.95rem;
    padding: 0.85rem 1.25rem;
    max-width: 100%;
  }
  
  .legal-footer {
    padding: 2rem 1rem 1rem;
  }
  
  .legal-footer .contact-info .info-line {
    flex-direction: column;
    gap: 0.2rem;
  }
  
  .legal-footer .legal-links a {
    display: block;
    margin: 0.4rem 0;
  }
  
  .tabs-bar {
    flex-wrap: wrap;
  }
  
  .tab {
    min-width: 120px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 2rem 1.5rem;
    max-width: 800px;
    background: #ffffff;
  }
  
  .legal-footer .footer-content {
    max-width: 800px;
    margin: 0 auto;
  }
}

@media (min-width: 1025px) {
  .container {
    padding: 2.5rem 2rem;
    max-width: 1200px;
  }
  
  .legal-footer .footer-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: left;
  }
  
  .legal-footer .legal-links,
  .legal-footer .disclaimer,
  .legal-footer .copyright {
    grid-column: 1 / -1;
    text-align: center;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
  }
  
  .container {
    box-shadow: none;
    border: 1px solid #ddd;
    max-width: none;
  }
  
  .btn,
  .legal-footer {
    display: none;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
