/* theme.css — empreinte
   Feuille propre à cet outil : composants et couleurs FONCTIONNELLES seulement.
   L'identité de marque (couleurs, dégradés, mode sombre) vient de
   /sites/viepriveemondroit.com/theme.css, chargé avant cette feuille.
   Ne pas redéfinir ici --site-primary*, --bg-*, --text-* ni --border-* :
   voir docs/DESIGN_SYSTEM.md.
*/

:root {
  /* Status/Risk colors */
  --site-safe: #22c55e;          /* Green for low risk */

  /* Gradient colors for tech feel */
  --gradient-start: var(--site-primary);
  --gradient-end: var(--site-primary-dark);

  /* Legacy support */
  --primary: var(--site-primary);
}

html[data-theme="light"] {
  color-scheme: light;

}

html.dark .footer,
html.dark-mode .footer,
html[data-theme="dark"] .footer {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
}

/* Hero section with tech theme */
.hero--tech,
.hero-standard[data-theme="tech"] {
  background: linear-gradient(135deg, var(--site-primary) 0%, var(--site-accent) 100%);
  color: var(--text-inverse);
}

/* Feature cards with tech theme accent */
.feature-card--tech {
  border-left: 4px solid var(--site-accent);
  transition: all 0.3s ease;
}

.feature-card--tech:hover {
  box-shadow: 0 8px 24px rgba(3, 105, 161, 0.25);
  transform: translateY(-2px);
}

/* Fingerprint Results Section */
.results-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.fingerprint-results {
  background: var(--bg-primary);
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.result-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--text-inverse);
  padding: 2rem;
  text-align: center;
}

.result-header h2 {
  margin: 0 0 1rem 0;
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fingerprint-hash {
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.95;
}

.risk-indicator {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.risk-low {
  background: #dcfce7;
  color: #166534;
}

.risk-medium {
  background: #fef3c7;
  color: #92400e;
}

.risk-high {
  background: #fee2e2;
  color: #991b1b;
}

.dark-mode .risk-low {
  background: #166534;
  color: #dcfce7;
}

.dark-mode .risk-medium {
  background: #92400e;
  color: #fef3c7;
}

.dark-mode .risk-high {
  background: #991b1b;
  color: #fee2e2;
}

.uniqueness-score {
  padding: 2rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .uniqueness-score {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.score-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.score-value {
  font-size: 4rem;
  font-weight: 700;
  color: var(--site-primary);
  margin-bottom: 1rem;
  line-height: 1;
}

.score-bar {
  width: 100%;
  max-width: 400px;
  height: 1.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 9999px;
  overflow: hidden;
  margin: 0 auto 1rem;
  position: relative;
}

.dark-mode .score-bar {
  background: rgba(255, 255, 255, 0.1);
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  border-radius: 9999px;
  transition: width 1s ease-out;
  width: 0;
}

.score-description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.fingerprint-details {
  padding: 2rem;
}

.fingerprint-details h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.detail-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .detail-section {
  border-color: rgba(255, 255, 255, 0.1);
}

.detail-section h3,
.detail-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dark-mode .detail-item {
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-right: 1rem;
}

.detail-value {
  font-weight: 400;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
}

.protection-tips {
  padding: 2rem;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .protection-tips {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.protection-tips h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.protection-tips li {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.6;
  color: var(--text-secondary);
}

.protection-tips li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--site-primary);
  font-weight: 700;
}

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

.export-section {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .export-section {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--site-primary);
  color: var(--text-inverse);
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: var(--site-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

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

/* Responsive design */
@media (max-width: 768px) {
.result-header h2 {
    font-size: 1.5rem;
  }

.fingerprint-hash {
    font-size: 1rem;
  }

.score-value {
    font-size: 3rem;
  }

.detail-item {
    flex-direction: column;
    gap: 0.25rem;
  }

.detail-value {
    text-align: left;
  }

}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
.result-header h2 {
    font-size: 1.25rem;
  }

.score-value {
    font-size: 2.5rem;
  }

.fingerprint-hash {
    font-size: 0.875rem;
    word-break: break-all;
  }

}

/* TV / Large screens (≥1920px) */
@media (min-width: 1920px) {
.result-header h2 {
    font-size: 2rem;
  }

.score-value {
    font-size: 5rem;
  }

.detail-item {
    padding: 1rem 1.5rem;
  }

}

/* Location Section Styles */
.location-section {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.05), rgba(20, 184, 166, 0.05));
  border-left: 4px solid var(--site-primary);
}

.location-disclaimer {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-style: italic;
}

.location-region {
  font-weight: 600;
  color: var(--site-primary);
  font-size: 1.125rem;
}

.location-privacy-note {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(3, 105, 161, 0.1);
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  border-left: 3px solid var(--site-primary);
}

.location-unavailable {
  color: var(--text-secondary);
  font-style: italic;
}

.confidence-high {
  color: #10b981;
  font-weight: 600;
}

.confidence-medium {
  color: #f59e0b;
  font-weight: 600;
}

.confidence-low {
  color: #ef4444;
  font-weight: 600;
}

/* Dark mode adjustments for location section */
.dark-mode .location-section {
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.1), rgba(20, 184, 166, 0.1));
}

.dark-mode .location-privacy-note {
  background: rgba(3, 105, 161, 0.15);
  color: var(--text-secondary);
}

/* =============================================
   CONTENT SECTIONS
   ============================================= */

/* Section layout utilities */
.section--padded {
    padding: var(--space-fluid-xl, 3rem) var(--space-fluid-md, 1.5rem);
}

/* Info section about variant */
.info-section--about {
    background: var(--bg-secondary);
    padding: var(--space-fluid-xl, 3rem) var(--space-fluid-md, 1.5rem);
}

/* FAQ Section */
.faq-section {
    padding: var(--space-fluid-xl, 3rem) var(--space-fluid-md, 1.5rem);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item__question {
    color: var(--site-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.faq-item__answer {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.faq-item__answer a {
    color: var(--site-primary);
}

/* Trust Section */
.trust-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    padding: var(--space-fluid-xl, 3rem) var(--space-fluid-md, 1.5rem);
}

.trust-section__container {
    max-width: 800px;
    margin: 0 auto;
}

.trust-section__intro {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.trust-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.trust-card {
    padding: 1.5rem;
    background: var(--bg-primary);
    border-radius: 0.75rem;
    border-left: 4px solid var(--site-primary);
}

.trust-card__title {
    color: var(--site-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.trust-card__text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.trust-section__commitment {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(3, 105, 161, 0.05);
    border-radius: 0.5rem;
}

.trust-section__commitment a {
    color: var(--site-primary);
}

/* Dark mode for FAQ section */
html.dark .faq-item,
html.dark-mode .faq-item,
html[data-theme="dark"] .faq-item {
    background: var(--dm-bg-secondary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.dark .faq-item__question,
html.dark-mode .faq-item__question,
html[data-theme="dark"] .faq-item__question {
    color: var(--site-primary);
}

html.dark .faq-item__answer,
html.dark-mode .faq-item__answer,
html[data-theme="dark"] .faq-item__answer {
    color: var(--dm-text-secondary);
}

/* Dark mode for trust section */
html.dark .trust-section,
html.dark-mode .trust-section,
html[data-theme="dark"] .trust-section {
    background: linear-gradient(135deg, var(--dm-bg-primary) 0%, #0c2a35 100%);
}

html.dark .trust-card,
html.dark-mode .trust-card,
html[data-theme="dark"] .trust-card {
    background: var(--dm-bg-secondary);
}

html.dark .trust-card__title,
html.dark-mode .trust-card__title,
html[data-theme="dark"] .trust-card__title {
    color: var(--site-primary);
}

html.dark .trust-card__text,
html.dark-mode .trust-card__text,
html[data-theme="dark"] .trust-card__text {
    color: var(--dm-text-secondary);
}

html.dark .trust-section__intro,
html.dark-mode .trust-section__intro,
html[data-theme="dark"] .trust-section__intro {
    color: var(--dm-text-secondary);
}

html.dark .trust-section__commitment,
html.dark-mode .trust-section__commitment,
html[data-theme="dark"] .trust-section__commitment {
    background: rgba(3, 105, 161, 0.1);
    color: var(--dm-text-secondary);
}

/* Dark mode for info-section--about */
html.dark .info-section--about,
html.dark-mode .info-section--about,
html[data-theme="dark"] .info-section--about {
    background: var(--dm-bg-secondary);
}

