/*
Theme Name: GCR Connect App
Author: GCR Organisation
Version: 1.0
*/

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #f7f3ee;
  color: #2b2623;
}

a {
  text-decoration: none;
  color: inherit;
}

.app {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.08);
}

.header {
  text-align: center;
  padding: 20px 16px 14px;
  border-bottom: 1px solid #ece7df;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header img {
  max-height: 68px;
  width: auto;
  display: block;
  margin: 0 auto 10px;
}

.header p {
  margin: 0;
  color: #aa0014;
  font-size: 14px;
  font-weight: 700;
}

.main-content {
  flex: 1;
  padding-bottom: 76px;
}

.screen {
  display: none;
  padding: 22px 18px 24px;
}

.screen.active {
  display: block;
}

.screen h1,
.screen h2 {
  margin-top: 0;
  color: #aa0014;
}

.intro {
  color: #6d655d;
  line-height: 1.5;
  margin-bottom: 22px;
}

.home-actions {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.home-btn {
  display: block;
  background: linear-gradient(180deg, #aa0014 0%, #8f0011 100%);
  color: #ffffff;
  padding: 20px 18px;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  border: none;
  width: 100%;
  box-shadow: 0 8px 18px rgba(170, 0, 20, 0.18);
}

.home-btn strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.home-btn span {
  display: block;
  font-size: 14px;
  opacity: 0.95;
  line-height: 1.4;
}

.card {
  background: #ffffff;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid #ddd4c8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.card-title {
  margin: 0 0 8px;
  color: #aa0014;
  font-size: 17px;
}

.card-text {
  margin: 0;
  color: #4f4741;
  line-height: 1.5;
  font-size: 14px;
}

.card-date {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: #8a7e70;
  font-weight: 700;
}

.form-group {
  margin-bottom: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #2b2623;
}

input,
textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid #d8d0c4;
  border-radius: 10px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button,
.btn-submit {
  background: #aa0014;
  color: #ffffff;
  padding: 14px;
  border: none;
  width: 100%;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

.note {
  background: #f5f0e8;
  border: 1px solid #ddd4c8;
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  color: #5f564e;
  margin-bottom: 18px;
}

.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #ece7df;
  background: #ffffff;
  z-index: 20;
}


.nav button {
  background: #ffffff;
  color: #aa0014;
  border: none;
  padding: 12px 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0;
  cursor: pointer;
}

.nav button.active {
  background: #f9f3f0;
}

.footer-space {
  height: 8px;
}

.gtpi-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 16px 0;
}

.gtpi-grid-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.gtpi-grid-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.gtpi-grid-label {
  font-weight: 700;
  color: #8a7e70;
  font-size: 12px;
}

.gtpi-grid-empty {
  visibility: hidden;
}

.gtpi-day {
  background: #f5f0e8;
  border: 1px solid #ddd4c8;
  border-radius: 10px;
  color: #2b2623;
  font-weight: 700;
  font-family: Arial, sans-serif;
  cursor: pointer;
  padding: 0;
  width: 100%;
}

.gtpi-day-actif {
  background: #aa0014;
  border-color: #aa0014;
  color: #ffffff;
}

.gtpi-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.gtpi-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}

.gtpi-table th,
.gtpi-table td {
  border: 1px solid #ddd4c8;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
}

.gtpi-table th {
  background: #f5f0e8;
  color: #2b2623;
}

.gtpi-table-oui {
  background: #f9e6ea;
  color: #aa0014;
  font-weight: 700;
}