/* MonTri - Global Styles
   Colors from the app:
   - Primary: #00ACC1 (Cyan)
   - Background: #F7F9FC (Off-white)
   - Success: #66BB6A (Green)
   - Error: #FF7043 (Orange)
   - Dark: #121212, #1E1E1E
*/

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

:root {
  --primary: #00ACC1;
  --primary-dark: #26C6DA;
  --primary-light: rgba(0, 172, 193, 0.1);
  --background: #F7F9FC;
  --surface: #FFFFFF;
  --text-primary: #212121;
  --text-secondary: #666666;
  --text-muted: #999999;
  --success: #66BB6A;
  --success-light: rgba(102, 187, 106, 0.1);
  --error: #FF7043;
  --border: #E0E0E0;
  --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
  --background: #121212;
  --surface: #1E1E1E;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #808080;
  --border: #333333;
  --shadow: rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; color: var(--primary); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
}

/* Container */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px var(--shadow);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  width: 40px;
  height: 40px;
}

/* Navigation */
.nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.lang-btn {
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn:hover,
.lang-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Theme Toggle */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 1.25rem;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* Main Content */
main {
  padding: 3rem 2rem;
  min-height: calc(100vh - 200px);
}

/* Cards */
.card {
  background: var(--surface);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px var(--shadow);
}

/* Banner */
.banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--success-light);
  border: 2px solid var(--success);
  border-radius: 12px;
  margin-bottom: 2rem;
}

.banner-icon {
  font-size: 2rem;
  color: var(--success);
}

.banner-text {
  color: var(--success);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}

/* Sections */
.section {
  margin-bottom: 2.5rem;
}

.section-title {
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
}

.section-content {
  color: var(--text-secondary);
  line-height: 1.8;
  white-space: pre-line;
}

.section-content ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 172, 193, 0.3);
}

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

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

/* Contact Box */
.contact-box {
  text-align: center;
  padding: 3rem;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow);
}

.contact-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}

.contact-email {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--surface);
  border: 2px solid var(--primary-light);
  border-radius: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.5rem 0;
}

.contact-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-info {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--background);
  border-radius: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Store Badges */
.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.store-badge {
  height: 50px;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--background) 100%);
  border-radius: 24px;
  margin-bottom: 3rem;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px var(--shadow);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-title {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Info Table */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.info-table tr {
  border-bottom: 1px solid var(--border);
}

.info-table td {
  padding: 1rem;
}

.info-table td:first-child {
  color: var(--text-muted);
  width: 40%;
}

.info-table td:last-child {
  color: var(--primary);
  font-weight: 600;
}

/* Last Update */
.last-update {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Language Content Toggle */
/* By default: show English, hide French (except lang-btn buttons) */
div[data-lang="fr"],
section[data-lang="fr"],
span[data-lang="fr"]:not(.lang-btn),
a[data-lang="fr"]:not(.lang-btn) {
  display: none;
}

/* When language is French: show French, hide English */
html.lang-fr div[data-lang="fr"],
html.lang-fr section[data-lang="fr"] {
  display: block;
}

html.lang-fr span[data-lang="fr"],
html.lang-fr a[data-lang="fr"] {
  display: inline;
}

html.lang-fr div[data-lang="en"],
html.lang-fr section[data-lang="en"] {
  display: none;
}

html.lang-fr span[data-lang="en"]:not(.lang-btn),
html.lang-fr a[data-lang="en"]:not(.lang-btn) {
  display: none;
}

/* Language buttons always visible */
.lang-btn {
  display: inline-block !important;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 1rem;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
  }

  .lang-switcher {
    margin-left: auto;
    padding-left: 0;
    border-left: none;
    margin-right: 1rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

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

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

  .container {
    padding: 1rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .lang-switcher,
  .theme-toggle {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
