/* Couleurs */
:root {
  --bg-dark: #121212;
  --bg-light: #1e1e1e;
  --orange: #ff6600;
  --text-light: #ffffff;
  --text-dark: #dddddd;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body.dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 40px;
}

.container {
  width: 90%;
  max-width: 500px;
  padding: 25px;
  background-color: var(--bg-light);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}

.container h1 {
  margin-bottom: 20px;
}

.centered {
  text-align: center;
}

.centered h1 {
  margin-bottom: 20px;
}

button {
  background-color: var(--orange);
  color: var(--text-light);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 16px;
}

button:hover {
  opacity: 0.85;
}

#activities-list {
  list-style: none;
}

#activities-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  margin-bottom: 12px;
  background-color: #252525;
  border-radius: 10px;
}

#activities-list li strong {
  display: block;
  margin-bottom: 4px;
}

.activity-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#csv-output {
  margin-top: 20px;
}

.csv-block {
  background: #111;
  color: #0f0;
  padding: 14px;
  border-radius: 10px;
  font-size: 12px;
  overflow-x: auto;
  margin-top: 10px;
}

.csv-editor {
  width: 100%;
  min-height: 260px;
  resize: none;
  border: 1px solid #2e2e2e;
  outline: none;
  font-family: Consolas, Monaco, monospace;
  line-height: 1.4;
  white-space: pre;
  overflow: hidden;
}

.csv-actions {
  display: flex;
  gap: 10px;
}

.csv-actions button {
  background-color: #333;
  font-size: 12px;
  padding: 6px 10px;
}

.page {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 200px;
  flex-shrink: 0;
}

.sidebar {
  width: 200px;
  background: #1a1a1a;
  padding: 15px;
  border-radius: 10px;
  height: fit-content;
}

.page-footer-meta {
  width: 200px;
  padding: 15px;
  background: #1a1a1a;
  border-radius: 10px;
  height: fit-content;
}

.sidebar h3 {
  margin-bottom: 10px;
}

.sidebar label {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
}

.sidebar input[type="number"] {

  width: 60px;
  margin-top: 5px;
}

.sidebar-signature {
  margin: 30px 0px;
  font-size: 13px;
  color: #a9a9a9;
  text-align: center;
}

.link {
  font-size: 13px;
  color: #a9a9a9;
  text-align: center;
}

a {
  text-decoration: none;
}

.legal-page .container h2,
.privacy-page .container h2 {
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-page .container p,
.privacy-page .container p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text-dark);
}

.page-footer-meta .sidebar-signature {
  margin: 0 0 10px;
}

.page-footer-meta .link {
  margin: 0 0 6px;
}

@media (max-width: 768px) {
  body.dark {
    padding: 20px 12px;
  }

  .page {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 500px;
    gap: 16px;
  }

  .sidebar-column {
    display: contents;
  }

  .sidebar,
  .page-footer-meta,
  .container {
    width: 100%;
  }

  .sidebar {
    order: 0;
  }

  .container {
    order: 1;
  }

  .page-footer-meta {
    order: 2;
  }

  #activities-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  #activities-list li button {
    width: 100%;
  }

  .csv-actions {
    flex-direction: column;
  }

  .csv-actions button {
    width: 100%;
  }
}