/* ===================================
   Pick'n Co - Styles professionnels pour documents légaux
   Version web pour validation stores
   =================================== */

:root {
  --primary-500: #1E7B47;
  --primary-600: #166634;
  --primary-700: #0F4F26;
  --primary-50: #F0F9F4;
  --primary-100: #D1EDDC;
  --neutral-50: #FAFBFC;
  --neutral-100: #F4F5F7;
  --neutral-200: #E3E5E8;
  --neutral-300: #D1D5DB;
  --neutral-400: #9CA3AF;
  --neutral-600: #4B5563;
  --neutral-700: #374151;
  --neutral-800: #1F2937;
  --neutral-900: #111827;
  --white: #FFFFFF;
  --text-primary: #111827;
  --text-secondary: #4B5563;
  --text-tertiary: #6B7280;
  --border-light: #E5E7EB;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', 'Arial', sans-serif;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

.container {
  max-width: 750px;
  margin: 0 auto;
  padding: 32px 24px;
}

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: var(--white);
  padding: 56px 24px 48px;
  margin-bottom: 48px;
  box-shadow: var(--shadow-md);
}

.header-content {
  max-width: 750px;
  margin: 0 auto;
}

.header h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.header p {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: 6px;
  line-height: 1.5;
}

.header .app-name {
  font-size: 17px;
  font-weight: 500;
  opacity: 0.95;
  letter-spacing: 0.3px;
}

/* Sections */
.section {
  background: var(--white);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.section h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-500);
  letter-spacing: -0.3px;
}

.section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 12px;
  letter-spacing: -0.2px;
}

.section p,
.section ul {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.section ul {
  padding-left: 28px;
}

.section li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.section strong {
  color: var(--text-primary);
  font-weight: 600;
}

.highlight {
  background-color: var(--primary-100);
  color: var(--primary-700);
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  display: inline-block;
}

/* Contact box */
.contact-box {
  background: var(--neutral-50);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary-500);
  padding: 24px;
  border-radius: 8px;
  margin: 32px 0;
}

.contact-box h3 {
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 600;
}

.contact-box p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.contact-box a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
  word-break: break-all;
  transition: color 0.2s ease;
}

.contact-box a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px;
  color: var(--text-tertiary);
  font-size: 14px;
  border-top: 1px solid var(--border-light);
  margin-top: 64px;
  background: var(--white);
}

.footer p {
  margin-bottom: 8px;
}

.footer a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* Back button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--primary-600);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 32px;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.back-button:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  transform: translateX(-2px);
  box-shadow: var(--shadow-md);
}

/* Table of Contents */
.toc {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.toc h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 10px;
}

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.6;
  transition: color 0.2s ease;
  display: block;
  padding: 4px 0;
}

.toc a:hover {
  color: var(--primary-600);
}

/* Legal Badge */
.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--primary-100);
  margin-bottom: 24px;
}

/* Important Notice */
.important-notice {
  background: #FEF3C7;
  border-left: 3px solid #F59E0B;
  padding: 16px 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.important-notice p {
  color: #92400E;
  margin: 0;
  font-weight: 500;
}

/* Section Number */
.section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary-500);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  margin-right: 12px;
}

/* Index page specific */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border-radius: 12px;
  padding: 28px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-500);
}

.card h2 {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  border: none;
  padding: 0;
  letter-spacing: -0.2px;
}

.card p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

.icon {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--primary-100);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: var(--primary-600);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 24px 16px;
  }

  .header {
    padding: 40px 20px 32px;
  }

  .header h1 {
    font-size: 28px;
  }
  
  .header p {
    font-size: 14px;
  }
  
  .section {
    padding: 24px 20px;
  }
  
  .section h2 {
    font-size: 20px;
  }
  
  .section h3 {
    font-size: 16px;
  }
  
  .section p,
  .section ul {
    font-size: 15px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .toc {
    padding: 20px;
  }
}
